Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeRates ¶
type ExchangeRates interface { /* Fetch the exchange rate for the given currency It is OK if this returns from a cache. */ GetExchangeRate(currencyCode string) (float64, error) // Update the prices with the current exchange rate before returning GetLatestRate(currencyCode string) (float64, error) // Returns all available rates GetAllRates(cacheOK bool) (map[string]float64, error) /* Return the number of currency units per coin. For example, in bitcoin this is 100m satoshi per BTC. This is used when converting from fiat to the smaller currency unit. */ UnitsPerCoin() int }
type StatusUpdater ¶ added in v0.5.4
type StatusUpdater struct {
// contains filtered or unexported fields
}
func NewStatusUpdater ¶ added in v0.5.4
func NewStatusUpdater(w wallet.Wallet, c chan interface{}, ctx context.Context) *StatusUpdater
func (*StatusUpdater) Start ¶ added in v0.5.4
func (s *StatusUpdater) Start()
Click to show internal directories.
Click to hide internal directories.