Documentation
¶
Index ¶
- Variables
- func NewCompressHandler() *compressElement
- func NewCompression(opts features.Options) features.BasicFeature
- func NewCompressionReadWriter(s io.ReadWriteCloser, r io.ReadCloser, w io.WriteCloser) *compressedReadWriter
- type BaseCompressor
- type CompressState
- type CompressionConfig
- type CompressionSuccess
- type Compressor
- type CompressorConfig
- type Flusher
- type MethodNotSupportedError
- type ProcessingFailedError
- type SetupFailedError
Constants ¶
This section is empty.
Variables ¶
View Source
var Methods = make(map[string]Compressor, 3)
Functions ¶
func NewCompressHandler ¶
func NewCompressHandler() *compressElement
func NewCompression ¶
func NewCompression(opts features.Options) features.BasicFeature
func NewCompressionReadWriter ¶
func NewCompressionReadWriter(s io.ReadWriteCloser, r io.ReadCloser, w io.WriteCloser) *compressedReadWriter
Types ¶
type BaseCompressor ¶
func (BaseCompressor) Name ¶
func (bc BaseCompressor) Name() string
type CompressState ¶
type CompressState struct { Compressed bool Config map[string]CompressorConfig }
func NewCompressState ¶
func NewCompressState() *CompressState
type CompressionConfig ¶
type CompressionConfig map[string]CompressorConfig
type CompressionSuccess ¶
type Compressor ¶
type Compressor interface { GetReader(io.Reader) (io.ReadCloser, error) GetWriter(io.Writer) io.WriteCloser Name() string }
type CompressorConfig ¶
type CompressorConfig struct {
Level int `json:"level"`
}