Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonWire ¶
type JsonWire struct{}
JsonWire is a Marshaler which marshals/unmarshals into/from serialize json bytes
func (*JsonWire) ContentType ¶
ContentType always returns "application/json".
type ProtoWire ¶
type ProtoWire struct{}
ProtoWire is a Marshaler which marshals/unmarshals into/from serialize proto bytes
func (*ProtoWire) ContentType ¶
ContentType always returns "application/proto".
type WireMarshaler ¶
type WireMarshaler interface { // Marshal marshals "any" into byte sequence. Marshal(any interface{}) ([]byte, error) // Unmarshal unmarshals "data" into "any". // "any" must be a pointer value. Unmarshal(data []byte, any interface{}) error // ContentType returns the Content-Type which this marshaler is responsible for. ContentType() string }
WireMarshaler defines a conversion between byte sequence and raccoon request payloads.
Click to show internal directories.
Click to hide internal directories.