Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exchange ¶
type Exchange interface {
Exchange(source *money.Money, dest *money.Currency) (info *Info, err error)
}
Exchange provider interface
func NewMockExchange ¶
func NewMockExchange() (client Exchange)
type Info ¶
Info defines the response to an Exchange request. It contains the source, dest and the rate to which the conversion was done.
type OpenExchange ¶
OpenExchange implements fx.Exchange This is an Open Exchange API implementation
Click to show internal directories.
Click to hide internal directories.