services

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoinService

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

func CreateCoinSrv

func CreateCoinSrv(repo ports.CoinRepo, api ports.CoinGeckoApi) *CoinService

func (*CoinService) Get

func (srv *CoinService) Get(id string) domain.Coin

func (*CoinService) GetAll

func (srv *CoinService) GetAll() []domain.Coin

func (*CoinService) GetBySymbol

func (srv *CoinService) GetBySymbol(sym string) domain.Coin

func (*CoinService) StartService

func (srv *CoinService) StartService(ids []string) (chan []domain.Coin, func())

func (*CoinService) Update

func (srv *CoinService) Update(c domain.Coin) domain.Coin

type FlipSrv

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

func CreateFlipSrv

func CreateFlipSrv(repo ports.FlipRepo, coinSrv CoinService) *FlipSrv

func (*FlipSrv) Get

func (srv *FlipSrv) Get() domain.Flippening

func (*FlipSrv) StartService

func (srv *FlipSrv) StartService(coinsStream chan []domain.Coin) func()

func (*FlipSrv) Update

func (srv *FlipSrv) Update() (domain.Flippening, error)

type GasSrv

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

func CreateGasSrv

func CreateGasSrv(repo ports.GasRepo, api ports.GasApi) *GasSrv

func (*GasSrv) Get

func (srv *GasSrv) Get() domain.Gas

func (*GasSrv) StartService

func (srv *GasSrv) StartService() func()

func (*GasSrv) Update

func (srv *GasSrv) Update(baseFee float32) domain.Gas

Jump to

Keyboard shortcuts

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