Documentation
¶
Index ¶
- type Client
- func (c *Client) ConvertCurrency(from, to string, amount float64) (latest *Latest, err error)
- func (c *Client) FetchCurrencies() (currencies map[string]string, err error)
- func (c *Client) FetchHistorical(d time.Time, options ...RequestOptions) (historical *Historical, err error)
- func (c *Client) FetchLatest(options ...RequestOptions) (latest *Latest, err error)
- func (c *Client) FetchSeries(from time.Time, to time.Time, options ...RequestOptions) (series *Series, err error)
- type ClientOptions
- type Date
- type Historical
- type Latest
- type RequestOptions
- type Series
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(options ...ClientOptions) *Client
func (*Client) ConvertCurrency ¶
func (*Client) FetchCurrencies ¶
func (*Client) FetchHistorical ¶
func (c *Client) FetchHistorical(d time.Time, options ...RequestOptions) (historical *Historical, err error)
func (*Client) FetchLatest ¶
func (c *Client) FetchLatest(options ...RequestOptions) (latest *Latest, err error)
func (*Client) FetchSeries ¶
type ClientOptions ¶
type ClientOptions struct {
Host string `json:"host"`
}
type Date ¶
func (*Date) UnmarshalJSON ¶
type Historical ¶
type RequestOptions ¶
Click to show internal directories.
Click to hide internal directories.