rates

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCalculator added in v1.0.0

func InitCalculator(source ratesSource) *calculator

Types

type Mock added in v1.1.0

type Mock struct {
	Storage storage
}

func (*Mock) GetCurrentRates added in v1.1.0

func (m *Mock) GetCurrentRates() (map[string]float64, error)

func (Mock) GetRates added in v1.1.0

func (m Mock) GetRates(date int64) (map[string]float64, error)

func (Mock) GetRatesChart added in v1.1.0

func (m Mock) GetRatesChart(token string, currency string, startDate *int64, endDate *int64) ([][]any, error)

Jump to

Keyboard shortcuts

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