Documentation ¶
Index ¶
- type Float64
- type Float64Methods
- type Int64
- type Int64Methods
- type Methods
- func (Methods[N, Traits]) Copy(from, to *State[N, Traits])
- func (Methods[N, Traits]) HasChange(ptr *State[N, Traits]) bool
- func (Methods[N, Traits]) Init(state *State[N, Traits], _ aggregator.Config)
- func (Methods[N, Traits]) Kind() aggregation.Kind
- func (Methods[N, Traits]) Merge(from, to *State[N, Traits])
- func (Methods[N, Traits]) Move(from, to *State[N, Traits])
- func (Methods[N, Traits]) SubtractSwap(operand, argument *State[N, Traits])
- func (Methods[N, Traits]) ToAggregation(state *State[N, Traits]) aggregation.Aggregation
- func (Methods[N, Traits]) ToStorage(aggr aggregation.Aggregation) (*State[N, Traits], bool)
- func (Methods[N, Traits]) Update(state *State[N, Traits], number N)
- type State
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 Int64Methods ¶
type Int64Methods = Methods[int64, number.Int64Traits]
type Methods ¶
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]) 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)
type State ¶
type State[N number.Any, Traits number.Traits[N]] struct { // contains filtered or unexported fields }
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.
Click to show internal directories.
Click to hide internal directories.