exchanger

package
v0.0.0-...-b8d825d Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrencyList = map[string]string{}/* 285 elements not displayed */

CurrencyList ... list of currencies in ISO Format source @ https://raw.githubusercontent.com/umpirsky/currency-list/master/data/en_US/currency.json

CurrencyListArr ... CurrencyList to array of int => interfaces to be used in validation

Functions

func MapKeyArrInterface

func MapKeyArrInterface(m map[string]string) []interface{}

MapKeyArrInterface ... Reverse a map in <value, key>

func NewCurrencyLayerApi

func NewCurrencyLayerApi(opt map[string]string) *currencyLayerApi

NewCurrencyLayerApi ... return new instance of currencyLayerApi

func NewFixerApi

func NewFixerApi(opt map[string]string) *fixerApi

NewFixerApi ... return new instance of fixerApi

func NewGoogleApi

func NewGoogleApi(opt map[string]string) *googleApi

NewGoogleApi ... return new instance of googleApi

func NewOneForgeApi

func NewOneForgeApi(opt map[string]string) *oneForgeApi

NewOneForgeApi ... return new instance of oneForgeApi

func NewOpenExchangeRatesApi

func NewOpenExchangeRatesApi(opt map[string]string) *openExchangeRatesApi

NewOpenExchangeRatesApi ... return new instance of openExchangeRatesApi

func NewTheMoneyConverterApi

func NewTheMoneyConverterApi(opt map[string]string) *theMoneyConverterApi

NewTheMoneyConverterApi ... return new instance of theMoneyConverterApi

func NewYahooApi

func NewYahooApi(opt map[string]string) *yahooApi

NewYahooApi ... return new instance of yahooApi

func ReverseMap

func ReverseMap(m map[string]string) map[string]string

ReverseMap ... Reverse a map in <value, key>

Types

type Exchanger

type Exchanger interface {
	Latest(string, string, ...interface{}) error
	Rate
}

Exchanger ... Exchanger interface

type Rate

type Rate interface {
	GetRateValue() float64
	GetRateDateTime() string
	GetExchangerName() string
}

Rate ... Rate interface

Jump to

Keyboard shortcuts

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