Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressorCodec ¶
type CryptoCodec ¶
func NewAesCryptoCodec ¶
func NewAesCryptoCodec(key []byte) CryptoCodec
func NewRsaCryptoCodec ¶
func NewRsaCryptoCodec(privateKey []byte, publicKey []byte) CryptoCodec
type GzipCompressor ¶
type GzipCompressor struct{}
func (*GzipCompressor) Compress ¶
func (g *GzipCompressor) Compress(data []byte) (compressedData []byte, err error)
func (*GzipCompressor) DeCompress ¶
func (g *GzipCompressor) DeCompress(data []byte) ([]byte, error)
type PayloadCodec ¶
PayloadCodec is used to marshal and unmarshal payload.
type ProtoBufCodec ¶
type ProtoBufCodec struct{}
type SnappyCompressor ¶
type SnappyCompressor struct{}
SnappyCompressor implements snappy compressor
func (*SnappyCompressor) Compress ¶
func (s *SnappyCompressor) Compress(data []byte) ([]byte, error)
func (*SnappyCompressor) DeCompress ¶
func (s *SnappyCompressor) DeCompress(data []byte) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.