workers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoopCompressor

func NoopCompressor(w net.Conn) (io.ReadWriteCloser, error)

func SnappyCompressor

func SnappyCompressor(w net.Conn) (io.ReadWriteCloser, error)

Types

type GzipLeveledCompressor

type GzipLeveledCompressor int

func NewGzipLeveledCompressor

func NewGzipLeveledCompressor(level int) *GzipLeveledCompressor

func (GzipLeveledCompressor) NewWriter

type NetWorker

type NetWorker interface {
	TryConnect()
	IsAlive() bool
	Loop()
	GetStats() *WorkerStats
}

type WorkerStats

type WorkerStats struct {
	SpentTime     int64
	SentPoints    int64
	SendErrors    int64
	MarshalErrors int64
	ConnectErrors int64
	DroppedPoints int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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