aggregator

package
v0.0.0-...-8b501b0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float64Accumulator

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

Float64Accumulator implements a concurrent-safe accumulator for float64 values.

func (*Float64Accumulator) Aggregate

func (a *Float64Accumulator) Aggregate(v interface{})

Aggregate adds a float64 value to the accumulator.

func (*Float64Accumulator) Delta

func (a *Float64Accumulator) Delta() interface{}

Delta returns the delta change in the accumulator value since the last time it was invoked or the last time that Set was invoked.

func (*Float64Accumulator) Get

func (a *Float64Accumulator) Get() interface{}

Get returns the current value of the accumulator.

func (*Float64Accumulator) Set

func (a *Float64Accumulator) Set(v interface{})

Set the current value of the accumulator.

func (*Float64Accumulator) Type

func (a *Float64Accumulator) Type() string

Type implements bspgraph.Aggregator.

type IntAccumulator

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

IntAccumulator implements a concurrent-safe accumulator for int values.

func (*IntAccumulator) Aggregate

func (a *IntAccumulator) Aggregate(v interface{})

Aggregate adds a int value to the accumulator.

func (*IntAccumulator) Delta

func (a *IntAccumulator) Delta() interface{}

Delta returns the delta change in the accumulator value since the last time it was invoked or the last time that Set was invoked.

func (*IntAccumulator) Get

func (a *IntAccumulator) Get() interface{}

Get returns the current value of the accumulator.

func (*IntAccumulator) Set

func (a *IntAccumulator) Set(v interface{})

Set the current value of the accumulator.

func (*IntAccumulator) Type

func (a *IntAccumulator) Type() string

Type implements bspgraph.Aggregator.

Jump to

Keyboard shortcuts

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