Documentation ¶
Index ¶
- func EnsureValueOracle() error
- func SetRequestValue(id string, at time.Time, info PriceInfo)
- type PriceInfo
- type PriceStamp
- type Window
- func (w *Window) Clear()
- func (w *Window) ClosestTwo(at time.Time) (before, after *PriceStamp)
- func (w *Window) Insert(x *PriceStamp)
- func (w *Window) Latest() *PriceStamp
- func (w *Window) Len() int
- func (w *Window) MarshalJSON() ([]byte, error)
- func (w *Window) Trim()
- func (w *Window) UnmarshalJSON(b []byte) error
- func (w *Window) WithinRange(at time.Time, delta time.Duration) []*PriceStamp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureValueOracle ¶
func EnsureValueOracle() error
Types ¶
type PriceStamp ¶
func GetNearestTwoRequestValue ¶
func GetNearestTwoRequestValue(id string, at time.Time) (before, after *PriceStamp)
func GetRequestValuesForTime ¶
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func (*Window) ClosestTwo ¶
func (w *Window) ClosestTwo(at time.Time) (before, after *PriceStamp)
func (*Window) Insert ¶
func (w *Window) Insert(x *PriceStamp)
func (*Window) Latest ¶
func (w *Window) Latest() *PriceStamp
func (*Window) MarshalJSON ¶
func (*Window) UnmarshalJSON ¶
func (*Window) WithinRange ¶
Click to show internal directories.
Click to hide internal directories.