Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec interface { // Marshal format data to []byte Marshal(interface{}) ([]byte, error) // Unmarshal decode data from []byte Unmarshal([]byte, interface{}) error }
Codec format data to []byte, decode data from []byte
type Compressor ¶
type Compressor interface { // Compress get compress writer Compress(io.Writer) (io.WriteCloser, error) // Decompress get decompress reader Decompress(io.Reader) (io.ReadCloser, error) // SetLevel set compress level SetLevel(int) error }
Compressor compressor interface
Click to show internal directories.
Click to hide internal directories.