history

package
v0.0.0-...-d0dd730 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHistoricalData

func GetHistoricalData(truncateHistroyTable bool) error

GetHistoricalData gathers history data

Types

type By

type By func(h1, h2 *ExchangeHistory) bool

By is the type of a "less" function that defines the ordering of its ExchangeHistory arguments.

func (By) Sort

func (by By) Sort(history []ExchangeHistory)

Sort is a method on the function type, By, that sorts the argument slice according to the function.

type Exchange

type Exchange struct {
	Source            string
	SourceIssuer      string
	Destination       string
	DestinationIssuer string
	History           []ExchangeHistory
}

Exchange holds the exchange rates from source to destination

type ExchangeHistory

type ExchangeHistory struct {
	Date         string
	ExchangeRate string
}

ExchangeHistory holds the history of exchange rates

Jump to

Keyboard shortcuts

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