wormhole-explorer/common/client/cache/notional/dummy.go

21 lines
460 B
Go

package notional
// DummyNotionalCache is a dummy notional cache.
type DummyNotionalCache struct {
}
// NewDummyNotionalCache init a new dummy notional cache.
func NewDummyNotionalCache() *DummyNotionalCache {
return &DummyNotionalCache{}
}
// Get get notional cache value.
func (c *DummyNotionalCache) Get(symbol string) (PriceData, error) {
return PriceData{}, nil
}
// Close the dummy cache.
func (c *DummyNotionalCache) Close() error {
return nil
}