ports

package
v0.0.0-...-a99a530 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinGeckoApi

type CoinGeckoApi interface {
	Ping() (bool, error)
	GetCoins(ids []string) ([]domain.Coin, error)
}

type CoinRepo

type CoinRepo interface {
	Get(id string) domain.Coin
	GetBySymbol(sym string) domain.Coin
	Update(id string, coin domain.Coin) domain.Coin
	GetAll() []domain.Coin
}

type FlipRepo

type FlipRepo interface {
	Get() domain.Flippening
	Update(ratio float64, btcCap int64, ethCap int64)
}

type GasApi

type GasApi interface {
	Get() (float32, error)
}

type GasRepo

type GasRepo interface {
	Get() domain.Gas
	Update(update domain.Gas) domain.Gas
}

Jump to

Keyboard shortcuts

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