ospreport

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use AdminInfo.ProtoReflect.Descriptor instead.

func (*AdminInfo) GetAddress

func (x *AdminInfo) GetAddress() string

func (*AdminInfo) GetEmail

func (x *AdminInfo) GetEmail() string

func (*AdminInfo) GetName

func (x *AdminInfo) GetName() string

func (*AdminInfo) GetOrganization

func (x *AdminInfo) GetOrganization() string

func (*AdminInfo) GetWebsite

func (x *AdminInfo) GetWebsite() string

func (*AdminInfo) ProtoMessage

func (*AdminInfo) ProtoMessage()

func (*AdminInfo) ProtoReflect added in v1.1.0

func (x *AdminInfo) ProtoReflect() protoreflect.Message

func (*AdminInfo) Reset

func (x *AdminInfo) Reset()

func (*AdminInfo) String

func (x *AdminInfo) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use OspInfo.ProtoReflect.Descriptor instead.

func (*OspInfo) GetAdminInfo

func (x *OspInfo) GetAdminInfo() *AdminInfo

func (*OspInfo) GetEthAddr

func (x *OspInfo) GetEthAddr() string

func (*OspInfo) GetOpenAccept

func (x *OspInfo) GetOpenAccept() bool

func (*OspInfo) GetOspPeers

func (x *OspInfo) GetOspPeers() []*PeerBalances

func (*OspInfo) GetPayments

func (x *OspInfo) GetPayments() int64

func (*OspInfo) GetRpcHost

func (x *OspInfo) GetRpcHost() string

func (*OspInfo) GetStdOpenchanConfigs

func (x *OspInfo) GetStdOpenchanConfigs() []*StdOpenChanConfig

func (*OspInfo) GetTimestamp

func (x *OspInfo) GetTimestamp() uint64

func (*OspInfo) ProtoMessage

func (*OspInfo) ProtoMessage()

func (*OspInfo) ProtoReflect added in v1.1.0

func (x *OspInfo) ProtoReflect() protoreflect.Message

func (*OspInfo) Reset

func (x *OspInfo) Reset()

func (*OspInfo) String

func (x *OspInfo) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use OspReport.ProtoReflect.Descriptor instead.

func (*OspReport) GetOspInfo

func (x *OspReport) GetOspInfo() []byte

func (*OspReport) GetSig

func (x *OspReport) GetSig() []byte

func (*OspReport) ProtoMessage

func (*OspReport) ProtoMessage()

func (*OspReport) ProtoReflect added in v1.1.0

func (x *OspReport) ProtoReflect() protoreflect.Message

func (*OspReport) Reset

func (x *OspReport) Reset()

func (*OspReport) String

func (x *OspReport) String() string

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

Jump to

Keyboard shortcuts

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