Documentation ¶
Index ¶
- Constants
- func Algorithms() []string
- func Decode(algo string, encoded []byte, opts ...DecoderOption) ([]byte, error)
- func Encode(algo string, v []byte, opts ...EncoderOption) ([]byte, error)
- func Register(name string, algorithm Algorithm)
- type Algorithm
- type Decoder
- type DecoderOption
- type Encoder
- type EncoderOption
Constants ¶
View Source
const BufSize = 4096
BufSize in bytes of read buffer.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(algo string, encoded []byte, opts ...DecoderOption) ([]byte, error)
Decode method.
Types ¶
type Algorithm ¶
type Algorithm interface { NewEncoder(writer io.Writer) (Encoder, error) NewDecoder(reader io.Reader) (Decoder, error) }
Algorithm interface.
Click to show internal directories.
Click to hide internal directories.