compression

package
v0.0.0-...-84acdea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJsonZlibCompressor

func NewJsonZlibCompressor() gateway.Compression

NewJsonZlibCompressor creates an instance of JsonZlibCompressor

Types

type JsonZlibCompressor

type JsonZlibCompressor struct {
	// contains filtered or unexported fields
}

JsonZlibCompressor is the default compression interface.

func (*JsonZlibCompressor) DecodeMessage

func (compressor *JsonZlibCompressor) DecodeMessage(data []byte) (*gatewayTypes.Payload, error)

DecodeMessage decodes messages using the compressor.

func (JsonZlibCompressor) GetConnectionOptions

func (compressor JsonZlibCompressor) GetConnectionOptions() gateway.GatewayConnectionOptions

GetConnectionOptions gets the required options for the gateway.

func (*JsonZlibCompressor) Reset

func (compressor *JsonZlibCompressor) Reset() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL