Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewCodecFuncMap map[Type]NewCodecFunc
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec interface { io.Closer ReadHeader(*Header) error ReadBody(interface{}) error Write(*Header, interface{}) error }
func NewGobCodec ¶
func NewGobCodec(conn io.ReadWriteCloser) Codec
func NewJsonCodec ¶
func NewJsonCodec(conn io.ReadWriteCloser) Codec
type GobCodec ¶
type GobCodec struct {
// contains filtered or unexported fields
}
func (*GobCodec) ReadHeader ¶
type JsonCodec ¶
type JsonCodec struct {
// contains filtered or unexported fields
}
func (*JsonCodec) ReadHeader ¶
type NewCodecFunc ¶
type NewCodecFunc func(io.ReadWriteCloser) Codec
Click to show internal directories.
Click to hide internal directories.