Documentation
¶
Index ¶
- type FloatSampler
- func (s *FloatSampler) Add(val float64) (added bool)
- func (s FloatSampler) EstimateSecondsUntil(value float64) time.Duration
- func (s FloatSampler) ExtrapolateTimeLinearMillis(val float64) time.Time
- func (s FloatSampler) ExtrapolateTimeLinearNano(val float64) time.Time
- func (s FloatSampler) ExtrapolateValueLinearNano(time time.Time) float64
- type IntSampler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FloatSampler ¶
type FloatSampler struct {
// contains filtered or unexported fields
}
func NewFloatSampler ¶
func NewFloatSampler(size int, frequency time.Duration) *FloatSampler
func (*FloatSampler) Add ¶
func (s *FloatSampler) Add(val float64) (added bool)
func (FloatSampler) EstimateSecondsUntil ¶
func (s FloatSampler) EstimateSecondsUntil(value float64) time.Duration
func (FloatSampler) ExtrapolateTimeLinearMillis ¶
func (s FloatSampler) ExtrapolateTimeLinearMillis(val float64) time.Time
func (FloatSampler) ExtrapolateTimeLinearNano ¶
func (s FloatSampler) ExtrapolateTimeLinearNano(val float64) time.Time
func (FloatSampler) ExtrapolateValueLinearNano ¶
func (s FloatSampler) ExtrapolateValueLinearNano(time time.Time) float64
type IntSampler ¶
type IntSampler struct {
FloatSampler
}
func NewIntSampler ¶
func NewIntSampler(size int, frequency time.Duration) *IntSampler
func (*IntSampler) Add ¶
func (s *IntSampler) Add(value int) (added bool)
func (*IntSampler) EstimateSecondsUntil ¶
func (s *IntSampler) EstimateSecondsUntil(val int) time.Duration
Click to show internal directories.
Click to hide internal directories.