Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedPricer ¶
type CachedPricer struct {
// contains filtered or unexported fields
}
func NewCachedPricer ¶
func NewCachedPricer(p Pricer) *CachedPricer
func (*CachedPricer) ClearCache ¶
func (c *CachedPricer) ClearCache()
func (*CachedPricer) ClearCacheForever ¶ added in v0.10.0
func (c *CachedPricer) ClearCacheForever(ctx context.Context, evictInterval time.Duration)
type MockPricer ¶
type MockPricer struct {
// contains filtered or unexported fields
}
func NewMockPricer ¶
func NewMockPricer(prices map[Token]float64) *MockPricer
func (*MockPricer) SetPrice ¶
func (m *MockPricer) SetPrice(token Token, price float64)
Click to show internal directories.
Click to hide internal directories.