Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplaceDefaultCodec ¶
func ReplaceDefaultCodec(codec Codec)
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
Codec is a Codec implementation with json.
type Option ¶
type Option func(*Codec)
func WithDisableProtoJSON ¶
func WithDisableProtoJSON() Option
WithDisableProtoJSON disable proto json codec.
func WithMarshalOptions ¶
func WithMarshalOptions(marshalOpts protojson.MarshalOptions) Option
WithMarshalOptions is a configurable JSON format marshaler for proto.
func WithUnmarshalOptions ¶
func WithUnmarshalOptions(unmarshalOpts protojson.UnmarshalOptions) Option
WithUnmarshalOptions is a configurable JSON format parser for proto.
Click to show internal directories.
Click to hide internal directories.