Documentation ¶
Index ¶
Constants ¶
View Source
const ( CompressorFieldName = "buffer.memory.compressor" CompressorNone = "none" CompressorLZ4 = "lz4" CompressorDefault = CompressorNone )
View Source
const ( ActionFieldNameMetric = "action" CompressorFieldNameMetric = "compressor" NameFieldNameMetric = "name" ActionWriteMetric = "write" ActionReadMetric = "read" )
Variables ¶
This section is empty.
Functions ¶
func NewWithConfigurator ¶
func NewWithConfigurator(config *Config, configurator configurator.Configurator, appConfig *app.Config) (io.ReadWriteCloser, error)
Types ¶
type Config ¶
func Configuration ¶
func Configuration(config *Config, configurator configurator.Configurator) *Config
type LZ4 ¶
type LZ4 struct {
// contains filtered or unexported fields
}
func NewLZ4 ¶
func NewLZ4(buffer io.ReadWriteCloser) *LZ4
type Metric ¶
type Metric struct { io.ReadWriteCloser // contains filtered or unexported fields }
func NewMetric ¶
func NewMetric(readWriteCloser io.ReadWriteCloser, writerCounter prometheus.Counter, readerCounter prometheus.Counter) *Metric
Click to show internal directories.
Click to hide internal directories.