Help us shape the future of Go! Take the 2026 Go Developer Survey

exchangeratesapi

package
v0.11.796 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(c Config) (*Client, error)

func (*Client) GetIngestrURI

func (c *Client) GetIngestrURI() (string, error)

type Config

type Config struct {
	// AccessKey is the exchangeratesapi.io API access key. Required.
	AccessKey string
	// Base is the base currency for the returned rates, e.g. USD. Optional,
	// defaults to the API's own default (EUR). Changing the base requires a paid
	// plan.
	Base string
}

Config holds the settings required to connect to exchangeratesapi.io (an APILayer product) serving current and historical foreign exchange rates.

func (*Config) GetIngestrURI

func (c *Config) GetIngestrURI() (string, error)

GetIngestrURI builds the ingestr source URI for exchangeratesapi.io. Format: exchangeratesapi://?access_key=<access_key>[&base=<currency-code>]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL