exchangerate

package
v0.0.0-...-42e54ff Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoApiKeyProvided  = fmt.Errorf("it is necessary an Api Key to do requests")
	ErrEmptyCurrencyFile = fmt.Errorf("currency file is empty")
)

Functions

This section is empty.

Types

type ConvertedCurrency

type ConvertedCurrency struct {
	Currency string
	Value    float64
}

type ExchangeApi

type ExchangeApi struct {
	URL    string
	APIKEY string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *config.AppConfigParameters) (*ExchangeApi, error)

func (*ExchangeApi) ConvertCurrencyLatest

func (eapi *ExchangeApi) ConvertCurrencyLatest(from string, to string) (*ConvertedCurrency, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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