gauge

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 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]

type Int64

type Int64 = State[int64, number.Int64Traits]

func NewInt64

func NewInt64(x int64) *Int64

type Int64Methods

type Int64Methods = Methods[int64, number.Int64Traits]

type Methods

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

func (Methods[N, Traits]) Copy

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

func (Methods[N, Traits]) HasChange

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

func (Methods[N, Traits]) Init

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

func (Methods[N, Traits]) Kind

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

func (Methods[N, Traits]) Merge

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

func (Methods[N, Traits]) Move

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

func (Methods[N, Traits]) SubtractSwap

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

func (Methods[N, Traits]) ToAggregation

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

func (Methods[N, Traits]) ToStorage

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

func (Methods[N, Traits]) Update

func (Methods[N, Traits]) 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