Documentation
¶
Index ¶
- Variables
- func ApiKey(k string) func(*Config)
- func BaseURL(u string) func(*Config)
- func Debug(b bool) func(*Config)
- func GetVersion() string
- func Secret(s string) func(*Config)
- func Timeout(t time.Duration) func(*Config)
- func UserAgent(ua string) func(*Config)
- type Client
- func (c *Client) Currencies(ctx context.Context) (*currencies, error)
- func (c *Client) ExchangeRates(ctx context.Context, currency string) (*exchangeRates, error)
- func (c *Client) GetUser(ctx context.Context) (*user, error)
- func (c *Client) NewRequest(method string, u *url.URL, authenticate bool, json []byte) (*http.Request, error)
- func (c *Client) Prices(ctx context.Context, currencyPair string, priceType string) (*prices, error)
- func (c *Client) Time(ctx context.Context) (*serverTime, error)
- type Config
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string
Functions ¶
func GetVersion ¶ added in v0.2.0
func GetVersion() string
Types ¶
type Client ¶
type Client struct {
Config *Config
// contains filtered or unexported fields
}
func (*Client) Currencies ¶
Currencies lists known currencies.
func (*Client) ExchangeRates ¶
ExchangeRates gets current exchange rates.
func (*Client) NewRequest ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.