rcb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(client *http.Client) *source

Types

type ExchangeRate

type ExchangeRate struct {
	// contains filtered or unexported fields
}

func (ExchangeRate) From

func (e ExchangeRate) From() label.Currency

func (ExchangeRate) Rate

func (e ExchangeRate) Rate() float64

func (ExchangeRate) Time

func (e ExchangeRate) Time() time.Time

func (ExchangeRate) To

func (e ExchangeRate) To() label.Currency

type XMLAttrTime

type XMLAttrTime time.Time

func (*XMLAttrTime) UnmarshalXMLAttr

func (x *XMLAttrTime) UnmarshalXMLAttr(attr xml.Attr) error

type XMLCcyRate

type XMLCcyRate struct {
	Currency label.Symbol `xml:"CharCode"`
	Value    string       `xml:"Value"`
	Rate     float64
}

type XMLNode

type XMLNode struct {
	Time  XMLAttrTime  `xml:"Date,attr"`
	Rates []XMLCcyRate `xml:"Valute"`
}

Jump to

Keyboard shortcuts

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