app

package
v0.0.0-...-464104f Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrencyRUB = "RUB"
	CurrencyUSD = "USD"
	CurrencyEUR = "EUR"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Currency

type Currency string

type ErrSourceDataUnavailable

type ErrSourceDataUnavailable struct {
	Code    string
	Message string
}

func (ErrSourceDataUnavailable) Error

func (esu ErrSourceDataUnavailable) Error() string

type Rate

type Rate struct {
	Source    string
	UpdatedAt string
	From      Currency
	To        Currency
	Rate      float64
}

type SourceInterface

type SourceInterface interface {
	Rates() ([]Rate, error)
	Code() string
}

Jump to

Keyboard shortcuts

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