backend

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Goroutine

type Goroutine struct {
	Fn   func(exit chan struct{})
	Exit chan struct{}
}

type Manager

type Manager interface {
	GetServerKey() *SeverKey
	GetLeaguePool() *pool.LeaguePool
	GetVotePool() *pool.VotePool
	GetLastBlockNum() *big.Int
	GetEpoch() *big.Int
	SetEpoch(epoch int64)
	GetManagerOtprnCh() chan struct{}
	GetStopLeagueCh() chan struct{}
	StoreOtprn(otprn *otprn.Otprn)
	GetStoredOtprn() *otprn.Otprn
	GetUsingOtprn() *otprn.Otprn
	DeleteStoreOtprn()

	GetReSendOtprn() chan common.Hash
	GetMakeJoinTxCh() chan struct{}
}

type SeverKey

type SeverKey struct {
	ServerAcc    accounts.Account
	SeverPiveKey *ecdsa.PrivateKey
	KeyStore     *keystore.KeyStore
}

func GetServerKey

func GetServerKey() (*SeverKey, error)

Jump to

Keyboard shortcuts

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