common

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 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)
)

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