modules

package
v0.0.0-...-74b6fac Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGlobalCCM

func SetGlobalCCM(ccm *CurrencyConverterModule)

Types

type CurrencyConverterModule

type CurrencyConverterModule struct {
	BaseCurrency string
	Rates        map[string]map[string]currencyRate
}

func NewCCM

func NewCCM() *CurrencyConverterModule

func NewTestCCM

func NewTestCCM() *CurrencyConverterModule

func (*CurrencyConverterModule) AddAndConvertFunds

func (*CurrencyConverterModule) ConvertCurrency

func (s *CurrencyConverterModule) ConvertCurrency(mu models.MonetaryUnit, currency string) models.MonetaryUnit

func (*CurrencyConverterModule) SubtractAndConvertFunds

func (s *CurrencyConverterModule) SubtractAndConvertFunds(mu1 models.MonetaryUnit, mu2 models.MonetaryUnit) models.MonetaryUnit

func (*CurrencyConverterModule) SumAndConvertFunds

func (*CurrencyConverterModule) SupportedCurrency

func (s *CurrencyConverterModule) SupportedCurrency(currency string) bool

Jump to

Keyboard shortcuts

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