app

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App interface {
	GetCountWallets() (uint64, error)
	CreateWallet(wallet Wallet) error
	CreateWallets() error
	Start() error
	UpdateWallets() error
}

func New

func New(repo Repo, rl RateLimiter) App

type MultiSendItem

type MultiSendItem struct {
	Coin  string
	To    string
	Value *big.Int
	// contains filtered or unexported fields
}

type RateLimiter

type RateLimiter struct {
	Freq int
	Per  time.Duration
}

func (RateLimiter) Pace

func (cp RateLimiter) Pace(elapsed time.Duration, hits uint64) (time.Duration, bool)

func (RateLimiter) String

func (cp RateLimiter) String() string

type Repo

type Repo interface {
	GetCountWallets() (uint64, error)
	CreateWallet(address, seedPhrase, mnemonic, privateKey, amount string, status bool) error
	SelectWallets() ([]dao.Wallet, error)
	SelectWalletsInterval(start, end uint64) ([]dao.Wallet, error)
	SelectWalletsAmount(amount uint64) ([]dao.Wallet, error)
	DisableWallet(address string) error
	GetOneWallet() (*dao.Wallet, error)
}

type Wallet

type Wallet struct {
	Address    string
	PrivateKey string
	SeedPhrase string
	Mnemonic   string
}

Jump to

Keyboard shortcuts

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