event

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CooperativeWithdraw = "CooperativeWithdraw"
	Deploy              = "Deploy"
	Deposit             = "Deposit"
	IntendSettle        = "IntendSettle"
	OpenChannel         = "OpenChannel"
	ConfirmSettle       = "ConfirmSettle"
	IntendWithdraw      = "IntendWithdraw"
	ConfirmWithdraw     = "ConfirmWithdraw"
	VetoWithdraw        = "VetoWithdraw"
	RouterUpdated       = "RouterUpdated"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OnNewStreamCallback

type OnNewStreamCallback interface {
	HandleNewCelerStream(addr []byte)
}

type OnReceivingTokenCallback

type OnReceivingTokenCallback interface {
	HandleReceivingStart(payID ctype.PayIDType, pay *entity.ConditionalPay, note *any.Any)
	HandleReceivingDone(
		payID ctype.PayIDType,
		pay *entity.ConditionalPay,
		note *any.Any,
		reason rpc.PaymentSettleReason)
}

type OnSendingTokenCallback

type OnSendingTokenCallback interface {
	HandleSendComplete(
		payID ctype.PayIDType,
		pay *entity.ConditionalPay,
		note *any.Any,
		reason rpc.PaymentSettleReason)
	HandleDestinationUnreachable(payID ctype.PayIDType, pay *entity.ConditionalPay, note *any.Any)
	HandleSendFail(payID ctype.PayIDType, pay *entity.ConditionalPay, note *any.Any, errMsg string)
}

type OpenChannelCallback

type OpenChannelCallback interface {
	HandleOpenChannelFinish(cid ctype.CidType)
	HandleOpenChannelErr(e *common.E)
}

Jump to

Keyboard shortcuts

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