memory

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage() *Storage

func (*Storage) ListCurrencies

func (s *Storage) ListCurrencies(_ context.Context) ([]types.Currency, error)

func (*Storage) ListSources

func (s *Storage) ListSources(_ context.Context) ([]types.Source, error)

func (*Storage) RateAsOf

func (s *Storage) RateAsOf(
	_ context.Context,
	query *types.RateQuery,
	asOf time.Time,
) (*types.Page[*types.ExchangeRate], error)

func (*Storage) SaveExchangeRate

func (s *Storage) SaveExchangeRate(_ context.Context, r *types.ExchangeRate) error

Jump to

Keyboard shortcuts

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