Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCoinGeckoWaitDuration = errors.New("coin gecko wait duration exceeded")
)
Functions ¶
Types ¶
type CoinGeckoService ¶
type CoinGeckoService interface {
CoinsList() (*types.CoinList, error)
SimplePrice(ids []string, vsCurrencies []string) (*map[string]map[string]float32, error)
}
func NewCoinGeckoService ¶
func NewCoinGeckoService(httpClient *http.Client) CoinGeckoService
type CryptoCoin ¶
type MockCoinGeckoService ¶
MockCoinGeckoService is an autogenerated mock type for the CoinGeckoService type
func (*MockCoinGeckoService) CoinsList ¶
func (_m *MockCoinGeckoService) CoinsList() (*types.CoinList, error)
CoinsList provides a mock function with given fields:
func (*MockCoinGeckoService) SimplePrice ¶
func (_m *MockCoinGeckoService) SimplePrice(ids []string, vsCurrencies []string) (*map[string]map[string]float32, error)
SimplePrice provides a mock function with given fields: ids, vsCurrencies
Click to show internal directories.
Click to hide internal directories.