gauge

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Float64

type Float64 = State[float64, number.Float64Traits]

func NewFloat64

func NewFloat64(x float64) *Float64

type Float64Methods

type Float64Methods = Methods[float64, number.Float64Traits, Float64]

type Int64

type Int64 = State[int64, number.Int64Traits]

func NewInt64

func NewInt64(x int64) *Int64

type Int64Methods

type Int64Methods = Methods[int64, number.Int64Traits, Int64]

type Methods

type Methods[N number.Any, Traits number.Traits[N], Storage State[N, Traits]] struct{}

func (Methods[N, Traits, Storage]) Copy

func (Methods[N, Traits, Storage]) Copy(from, to *State[N, Traits])

func (Methods[N, Traits, Storage]) HasChange

func (Methods[N, Traits, Storage]) HasChange(ptr *State[N, Traits]) bool

func (Methods[N, Traits, Storage]) Init

func (Methods[N, Traits, Storage]) Init(state *State[N, Traits], _ aggregator.Config)

func (Methods[N, Traits, Storage]) Kind

func (Methods[N, Traits, Storage]) Kind() aggregation.Kind

func (Methods[N, Traits, Storage]) Merge

func (Methods[N, Traits, Storage]) Merge(from, to *State[N, Traits])

func (Methods[N, Traits, Storage]) Move

func (Methods[N, Traits, Storage]) Move(from, to *State[N, Traits])

func (Methods[N, Traits, Storage]) SubtractSwap

func (Methods[N, Traits, Storage]) SubtractSwap(operand, argument *State[N, Traits])

func (Methods[N, Traits, Storage]) ToAggregation

func (Methods[N, Traits, Storage]) ToAggregation(state *State[N, Traits]) aggregation.Aggregation

func (Methods[N, Traits, Storage]) ToStorage

func (Methods[N, Traits, Storage]) ToStorage(aggr aggregation.Aggregation) (*State[N, Traits], bool)

func (Methods[N, Traits, Storage]) Update

func (Methods[N, Traits, Storage]) Update(state *State[N, Traits], number N)

type State

type State[N number.Any, Traits number.Traits[N]] struct {
	// contains filtered or unexported fields
}

func (*State[N, Traits]) Gauge

func (g *State[N, Traits]) Gauge() number.Number

func (*State[N, Traits]) Kind

func (g *State[N, Traits]) Kind() aggregation.Kind

func (*State[N, Traits]) SetSequenceForTesting

func (g *State[N, Traits]) SetSequenceForTesting()

SetSequenceForTesting sets the Gauge to match one of the test gauges so far as its sequence number, allowing it to match exactly in tests.

Jump to

Keyboard shortcuts

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