msgpack.go — fiber Source File
Architecture documentation for msgpack.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR eb9d46f2_1de6_0d56_0fca_3fec812893bd["msgpack.go"] baa5866c_7884_3b82_5e75_ef5c8f224470["v2"] eb9d46f2_1de6_0d56_0fca_3fec812893bd --> baa5866c_7884_3b82_5e75_ef5c8f224470 style eb9d46f2_1de6_0d56_0fca_3fec812893bd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
package binder
import (
"github.com/gofiber/utils/v2"
)
// MsgPackBinding is the MsgPack binder for MsgPack request body.
type MsgPackBinding struct {
MsgPackDecoder utils.MsgPackUnmarshal
}
// Name returns the binding name.
func (*MsgPackBinding) Name() string {
return "msgpack"
}
// Bind parses the request body as MsgPack and returns the result.
func (b *MsgPackBinding) Bind(body []byte, out any) error {
return b.MsgPackDecoder(body, out)
}
// Reset resets the MsgPackBinding binder.
func (b *MsgPackBinding) Reset() {
b.MsgPackDecoder = nil
}
// UnimplementedMsgpackMarshal panics to signal that a Msgpack marshaler must
// be configured before MsgPack support can be used.
func UnimplementedMsgpackMarshal(_ any) ([]byte, error) {
panic("Must explicit setup Msgpack, please check docs: https://docs.gofiber.io/next/guide/advance-format#msgpack")
}
// UnimplementedMsgpackUnmarshal panics to signal that a Msgpack unmarshaler
// must be configured before MsgPack support can be used.
func UnimplementedMsgpackUnmarshal(_ []byte, _ any) error {
panic("Must explicit setup Msgpack, please check docs: https://docs.gofiber.io/next/guide/advance-format#msgpack")
}
Domain
Subdomains
Dependencies
- v2
Source
Frequently Asked Questions
What does msgpack.go do?
msgpack.go is a source file in the fiber codebase, written in go. It belongs to the DataBinding domain, PayloadParsers subdomain.
What functions are defined in msgpack.go?
msgpack.go defines 2 function(s): UnimplementedMsgpackMarshal, UnimplementedMsgpackUnmarshal.
What does msgpack.go depend on?
msgpack.go imports 1 module(s): v2.
Where is msgpack.go in the architecture?
msgpack.go is located at binder/msgpack.go (domain: DataBinding, subdomain: PayloadParsers, directory: binder).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free