batch

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 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