floatratesman

package
v0.0.0-...-db328d6 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func New(
	conf *config.Config,
	getRefreshDur func(name string) time.Duration,
) *Manager

func (*Manager) AddAsset

func (m *Manager) AddAsset(asset *asset.Asset) bool

func (*Manager) ChanManualFetch

func (m *Manager) ChanManualFetch() chan struct{}

func (*Manager) FetchAndSave

func (m *Manager) FetchAndSave() bool

func (*Manager) FetchLoop

func (m *Manager) FetchLoop(
	showPrice func(*asset.Asset, float64),
	finish func(),
)

func (*Manager) Init

func (m *Manager) Init()

func (*Manager) LastFetchHuman

func (m *Manager) LastFetchHuman() string

func (*Manager) Name

func (m *Manager) Name() string

func (*Manager) Price

func (m *Manager) Price(asset *asset.Asset) (float64, bool)

Jump to

Keyboard shortcuts

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