Documentation
¶
Index ¶
- type AdminInfo
- func (*AdminInfo) Descriptor() ([]byte, []int)
- func (m *AdminInfo) GetAddress() string
- func (m *AdminInfo) GetEmail() string
- func (m *AdminInfo) GetName() string
- func (m *AdminInfo) GetOrganization() string
- func (m *AdminInfo) GetWebsite() string
- func (*AdminInfo) ProtoMessage()
- func (m *AdminInfo) Reset()
- func (m *AdminInfo) String() string
- func (m *AdminInfo) XXX_DiscardUnknown()
- func (m *AdminInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AdminInfo) XXX_Merge(src proto.Message)
- func (m *AdminInfo) XXX_Size() int
- func (m *AdminInfo) XXX_Unmarshal(b []byte) error
- type ChannelBalance
- func (*ChannelBalance) Descriptor() ([]byte, []int)
- func (m *ChannelBalance) GetCid() string
- func (m *ChannelBalance) GetPeerBalance() string
- func (m *ChannelBalance) GetSelfBalance() string
- func (m *ChannelBalance) GetTokenAddr() string
- func (*ChannelBalance) ProtoMessage()
- func (m *ChannelBalance) Reset()
- func (m *ChannelBalance) String() string
- func (m *ChannelBalance) XXX_DiscardUnknown()
- func (m *ChannelBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelBalance) XXX_Merge(src proto.Message)
- func (m *ChannelBalance) XXX_Size() int
- func (m *ChannelBalance) XXX_Unmarshal(b []byte) error
- type OspInfo
- func (*OspInfo) Descriptor() ([]byte, []int)
- func (m *OspInfo) GetAdminInfo() *AdminInfo
- func (m *OspInfo) GetEthAddr() string
- func (m *OspInfo) GetOpenAccept() bool
- func (m *OspInfo) GetOspPeers() []*PeerBalances
- func (m *OspInfo) GetPayments() int64
- func (m *OspInfo) GetRpcHost() string
- func (m *OspInfo) GetStdOpenchanConfigs() []*StdOpenChanConfig
- func (m *OspInfo) GetTimestamp() uint64
- func (*OspInfo) ProtoMessage()
- func (m *OspInfo) Reset()
- func (m *OspInfo) String() string
- func (m *OspInfo) XXX_DiscardUnknown()
- func (m *OspInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OspInfo) XXX_Merge(src proto.Message)
- func (m *OspInfo) XXX_Size() int
- func (m *OspInfo) XXX_Unmarshal(b []byte) error
- type OspReport
- func (*OspReport) Descriptor() ([]byte, []int)
- func (m *OspReport) GetOspInfo() []byte
- func (m *OspReport) GetSig() []byte
- func (*OspReport) ProtoMessage()
- func (m *OspReport) Reset()
- func (m *OspReport) String() string
- func (m *OspReport) XXX_DiscardUnknown()
- func (m *OspReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OspReport) XXX_Merge(src proto.Message)
- func (m *OspReport) XXX_Size() int
- func (m *OspReport) XXX_Unmarshal(b []byte) error
- type PeerBalances
- func (*PeerBalances) Descriptor() ([]byte, []int)
- func (m *PeerBalances) GetBalances() []*ChannelBalance
- func (m *PeerBalances) GetPeer() string
- func (*PeerBalances) ProtoMessage()
- func (m *PeerBalances) Reset()
- func (m *PeerBalances) String() string
- func (m *PeerBalances) XXX_DiscardUnknown()
- func (m *PeerBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerBalances) XXX_Merge(src proto.Message)
- func (m *PeerBalances) XXX_Size() int
- func (m *PeerBalances) XXX_Unmarshal(b []byte) error
- type StdOpenChanConfig
- func (*StdOpenChanConfig) Descriptor() ([]byte, []int)
- func (m *StdOpenChanConfig) GetMaxDeposit() string
- func (m *StdOpenChanConfig) GetMinDeposit() string
- func (m *StdOpenChanConfig) GetTokenAddr() string
- func (*StdOpenChanConfig) ProtoMessage()
- func (m *StdOpenChanConfig) Reset()
- func (m *StdOpenChanConfig) String() string
- func (m *StdOpenChanConfig) XXX_DiscardUnknown()
- func (m *StdOpenChanConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StdOpenChanConfig) XXX_Merge(src proto.Message)
- func (m *StdOpenChanConfig) XXX_Size() int
- func (m *StdOpenChanConfig) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminInfo ¶
type AdminInfo struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
Organization string `protobuf:"bytes,3,opt,name=organization,proto3" json:"organization,omitempty"`
Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
Website string `protobuf:"bytes,5,opt,name=website,proto3" json:"website,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*AdminInfo) Descriptor ¶
func (*AdminInfo) GetAddress ¶
func (*AdminInfo) GetOrganization ¶
func (*AdminInfo) GetWebsite ¶
func (*AdminInfo) ProtoMessage ¶
func (*AdminInfo) ProtoMessage()
func (*AdminInfo) XXX_DiscardUnknown ¶
func (m *AdminInfo) XXX_DiscardUnknown()
func (*AdminInfo) XXX_Marshal ¶
func (*AdminInfo) XXX_Unmarshal ¶
type ChannelBalance ¶
type ChannelBalance struct {
Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
TokenAddr string `protobuf:"bytes,2,opt,name=token_addr,json=tokenAddr,proto3" json:"token_addr,omitempty"`
SelfBalance string `protobuf:"bytes,3,opt,name=self_balance,json=selfBalance,proto3" json:"self_balance,omitempty"`
PeerBalance string `protobuf:"bytes,4,opt,name=peer_balance,json=peerBalance,proto3" json:"peer_balance,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*ChannelBalance) Descriptor ¶
func (*ChannelBalance) Descriptor() ([]byte, []int)
func (*ChannelBalance) GetCid ¶
func (m *ChannelBalance) GetCid() string
func (*ChannelBalance) GetPeerBalance ¶
func (m *ChannelBalance) GetPeerBalance() string
func (*ChannelBalance) GetSelfBalance ¶
func (m *ChannelBalance) GetSelfBalance() string
func (*ChannelBalance) GetTokenAddr ¶
func (m *ChannelBalance) GetTokenAddr() string
func (*ChannelBalance) ProtoMessage ¶
func (*ChannelBalance) ProtoMessage()
func (*ChannelBalance) Reset ¶
func (m *ChannelBalance) Reset()
func (*ChannelBalance) String ¶
func (m *ChannelBalance) String() string
func (*ChannelBalance) XXX_DiscardUnknown ¶
func (m *ChannelBalance) XXX_DiscardUnknown()
func (*ChannelBalance) XXX_Marshal ¶
func (m *ChannelBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelBalance) XXX_Merge ¶
func (m *ChannelBalance) XXX_Merge(src proto.Message)
func (*ChannelBalance) XXX_Size ¶
func (m *ChannelBalance) XXX_Size() int
func (*ChannelBalance) XXX_Unmarshal ¶
func (m *ChannelBalance) XXX_Unmarshal(b []byte) error
type OspInfo ¶
type OspInfo struct {
// OSP eth address
EthAddr string `protobuf:"bytes,1,opt,name=eth_addr,json=ethAddr,proto3" json:"eth_addr,omitempty"`
// UTC unix timestamp in second
Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// server public rpc host:port
RpcHost string `protobuf:"bytes,3,opt,name=rpc_host,json=rpcHost,proto3" json:"rpc_host,omitempty"`
OspPeers []*PeerBalances `protobuf:"bytes,4,rep,name=osp_peers,json=ospPeers,proto3" json:"osp_peers,omitempty"`
// number of payments processed
Payments int64 `protobuf:"varint,5,opt,name=payments,proto3" json:"payments,omitempty"`
// accept anyone to connect
OpenAccept bool `protobuf:"varint,6,opt,name=open_accept,json=openAccept,proto3" json:"open_accept,omitempty"`
// standard open channel configuration
StdOpenchanConfigs []*StdOpenChanConfig `protobuf:"bytes,7,rep,name=std_openchan_configs,json=stdOpenchanConfigs,proto3" json:"std_openchan_configs,omitempty"`
AdminInfo *AdminInfo `protobuf:"bytes,8,opt,name=admin_info,json=adminInfo,proto3" json:"admin_info,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*OspInfo) Descriptor ¶
func (*OspInfo) GetAdminInfo ¶
func (*OspInfo) GetEthAddr ¶
func (*OspInfo) GetOpenAccept ¶
func (*OspInfo) GetOspPeers ¶
func (m *OspInfo) GetOspPeers() []*PeerBalances
func (*OspInfo) GetPayments ¶
func (*OspInfo) GetRpcHost ¶
func (*OspInfo) GetStdOpenchanConfigs ¶
func (m *OspInfo) GetStdOpenchanConfigs() []*StdOpenChanConfig
func (*OspInfo) GetTimestamp ¶
func (*OspInfo) ProtoMessage ¶
func (*OspInfo) ProtoMessage()
func (*OspInfo) XXX_DiscardUnknown ¶
func (m *OspInfo) XXX_DiscardUnknown()
func (*OspInfo) XXX_Marshal ¶
func (*OspInfo) XXX_Unmarshal ¶
type OspReport ¶
type OspReport struct {
// serialized OspInfo
OspInfo []byte `protobuf:"bytes,1,opt,name=osp_info,json=ospInfo,proto3" json:"osp_info,omitempty"`
// signature of osp_info, signed by OSP eth address
Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
OSP voluntarily periodically send OspReport to the Celer Explorer server
func (*OspReport) Descriptor ¶
func (*OspReport) GetOspInfo ¶
func (*OspReport) ProtoMessage ¶
func (*OspReport) ProtoMessage()
func (*OspReport) XXX_DiscardUnknown ¶
func (m *OspReport) XXX_DiscardUnknown()
func (*OspReport) XXX_Marshal ¶
func (*OspReport) XXX_Unmarshal ¶
type PeerBalances ¶
type PeerBalances struct {
Peer string `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
Balances []*ChannelBalance `protobuf:"bytes,2,rep,name=balances,proto3" json:"balances,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*PeerBalances) Descriptor ¶
func (*PeerBalances) Descriptor() ([]byte, []int)
func (*PeerBalances) GetBalances ¶
func (m *PeerBalances) GetBalances() []*ChannelBalance
func (*PeerBalances) GetPeer ¶
func (m *PeerBalances) GetPeer() string
func (*PeerBalances) ProtoMessage ¶
func (*PeerBalances) ProtoMessage()
func (*PeerBalances) Reset ¶
func (m *PeerBalances) Reset()
func (*PeerBalances) String ¶
func (m *PeerBalances) String() string
func (*PeerBalances) XXX_DiscardUnknown ¶
func (m *PeerBalances) XXX_DiscardUnknown()
func (*PeerBalances) XXX_Marshal ¶
func (m *PeerBalances) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeerBalances) XXX_Merge ¶
func (m *PeerBalances) XXX_Merge(src proto.Message)
func (*PeerBalances) XXX_Size ¶
func (m *PeerBalances) XXX_Size() int
func (*PeerBalances) XXX_Unmarshal ¶
func (m *PeerBalances) XXX_Unmarshal(b []byte) error
type StdOpenChanConfig ¶
type StdOpenChanConfig struct {
TokenAddr string `protobuf:"bytes,1,opt,name=token_addr,json=tokenAddr,proto3" json:"token_addr,omitempty"`
MinDeposit string `protobuf:"bytes,2,opt,name=min_deposit,json=minDeposit,proto3" json:"min_deposit,omitempty"`
MaxDeposit string `protobuf:"bytes,3,opt,name=max_deposit,json=maxDeposit,proto3" json:"max_deposit,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
standard open channel config
func (*StdOpenChanConfig) Descriptor ¶
func (*StdOpenChanConfig) Descriptor() ([]byte, []int)
func (*StdOpenChanConfig) GetMaxDeposit ¶
func (m *StdOpenChanConfig) GetMaxDeposit() string
func (*StdOpenChanConfig) GetMinDeposit ¶
func (m *StdOpenChanConfig) GetMinDeposit() string
func (*StdOpenChanConfig) GetTokenAddr ¶
func (m *StdOpenChanConfig) GetTokenAddr() string
func (*StdOpenChanConfig) ProtoMessage ¶
func (*StdOpenChanConfig) ProtoMessage()
func (*StdOpenChanConfig) Reset ¶
func (m *StdOpenChanConfig) Reset()
func (*StdOpenChanConfig) String ¶
func (m *StdOpenChanConfig) String() string
func (*StdOpenChanConfig) XXX_DiscardUnknown ¶
func (m *StdOpenChanConfig) XXX_DiscardUnknown()
func (*StdOpenChanConfig) XXX_Marshal ¶
func (m *StdOpenChanConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StdOpenChanConfig) XXX_Merge ¶
func (m *StdOpenChanConfig) XXX_Merge(src proto.Message)
func (*StdOpenChanConfig) XXX_Size ¶
func (m *StdOpenChanConfig) XXX_Size() int
func (*StdOpenChanConfig) XXX_Unmarshal ¶
func (m *StdOpenChanConfig) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.