Help us shape the future of Go! Take the 2026 Go Developer Survey

batch

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoOp = func(time.Time, ...interface{}) int64 {
	return 0
}

Functions

This section is empty.

Types

type BatchMetrics

type BatchMetrics struct {
	// contains filtered or unexported fields
}

func NewBatchMetrics

func NewBatchMetrics(builder Builder) *BatchMetrics

NewBatchMetrics will do nothing if builder is nil.

func (*BatchMetrics) Begin

func (bm *BatchMetrics) Begin(batchSize int) counter.OnDone

type Builder

type Builder func(bs int) *gmetric.Operation

Builder is a function that is used to define the properties of the metric.

Jump to

Keyboard shortcuts

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