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.