zipper

package
v1.2.23 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadZipper

type ReadZipper struct {
	Log       log.Logger
	NewCount  int64
	HitCount  int64
	MissCount int64
	ErrCount  int64
	// contains filtered or unexported fields
}

ReadZipper creates a Pool that contains previously used Readers and can create new ones if we run out.

func NewZipper

func NewZipper() *ReadZipper

NewZipper gives you a ReadZipper

func (*ReadZipper) Datapoints

func (z *ReadZipper) Datapoints() []*datapoint.Datapoint

Datapoints implements Collector interface and returns metrics

func (*ReadZipper) GzipHandler

func (z *ReadZipper) GzipHandler(h http.Handler) http.Handler

GzipHandler transparently decodes your possibly gzipped request

Jump to

Keyboard shortcuts

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