Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
Debug mode If this variable is set to true, debug mode activated for the package
Functions ¶
Types ¶
type Client ¶
type Client interface { GetRate(from, to string) (float64, error) SetFetchFunction(FetchFunction) }
Client is the interface for the rates service.
type Error ¶
CoinGate API error responses Response example:
{ "message": "Not found App by Access-Key", "reason": "BadCredentials" }
type FetchFunction ¶
FetchFunction is a function that mimics http.Get() method.
Click to show internal directories.
Click to hide internal directories.