Documentation
¶
Index ¶
- Constants
- func CheckFlags()
- func MakeDeposit()
- func OpenChannel()
- func QueryDeposit()
- func QueryPeerOsps()
- func RegisterStream()
- func SendToken()
- type Processor
- func (p *Processor) ConfigXnet()
- func (p *Processor) ConfirmSettle()
- func (p *Processor) ConfirmWithdraw()
- func (p *Processor) DeleteBridgeRouting()
- func (p *Processor) DeleteNetBridge()
- func (p *Processor) DeleteNetToken()
- func (p *Processor) DeregisterRouter()
- func (p *Processor) EthPoolDeposit()
- func (p *Processor) EthPoolWithdraw()
- func (p *Processor) IntendSettle()
- func (p *Processor) IntendWithdraw()
- func (p *Processor) RegisterRouter()
- func (p *Processor) SetBridgeRouting()
- func (p *Processor) SetNetBridge()
- func (p *Processor) SetNetId()
- func (p *Processor) SetNetToken()
- func (p *Processor) Setup(db, ospkey, disputer bool)
- func (p *Processor) ViewAppOnChain()
- func (p *Processor) ViewChannel()
- func (p *Processor) ViewChannelOnChain()
- func (p *Processor) ViewDeposit()
- func (p *Processor) ViewPay()
- func (p *Processor) ViewPayOnChain()
- func (p *Processor) ViewRoute()
- func (p *Processor) ViewTxOnChain()
- func (p *Processor) ViewXnet()
- func (p *Processor) ViewXnetPay()
- type XnetConfig
Constants ¶
View Source
const (
DaySeconds = 86400
)
Variables ¶
This section is empty.
Functions ¶
func CheckFlags ¶
func CheckFlags()
func MakeDeposit ¶
func MakeDeposit()
func OpenChannel ¶
func OpenChannel()
func QueryDeposit ¶
func QueryDeposit()
func QueryPeerOsps ¶
func QueryPeerOsps()
func RegisterStream ¶
func RegisterStream()
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
func (*Processor) ConfigXnet ¶
func (p *Processor) ConfigXnet()
func (*Processor) ConfirmSettle ¶
func (p *Processor) ConfirmSettle()
func (*Processor) ConfirmWithdraw ¶
func (p *Processor) ConfirmWithdraw()
func (*Processor) DeleteBridgeRouting ¶
func (p *Processor) DeleteBridgeRouting()
func (*Processor) DeleteNetBridge ¶
func (p *Processor) DeleteNetBridge()
func (*Processor) DeleteNetToken ¶
func (p *Processor) DeleteNetToken()
func (*Processor) DeregisterRouter ¶
func (p *Processor) DeregisterRouter()
func (*Processor) EthPoolDeposit ¶
func (p *Processor) EthPoolDeposit()
func (*Processor) EthPoolWithdraw ¶
func (p *Processor) EthPoolWithdraw()
func (*Processor) IntendSettle ¶
func (p *Processor) IntendSettle()
func (*Processor) IntendWithdraw ¶
func (p *Processor) IntendWithdraw()
func (*Processor) RegisterRouter ¶
func (p *Processor) RegisterRouter()
func (*Processor) SetBridgeRouting ¶
func (p *Processor) SetBridgeRouting()
func (*Processor) SetNetBridge ¶
func (p *Processor) SetNetBridge()
func (*Processor) SetNetToken ¶
func (p *Processor) SetNetToken()
func (*Processor) ViewAppOnChain ¶
func (p *Processor) ViewAppOnChain()
func (*Processor) ViewChannel ¶
func (p *Processor) ViewChannel()
func (*Processor) ViewChannelOnChain ¶
func (p *Processor) ViewChannelOnChain()
func (*Processor) ViewDeposit ¶
func (p *Processor) ViewDeposit()
func (*Processor) ViewPayOnChain ¶
func (p *Processor) ViewPayOnChain()
func (*Processor) ViewTxOnChain ¶
func (p *Processor) ViewTxOnChain()
func (*Processor) ViewXnetPay ¶
func (p *Processor) ViewXnetPay()
type XnetConfig ¶
type XnetConfig struct {
NetId uint64 `json:"net_id"` // local net id
NetBridge map[string]uint64 `json:"net_bridge"` // bridgeAddr -> bridgeNetId
BridgeRouting map[uint64]string `json:"bridge_routing"` // destNetId -> nextHopBridgeAddr
NetToken map[string]map[uint64]string `json:"net_token"` // localTokenAddr -> map(remoteNetId -> remoteTokenAddr)
}
func ParseXnetConfig ¶
func ParseXnetConfig(path string) (*XnetConfig, error)
Click to show internal directories.
Click to hide internal directories.