Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultiService ¶
type MultiService struct {
// contains filtered or unexported fields
}
MultiService houses a set of encoders and decoders and tries to dispatches Encode and Decode operations to them. Fot these operations it sets up a temporary bytes buffer so reads and writes are cached into the buffer so a failure in Decode and Encode call does not change the state of the Reader or Writer object.
func NewMultiService ¶
func NewMultiService(enc []Encoder, dec []Decoder, pool pool.OfBytes) (m MultiService)
type StdJsonCoder ¶
type StdJsonCoder struct{}
StdJsonEncoder implements the Encoder and Decoder interface using
the standard library's Encoder and Decoder
func NewJsonService ¶
func NewJsonService() (s StdJsonCoder)
Click to show internal directories.
Click to hide internal directories.