pbuf

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DurationFieldType = reflect.Kind(102)
View Source
const ErrorFieldType = reflect.Kind(100)
View Source
const KeyFieldID = 18
View Source
const LevelFieldID = 16
View Source
const TimeFieldType = reflect.Kind(101)
View Source
const TypeFieldID = 17
View Source
const ValueFieldID = 19

Variables

This section is empty.

Functions

func CutAndUpdateMetricTimeMark

func CutAndUpdateMetricTimeMark(dst *[]byte, now time.Time) (bool, time.Duration)

func EncoderManager

func EncoderManager() msgencoder.EncoderFactory

Types

type MetricTimeWriter

type MetricTimeWriter struct {
	Writer   io.Writer
	ReportFn func(time.Duration)
}

func (MetricTimeWriter) Write

func (w MetricTimeWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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