jobs

package
v0.0.0-...-ab58f20 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CooperativeWithdrawWaitResponse CooperativeWithdrawState = iota
	CooperativeWithdrawWaitTx                                = 1
	CooperativeWithdrawSucceeded                             = 2
	CooperativeWithdrawFailed                                = 3
)
View Source
const (
	DepositWaitApprove DepositState = iota
	DepositWaitDeposit              = 1
	DepositSucceeded                = 2
	DepositFailed                   = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CooperativeWithdrawJob

type CooperativeWithdrawJob struct {
	WithdrawHash string
	State        CooperativeWithdrawState
	TxHash       string
	Error        string
}

func NewCooperativeWithdrawJob

func NewCooperativeWithdrawJob(withdrawHash string) *CooperativeWithdrawJob

type CooperativeWithdrawState

type CooperativeWithdrawState int

type DepositJob

type DepositJob struct {
	JobID         string
	State         DepositState
	Amount        string
	ChannelID     ctype.CidType
	ApproveTxHash string
	DepositTxHash string
	Error         string
}

func NewDepositJob

func NewDepositJob(
	jobID string,
	amount string,
	channelID ctype.CidType,
	approveTxHash string,
	depositTxHash string) *DepositJob

type DepositState

type DepositState int

Jump to

Keyboard shortcuts

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