Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoosedPrecisionOracle ¶
type LoosedPrecisionOracle struct { Oracle // contains filtered or unexported fields }
func NewLoosedPrecisionOracle ¶
func NewLoosedPrecisionOracle() *LoosedPrecisionOracle
This one is used for redis db because zset only has float64 as score type, if don't do this, can't handle precision lost....
func (*LoosedPrecisionOracle) FetchTimestamp ¶
func (o *LoosedPrecisionOracle) FetchTimestamp(_ context.Context) (uint64, error)
type Oracle ¶
func (*Oracle) MustFetchTimestamp ¶
Click to show internal directories.
Click to hide internal directories.