box

package
v0.0.0-...-e01cbfc Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSyncer

func BuildSyncer(summonerReader SummonerReader) *syncer

func NewDao

func NewDao(db Storage) *dao

func NewSyncer

func NewSyncer(summonerInfoGetter SummonerReader, tokenIDsGetter AssetsIDSynchronizer) *syncer

Types

type AssetsIDSynchronizer

type AssetsIDSynchronizer interface {
	Sync(address string) ([]uint64, error)
}

type Box

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

func BuildBox

func BuildBox(summonerReader SummonerReader) *Box

func NewBox

func NewBox(syncer *syncer) *Box

func (*Box) SyncSummoners

func (b *Box) SyncSummoners(address string) ([]*types.Summoner, error)

type Storage

type Storage interface {
	Save(address string, summoners []*types.Summoner) error
	SummonersByAddress(address string) ([]*types.Summoner, error)
}

type SummonerReader

type SummonerReader interface {
	Summoners(address string, tokenIDs []uint64) ([]*types.Summoner, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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