Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec interface {
Name() string
ContentType() string
Marshal(v any) ([]byte, error)
Unmarshal(data []byte, v any) error
NewDecoder(r io.Reader) Decoder
NewEncoder(w io.Writer) Encoder
}
Codec defines serialization and deserialization across all Nexss transports.
type JSON ¶
type JSON struct{}
JSON is the default standard library JSON codec.
func (JSON) ContentType ¶
Click to show internal directories.
Click to hide internal directories.