Documentation
¶
Index ¶
- Variables
- type FuncCodec
- func (f *FuncCodec) ContentType() string
- func (f *FuncCodec) Decode(r io.Reader, v interface{}) error
- func (f *FuncCodec) Encode(w io.Writer, v interface{}) error
- func (f *FuncCodec) Marshal(v interface{}) ([]byte, error)
- func (f *FuncCodec) NewDecoder(r io.Reader) roboot.Decoder
- func (f *FuncCodec) NewEncoder(w io.Writer) roboot.Encoder
- func (f *FuncCodec) Unmarshal(b []byte, v interface{}) error
- type FuncDecoder
- type FuncEncoder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMarshalUnimplemented = errors.New("marshal is not implemented") ErrUnmarshalUnimplemented = errors.New("unmarshal is not implemented") )
Functions ¶
This section is empty.
Types ¶
type FuncCodec ¶
type FuncCodec struct { ContentTyp string MarshalFunc func(interface{}) ([]byte, error) NewEncoderFunc func(io.Writer) roboot.Encoder EncodeFunc func(io.Writer, interface{}) error UnmarshalFunc func([]byte, interface{}) error NewDecoderFunc func(io.Reader) roboot.Decoder DecodeFunc func(io.Reader, interface{}) error }
func (*FuncCodec) ContentType ¶
type FuncDecoder ¶
func (FuncDecoder) Decode ¶
func (f FuncDecoder) Decode(v interface{}) error
Click to show internal directories.
Click to hide internal directories.