Documentation ¶
Overview ¶
Package amqpxprotojson provides encoding body of the message using protojson.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProtoType = fmt.Errorf("amqpxprotojson: expecting a value type proto.Message") DefaultMarshalOptions = &protojson.MarshalOptions{} DefaultUnmarshalOptions = &protojson.UnmarshalOptions{ DiscardUnknown: true, } )
Functions ¶
This section is empty.
Types ¶
type Marshaler ¶
type Marshaler struct {
// contains filtered or unexported fields
}
func NewMarshaler ¶
func NewMarshaler(opts ...protojson.MarshalOptions) *Marshaler
func (*Marshaler) ContentType ¶
type Unmarshaler ¶
type Unmarshaler struct {
// contains filtered or unexported fields
}
func NewUnmarshaler ¶
func NewUnmarshaler(opts ...protojson.UnmarshalOptions) *Unmarshaler
func (*Unmarshaler) ContentType ¶
func (u *Unmarshaler) ContentType() string
Click to show internal directories.
Click to hide internal directories.