common

package
v0.10.9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CompressTypeNone   = uint8(0)
	CompressTypeSnappy = uint8(1)
	CompressTypeZstd   = uint8(2)
	CompressTypeGzip   = uint8(3)
	CompressTypeBzip2  = uint8(4)
	CompressTypeFlate  = uint8(5)
	CompressTypeZlib   = uint8(6)
	CompressTypeLzw    = uint8(7)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompressInfo

type CompressInfo struct {
	PkgId          int
	CompressType   int
	DataLen        int //original data
	CompressTime   int64
	TranportTime   int64
	DecompressTime int64
	CompressRatio  float64
}

type ReportFunction

type ReportFunction func(CompressInfo)

Jump to

Keyboard shortcuts

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