Documentation
¶
Index ¶
- func PrintDepositJob(d *structs.DepositJob) string
- func SortDepositJobs(input []*structs.DepositJob) []*structs.DepositJob
- type DepositCallback
- type Processor
- func (p *Processor) DepositWithCallback(amt *big.Int, cid ctype.CidType, cb DepositCallback) (string, error)
- func (p *Processor) GetDepositState(jobID string) (int, string, error)
- func (p *Processor) MonitorJobWithCallback(jobID string, cb DepositCallback)
- func (p *Processor) RemoveJob(jobID string) error
- func (p *Processor) RequestDeposit(cid ctype.CidType, amount *big.Int, toPeer bool, maxWait time.Duration) (string, error)
- func (p *Processor) RequestRefill(cid ctype.CidType, amount *big.Int, maxWait time.Duration) (string, error)
- func (p *Processor) RequestRefillTx(tx *storage.DALTx, cid ctype.CidType, amount *big.Int, maxWait time.Duration) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintDepositJob ¶
func PrintDepositJob(d *structs.DepositJob) string
func SortDepositJobs ¶
func SortDepositJobs(input []*structs.DepositJob) []*structs.DepositJob
Types ¶
type DepositCallback ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func StartProcessor ¶
func StartProcessor( nodeConfig common.GlobalNodeConfig, transactor *eth.Transactor, dal *storage.DAL, monitorService intfs.MonitorService, isOSP bool, isEventListener bool, quit chan bool) (*Processor, error)
func (*Processor) DepositWithCallback ¶
func (*Processor) GetDepositState ¶
func (*Processor) MonitorJobWithCallback ¶
func (p *Processor) MonitorJobWithCallback(jobID string, cb DepositCallback)
func (*Processor) RequestDeposit ¶
func (p *Processor) RequestDeposit( cid ctype.CidType, amount *big.Int, toPeer bool, maxWait time.Duration) (string, error)
RequestDeposit inserts a deposit job into the db, and return the deposit job ID
Click to show internal directories.
Click to hide internal directories.