Documentation ¶
Index ¶
- Constants
- func ContextWithMarshaler(ctx context.Context, marshaler marshaler_interface.Marshaler) context.Context
- func ContextWithMarshalerAndUnmarshaler(ctx context.Context, marshaler marshaler_interface.Marshaler, ...) context.Context
- func ContextWithUnmarshaler(ctx context.Context, unmarshaler marshaler_interface.Unmarshaler) context.Context
- func GetMarshaler(o option.Option) (marshaler_interface.Marshaler, error)
- func GetUnmarshaler(o option.Option) (marshaler_interface.Unmarshaler, error)
- func Marshal(ctx context.Context, x any) ([]byte, error)
- func Unmarshal(ctx context.Context, x []byte, y any) error
- func WithMarshaler(marshaler marshaler_interface.Marshaler) option.ApplyOption
- func WithUnmarshaler(unmarshaler marshaler_interface.Unmarshaler) option.ApplyOption
Constants ¶
View Source
const OPTION_MARSHALER = "marshaler"
View Source
const OPTION_UNMARSHALER = "unmarshaler"
Variables ¶
This section is empty.
Functions ¶
func ContextWithMarshaler ¶
func ContextWithMarshalerAndUnmarshaler ¶
func ContextWithMarshalerAndUnmarshaler(ctx context.Context, marshaler marshaler_interface.Marshaler, unmarshaler marshaler_interface.Unmarshaler) context.Context
func ContextWithUnmarshaler ¶
func ContextWithUnmarshaler(ctx context.Context, unmarshaler marshaler_interface.Unmarshaler) context.Context
func GetMarshaler ¶
func GetMarshaler(o option.Option) (marshaler_interface.Marshaler, error)
func GetUnmarshaler ¶
func GetUnmarshaler(o option.Option) (marshaler_interface.Unmarshaler, error)
func WithMarshaler ¶
func WithMarshaler(marshaler marshaler_interface.Marshaler) option.ApplyOption
func WithUnmarshaler ¶
func WithUnmarshaler(unmarshaler marshaler_interface.Unmarshaler) option.ApplyOption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.