Documentation
¶
Index ¶
- Variables
- type AdminInfo
- func (*AdminInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AdminInfo) GetAddress() string
- func (x *AdminInfo) GetEmail() string
- func (x *AdminInfo) GetName() string
- func (x *AdminInfo) GetOrganization() string
- func (x *AdminInfo) GetWebsite() string
- func (*AdminInfo) ProtoMessage()
- func (x *AdminInfo) ProtoReflect() protoreflect.Message
- func (x *AdminInfo) Reset()
- func (x *AdminInfo) String() string
- type ChannelBalance
- func (*ChannelBalance) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelBalance) GetCid() string
- func (x *ChannelBalance) GetPeerBalance() string
- func (x *ChannelBalance) GetSelfBalance() string
- func (x *ChannelBalance) GetTokenAddr() string
- func (*ChannelBalance) ProtoMessage()
- func (x *ChannelBalance) ProtoReflect() protoreflect.Message
- func (x *ChannelBalance) Reset()
- func (x *ChannelBalance) String() string
- type OspInfo
- func (*OspInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OspInfo) GetAdminInfo() *AdminInfo
- func (x *OspInfo) GetEthAddr() string
- func (x *OspInfo) GetOpenAccept() bool
- func (x *OspInfo) GetOspPeers() []*PeerBalances
- func (x *OspInfo) GetPayments() int64
- func (x *OspInfo) GetRpcHost() string
- func (x *OspInfo) GetStdOpenchanConfigs() []*StdOpenChanConfig
- func (x *OspInfo) GetTimestamp() uint64
- func (*OspInfo) ProtoMessage()
- func (x *OspInfo) ProtoReflect() protoreflect.Message
- func (x *OspInfo) Reset()
- func (x *OspInfo) String() string
- type OspReport
- type PeerBalances
- func (*PeerBalances) Descriptor() ([]byte, []int)deprecated
- func (x *PeerBalances) GetBalances() []*ChannelBalance
- func (x *PeerBalances) GetPeer() string
- func (*PeerBalances) ProtoMessage()
- func (x *PeerBalances) ProtoReflect() protoreflect.Message
- func (x *PeerBalances) Reset()
- func (x *PeerBalances) String() string
- type StdOpenChanConfig
- func (*StdOpenChanConfig) Descriptor() ([]byte, []int)deprecated
- func (x *StdOpenChanConfig) GetMaxDeposit() string
- func (x *StdOpenChanConfig) GetMinDeposit() string
- func (x *StdOpenChanConfig) GetTokenAddr() string
- func (*StdOpenChanConfig) ProtoMessage()
- func (x *StdOpenChanConfig) ProtoReflect() protoreflect.Message
- func (x *StdOpenChanConfig) Reset()
- func (x *StdOpenChanConfig) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_osp_report_proto protoreflect.FileDescriptor
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"`
// contains filtered or unexported fields
}
func (*AdminInfo) Descriptor
deprecated
func (*AdminInfo) GetAddress ¶
func (*AdminInfo) GetOrganization ¶
func (*AdminInfo) GetWebsite ¶
func (*AdminInfo) ProtoMessage ¶
func (*AdminInfo) ProtoMessage()
func (*AdminInfo) ProtoReflect ¶ added in v1.1.0
func (x *AdminInfo) ProtoReflect() protoreflect.Message
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"`
// contains filtered or unexported fields
}
func (*ChannelBalance) Descriptor
deprecated
func (*ChannelBalance) Descriptor() ([]byte, []int)
Deprecated: Use ChannelBalance.ProtoReflect.Descriptor instead.
func (*ChannelBalance) GetCid ¶
func (x *ChannelBalance) GetCid() string
func (*ChannelBalance) GetPeerBalance ¶
func (x *ChannelBalance) GetPeerBalance() string
func (*ChannelBalance) GetSelfBalance ¶
func (x *ChannelBalance) GetSelfBalance() string
func (*ChannelBalance) GetTokenAddr ¶
func (x *ChannelBalance) GetTokenAddr() string
func (*ChannelBalance) ProtoMessage ¶
func (*ChannelBalance) ProtoMessage()
func (*ChannelBalance) ProtoReflect ¶ added in v1.1.0
func (x *ChannelBalance) ProtoReflect() protoreflect.Message
func (*ChannelBalance) Reset ¶
func (x *ChannelBalance) Reset()
func (*ChannelBalance) String ¶
func (x *ChannelBalance) String() string
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"`
// contains filtered or unexported fields
}
func (*OspInfo) Descriptor
deprecated
func (*OspInfo) GetAdminInfo ¶
func (*OspInfo) GetEthAddr ¶
func (*OspInfo) GetOpenAccept ¶
func (*OspInfo) GetOspPeers ¶
func (x *OspInfo) GetOspPeers() []*PeerBalances
func (*OspInfo) GetPayments ¶
func (*OspInfo) GetRpcHost ¶
func (*OspInfo) GetStdOpenchanConfigs ¶
func (x *OspInfo) GetStdOpenchanConfigs() []*StdOpenChanConfig
func (*OspInfo) GetTimestamp ¶
func (*OspInfo) ProtoMessage ¶
func (*OspInfo) ProtoMessage()
func (*OspInfo) ProtoReflect ¶ added in v1.1.0
func (x *OspInfo) ProtoReflect() protoreflect.Message
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"`
// contains filtered or unexported fields
}
OSP voluntarily periodically send OspReport to the Celer Explorer server
func (*OspReport) Descriptor
deprecated
func (*OspReport) GetOspInfo ¶
func (*OspReport) ProtoMessage ¶
func (*OspReport) ProtoMessage()
func (*OspReport) ProtoReflect ¶ added in v1.1.0
func (x *OspReport) ProtoReflect() protoreflect.Message
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"`
// contains filtered or unexported fields
}
func (*PeerBalances) Descriptor
deprecated
func (*PeerBalances) Descriptor() ([]byte, []int)
Deprecated: Use PeerBalances.ProtoReflect.Descriptor instead.
func (*PeerBalances) GetBalances ¶
func (x *PeerBalances) GetBalances() []*ChannelBalance
func (*PeerBalances) GetPeer ¶
func (x *PeerBalances) GetPeer() string
func (*PeerBalances) ProtoMessage ¶
func (*PeerBalances) ProtoMessage()
func (*PeerBalances) ProtoReflect ¶ added in v1.1.0
func (x *PeerBalances) ProtoReflect() protoreflect.Message
func (*PeerBalances) Reset ¶
func (x *PeerBalances) Reset()
func (*PeerBalances) String ¶
func (x *PeerBalances) String() string
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"`
// contains filtered or unexported fields
}
standard open channel config
func (*StdOpenChanConfig) Descriptor
deprecated
func (*StdOpenChanConfig) Descriptor() ([]byte, []int)
Deprecated: Use StdOpenChanConfig.ProtoReflect.Descriptor instead.
func (*StdOpenChanConfig) GetMaxDeposit ¶
func (x *StdOpenChanConfig) GetMaxDeposit() string
func (*StdOpenChanConfig) GetMinDeposit ¶
func (x *StdOpenChanConfig) GetMinDeposit() string
func (*StdOpenChanConfig) GetTokenAddr ¶
func (x *StdOpenChanConfig) GetTokenAddr() string
func (*StdOpenChanConfig) ProtoMessage ¶
func (*StdOpenChanConfig) ProtoMessage()
func (*StdOpenChanConfig) ProtoReflect ¶ added in v1.1.0
func (x *StdOpenChanConfig) ProtoReflect() protoreflect.Message
func (*StdOpenChanConfig) Reset ¶
func (x *StdOpenChanConfig) Reset()
func (*StdOpenChanConfig) String ¶
func (x *StdOpenChanConfig) String() string
Click to show internal directories.
Click to hide internal directories.