Documentation
¶
Overview ¶
Package rpc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterAdminHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminClient) error
- func RegisterAdminHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAdminServer(s *grpc.Server, srv AdminServer)
- func RegisterMultiServerServer(s *grpc.Server, srv MultiServerServer)
- func RegisterRpcServer(s *grpc.Server, srv RpcServer)
- type AdminClient
- type AdminServer
- type AuthAck
- func (*AuthAck) Descriptor() ([]byte, []int)deprecated
- func (x *AuthAck) GetMySig() []byte
- func (x *AuthAck) GetStartMid() *MID
- func (x *AuthAck) GetSyncChannels() []*ChannelInAuth
- func (*AuthAck) ProtoMessage()
- func (x *AuthAck) ProtoReflect() protoreflect.Message
- func (x *AuthAck) Reset()
- func (x *AuthAck) String() string
- type AuthReq
- func (*AuthReq) Descriptor() ([]byte, []int)deprecated
- func (x *AuthReq) GetExpectPeer() []byte
- func (x *AuthReq) GetMutualAuth() bool
- func (x *AuthReq) GetMyAddr() []byte
- func (x *AuthReq) GetMySig() []byte
- func (x *AuthReq) GetOpenedChannels() []*ChannelSummary
- func (x *AuthReq) GetProtocolVersion() uint64
- func (x *AuthReq) GetTimestamp() uint64
- func (*AuthReq) ProtoMessage()
- func (x *AuthReq) ProtoReflect() protoreflect.Message
- func (x *AuthReq) Reset()
- func (x *AuthReq) String() string
- type BcastRoutingReply
- type BcastRoutingRequest
- func (*BcastRoutingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BcastRoutingRequest) GetOsps() []string
- func (x *BcastRoutingRequest) GetReq() *RoutingRequest
- func (*BcastRoutingRequest) ProtoMessage()
- func (x *BcastRoutingRequest) ProtoReflect() protoreflect.Message
- func (x *BcastRoutingRequest) Reset()
- func (x *BcastRoutingRequest) String() string
- type BuildRoutingTableRequest
- func (*BuildRoutingTableRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BuildRoutingTableRequest) GetTokenAddress() []byte
- func (*BuildRoutingTableRequest) ProtoMessage()
- func (x *BuildRoutingTableRequest) ProtoReflect() protoreflect.Message
- func (x *BuildRoutingTableRequest) Reset()
- func (x *BuildRoutingTableRequest) String() string
- type CelerMsg
- func (*CelerMsg) Descriptor() ([]byte, []int)deprecated
- func (x *CelerMsg) GetAuthAck() *AuthAck
- func (x *CelerMsg) GetAuthReq() *AuthReq
- func (x *CelerMsg) GetCondPayReceipt() *CondPayReceipt
- func (x *CelerMsg) GetCondPayRequest() *CondPayRequest
- func (x *CelerMsg) GetCondPayResponse() *CondPayResponse
- func (x *CelerMsg) GetError() *Error
- func (x *CelerMsg) GetFlag() uint64
- func (x *CelerMsg) GetMessage() isCelerMsg_Message
- func (x *CelerMsg) GetMid() *MID
- func (x *CelerMsg) GetPayResultVouchRequest() *entity.VouchedCondPayResult
- func (x *CelerMsg) GetPayResultVouchResponse() *entity.VouchedCondPayResult
- func (x *CelerMsg) GetPaymentSettleProof() *PaymentSettleProof
- func (x *CelerMsg) GetPaymentSettleRequest() *PaymentSettleRequest
- func (x *CelerMsg) GetPaymentSettleResponse() *PaymentSettleResponse
- func (x *CelerMsg) GetRetMid() *MID
- func (x *CelerMsg) GetRevealSecret() *RevealSecret
- func (x *CelerMsg) GetRevealSecretAck() *RevealSecretAck
- func (x *CelerMsg) GetRoutingRequest() *RoutingRequest
- func (x *CelerMsg) GetToAddr() []byte
- func (x *CelerMsg) GetWithdrawRequest() *CooperativeWithdrawRequest
- func (x *CelerMsg) GetWithdrawResponse() *CooperativeWithdrawResponse
- func (*CelerMsg) ProtoMessage()
- func (x *CelerMsg) ProtoReflect() protoreflect.Message
- func (x *CelerMsg) Reset()
- func (x *CelerMsg) String() string
- type CelerMsg_AuthAck
- type CelerMsg_AuthReq
- type CelerMsg_CondPayReceipt
- type CelerMsg_CondPayRequest
- type CelerMsg_CondPayResponse
- type CelerMsg_Error
- type CelerMsg_PayResultVouchRequest
- type CelerMsg_PayResultVouchResponse
- type CelerMsg_PaymentSettleProof
- type CelerMsg_PaymentSettleRequest
- type CelerMsg_PaymentSettleResponse
- type CelerMsg_RevealSecret
- type CelerMsg_RevealSecretAck
- type CelerMsg_RoutingRequest
- type CelerMsg_WithdrawRequest
- type CelerMsg_WithdrawResponse
- type CelerStream
- type ChannelInAuth
- func (*ChannelInAuth) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelInAuth) GetAuthackPays() []*PayInAuthAck
- func (x *ChannelInAuth) GetAuthackSimplex() *SignedSimplexState
- func (x *ChannelInAuth) GetAuthreqPays() []*PayInAuthAck
- func (x *ChannelInAuth) GetAuthreqSimplex() *SignedSimplexState
- func (x *ChannelInAuth) GetChannelState() int64
- func (x *ChannelInAuth) GetCid() []byte
- func (x *ChannelInAuth) GetLedgerAddr() []byte
- func (x *ChannelInAuth) GetOpenChannelResponse() *OpenChannelResponse
- func (*ChannelInAuth) ProtoMessage()
- func (x *ChannelInAuth) ProtoReflect() protoreflect.Message
- func (x *ChannelInAuth) Reset()
- func (x *ChannelInAuth) String() string
- type ChannelOpRequest
- func (*ChannelOpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelOpRequest) GetCid() string
- func (x *ChannelOpRequest) GetWei() string
- func (*ChannelOpRequest) ProtoMessage()
- func (x *ChannelOpRequest) ProtoReflect() protoreflect.Message
- func (x *ChannelOpRequest) Reset()
- func (x *ChannelOpRequest) String() string
- type ChannelOpResponse
- func (*ChannelOpResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelOpResponse) GetError() string
- func (x *ChannelOpResponse) GetStatus() int32
- func (*ChannelOpResponse) ProtoMessage()
- func (x *ChannelOpResponse) ProtoReflect() protoreflect.Message
- func (x *ChannelOpResponse) Reset()
- func (x *ChannelOpResponse) String() string
- type ChannelRoutingInfo
- func (*ChannelRoutingInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelRoutingInfo) GetBalance() string
- func (x *ChannelRoutingInfo) GetCid() string
- func (*ChannelRoutingInfo) ProtoMessage()
- func (x *ChannelRoutingInfo) ProtoReflect() protoreflect.Message
- func (x *ChannelRoutingInfo) Reset()
- func (x *ChannelRoutingInfo) String() string
- type ChannelSummary
- func (*ChannelSummary) Descriptor() ([]byte, []int)deprecated
- func (x *ChannelSummary) GetChannelId() []byte
- func (x *ChannelSummary) GetLedgerAddr() []byte
- func (x *ChannelSummary) GetMySeqNum() uint64
- func (x *ChannelSummary) GetPeerSeqNum() uint64
- func (*ChannelSummary) ProtoMessage()
- func (x *ChannelSummary) ProtoReflect() protoreflect.Message
- func (x *ChannelSummary) Reset()
- func (x *ChannelSummary) String() string
- type ClearExpiredPaysRequest
- func (*ClearExpiredPaysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClearExpiredPaysRequest) GetTokenAddress() []byte
- func (*ClearExpiredPaysRequest) ProtoMessage()
- func (x *ClearExpiredPaysRequest) ProtoReflect() protoreflect.Message
- func (x *ClearExpiredPaysRequest) Reset()
- func (x *ClearExpiredPaysRequest) String() string
- type CondPayReceipt
- func (*CondPayReceipt) Descriptor() ([]byte, []int)deprecated
- func (x *CondPayReceipt) GetDelegationProof() *DelegationProof
- func (x *CondPayReceipt) GetOriginalPayId() []byte
- func (x *CondPayReceipt) GetPayDelegatorSig() []byte
- func (x *CondPayReceipt) GetPayDestSig() []byte
- func (x *CondPayReceipt) GetPayId() []byte
- func (*CondPayReceipt) ProtoMessage()
- func (x *CondPayReceipt) ProtoReflect() protoreflect.Message
- func (x *CondPayReceipt) Reset()
- func (x *CondPayReceipt) String() string
- type CondPayRequest
- func (*CondPayRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CondPayRequest) GetBaseSeq() uint64
- func (x *CondPayRequest) GetCondPay() []byte
- func (x *CondPayRequest) GetCrossNet() *CrossNetPay
- func (x *CondPayRequest) GetDirectPay() bool
- func (x *CondPayRequest) GetNote() *anypb.Any
- func (x *CondPayRequest) GetStateOnlyPeerFromSig() *SignedSimplexState
- func (*CondPayRequest) ProtoMessage()
- func (x *CondPayRequest) ProtoReflect() protoreflect.Message
- func (x *CondPayRequest) Reset()
- func (x *CondPayRequest) String() string
- type CondPayResponse
- func (*CondPayResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CondPayResponse) GetError() *Error
- func (x *CondPayResponse) GetStateCosigned() *SignedSimplexState
- func (*CondPayResponse) ProtoMessage()
- func (x *CondPayResponse) ProtoReflect() protoreflect.Message
- func (x *CondPayResponse) Reset()
- func (x *CondPayResponse) String() string
- type ConfirmOnChainResolvedPaysRequest
- func (*ConfirmOnChainResolvedPaysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfirmOnChainResolvedPaysRequest) GetTokenAddress() []byte
- func (*ConfirmOnChainResolvedPaysRequest) ProtoMessage()
- func (x *ConfirmOnChainResolvedPaysRequest) ProtoReflect() protoreflect.Message
- func (x *ConfirmOnChainResolvedPaysRequest) Reset()
- func (x *ConfirmOnChainResolvedPaysRequest) String() string
- type ConnectionManager
- func (m *ConnectionManager) AddCelerStream(peerAddr ctype.Addr, stream CelerStream, msgProcessor chan *CelerMsg) context.Context
- func (m *ConnectionManager) AddConnection(peerAddr ctype.Addr, cc *grpc.ClientConn)
- func (m *ConnectionManager) AddErrorCallback(peerAddr ctype.Addr, cb ErrCallbackFunc)
- func (m *ConnectionManager) CleanupStreams(peerAddr ctype.Addr)
- func (m *ConnectionManager) CloseConnection(peerAddr ctype.Addr)
- func (m *ConnectionManager) CloseNoRetry(onchainAddr ctype.Addr)
- func (m *ConnectionManager) GetCelerStream(peerAddr ctype.Addr) *SafeSendCelerStream
- func (m *ConnectionManager) GetClient(peerAddr ctype.Addr) (RpcClient, error)
- func (m *ConnectionManager) GetClientByAddr(peerAddr ctype.Addr) (RpcClient, error)
- func (m *ConnectionManager) GetNumCelerStreams() int
- func (m *ConnectionManager) SetMsgQueueCallback(enable, disable MsgQueueCallbackFunc)
- type CooperativeWithdrawRequest
- func (*CooperativeWithdrawRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CooperativeWithdrawRequest) GetRequesterSig() []byte
- func (x *CooperativeWithdrawRequest) GetWithdrawInfo() *entity.CooperativeWithdrawInfo
- func (*CooperativeWithdrawRequest) ProtoMessage()
- func (x *CooperativeWithdrawRequest) ProtoReflect() protoreflect.Message
- func (x *CooperativeWithdrawRequest) Reset()
- func (x *CooperativeWithdrawRequest) String() string
- type CooperativeWithdrawResponse
- func (*CooperativeWithdrawResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CooperativeWithdrawResponse) GetApproverSig() []byte
- func (x *CooperativeWithdrawResponse) GetRequesterSig() []byte
- func (x *CooperativeWithdrawResponse) GetWithdrawInfo() *entity.CooperativeWithdrawInfo
- func (*CooperativeWithdrawResponse) ProtoMessage()
- func (x *CooperativeWithdrawResponse) ProtoReflect() protoreflect.Message
- func (x *CooperativeWithdrawResponse) Reset()
- func (x *CooperativeWithdrawResponse) String() string
- type CrossNetPay
- func (*CrossNetPay) Descriptor() ([]byte, []int)deprecated
- func (x *CrossNetPay) GetBridgeAddr() []byte
- func (x *CrossNetPay) GetBridgeNetId() uint64
- func (x *CrossNetPay) GetCrossing() bool
- func (x *CrossNetPay) GetDstNetId() uint64
- func (x *CrossNetPay) GetOriginalPay() []byte
- func (x *CrossNetPay) GetSrcNetId() uint64
- func (x *CrossNetPay) GetTimeout() uint64
- func (*CrossNetPay) ProtoMessage()
- func (x *CrossNetPay) ProtoReflect() protoreflect.Message
- func (x *CrossNetPay) Reset()
- func (x *CrossNetPay) String() string
- type DelegationDescription
- func (*DelegationDescription) Descriptor() ([]byte, []int)deprecated
- func (x *DelegationDescription) GetDelegatee() []byte
- func (x *DelegationDescription) GetDelegator() []byte
- func (x *DelegationDescription) GetExpiresAfterBlock() int64
- func (x *DelegationDescription) GetTokenToDelegate() [][]byte
- func (*DelegationDescription) ProtoMessage()
- func (x *DelegationDescription) ProtoReflect() protoreflect.Message
- func (x *DelegationDescription) Reset()
- func (x *DelegationDescription) String() string
- type DelegationProof
- func (*DelegationProof) Descriptor() ([]byte, []int)deprecated
- func (x *DelegationProof) GetDelegationDescriptionBytes() []byte
- func (x *DelegationProof) GetSignature() []byte
- func (x *DelegationProof) GetSigner() []byte
- func (*DelegationProof) ProtoMessage()
- func (x *DelegationProof) ProtoReflect() protoreflect.Message
- func (x *DelegationProof) Reset()
- func (x *DelegationProof) String() string
- type DelegationRequest
- func (*DelegationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DelegationRequest) GetProof() *DelegationProof
- func (*DelegationRequest) ProtoMessage()
- func (x *DelegationRequest) ProtoReflect() protoreflect.Message
- func (x *DelegationRequest) Reset()
- func (x *DelegationRequest) String() string
- type DelegationResponse
- func (*DelegationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DelegationResponse) GetError() string
- func (*DelegationResponse) ProtoMessage()
- func (x *DelegationResponse) ProtoReflect() protoreflect.Message
- func (x *DelegationResponse) Reset()
- func (x *DelegationResponse) String() string
- type DepositRequest
- func (*DepositRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DepositRequest) GetAmtWei() string
- func (x *DepositRequest) GetMaxWaitS() uint64
- func (x *DepositRequest) GetPeerAddr() string
- func (x *DepositRequest) GetToPeer() bool
- func (x *DepositRequest) GetTokenAddr() string
- func (*DepositRequest) ProtoMessage()
- func (x *DepositRequest) ProtoReflect() protoreflect.Message
- func (x *DepositRequest) Reset()
- func (x *DepositRequest) String() string
- type DepositResponse
- func (*DepositResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DepositResponse) GetDepositId() string
- func (x *DepositResponse) GetError() string
- func (x *DepositResponse) GetStatus() int32
- func (*DepositResponse) ProtoMessage()
- func (x *DepositResponse) ProtoReflect() protoreflect.Message
- func (x *DepositResponse) Reset()
- func (x *DepositResponse) String() string
- type DepositState
- func (DepositState) Descriptor() protoreflect.EnumDescriptor
- func (x DepositState) Enum() *DepositState
- func (DepositState) EnumDescriptor() ([]byte, []int)deprecated
- func (x DepositState) Number() protoreflect.EnumNumber
- func (x DepositState) String() string
- func (DepositState) Type() protoreflect.EnumType
- type ErrCallbackFunc
- type ErrCode
- type Error
- type FwdReply
- type FwdReq
- type GetPayHistoryRequest
- func (*GetPayHistoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPayHistoryRequest) GetBeforeTs() int64
- func (x *GetPayHistoryRequest) GetItemsPerPage() int32
- func (x *GetPayHistoryRequest) GetPeer() string
- func (x *GetPayHistoryRequest) GetSmallestPayId() string
- func (x *GetPayHistoryRequest) GetTs() uint64
- func (x *GetPayHistoryRequest) GetTsSig() []byte
- func (*GetPayHistoryRequest) ProtoMessage()
- func (x *GetPayHistoryRequest) ProtoReflect() protoreflect.Message
- func (x *GetPayHistoryRequest) Reset()
- func (x *GetPayHistoryRequest) String() string
- type GetPayHistoryResponse
- func (*GetPayHistoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPayHistoryResponse) GetPays() []*OneHistoricalPay
- func (*GetPayHistoryResponse) ProtoMessage()
- func (x *GetPayHistoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetPayHistoryResponse) Reset()
- func (x *GetPayHistoryResponse) String() string
- type JoinCelerStatus
- func (JoinCelerStatus) Descriptor() protoreflect.EnumDescriptor
- func (x JoinCelerStatus) Enum() *JoinCelerStatus
- func (JoinCelerStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x JoinCelerStatus) Number() protoreflect.EnumNumber
- func (x JoinCelerStatus) String() string
- func (JoinCelerStatus) Type() protoreflect.EnumType
- type MID
- type MigrateChannelRequest
- func (*MigrateChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MigrateChannelRequest) GetChannelMigrationInfo() []byte
- func (x *MigrateChannelRequest) GetRequesterSig() []byte
- func (*MigrateChannelRequest) ProtoMessage()
- func (x *MigrateChannelRequest) ProtoReflect() protoreflect.Message
- func (x *MigrateChannelRequest) Reset()
- func (x *MigrateChannelRequest) String() string
- type MigrateChannelResponse
- func (*MigrateChannelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MigrateChannelResponse) GetApproverSig() []byte
- func (*MigrateChannelResponse) ProtoMessage()
- func (x *MigrateChannelResponse) ProtoReflect() protoreflect.Message
- func (x *MigrateChannelResponse) Reset()
- func (x *MigrateChannelResponse) String() string
- type MsgQueueCallbackFunc
- type MultiServerClient
- type MultiServerServer
- type OneHistoricalPay
- func (*OneHistoricalPay) Descriptor() ([]byte, []int)deprecated
- func (x *OneHistoricalPay) GetAmt() string
- func (x *OneHistoricalPay) GetCreateTs() int64
- func (x *OneHistoricalPay) GetDst() string
- func (x *OneHistoricalPay) GetPayId() string
- func (x *OneHistoricalPay) GetSrc() string
- func (x *OneHistoricalPay) GetState() int64
- func (x *OneHistoricalPay) GetToken() string
- func (*OneHistoricalPay) ProtoMessage()
- func (x *OneHistoricalPay) ProtoReflect() protoreflect.Message
- func (x *OneHistoricalPay) Reset()
- func (x *OneHistoricalPay) String() string
- type OpenChannelBy
- func (OpenChannelBy) Descriptor() protoreflect.EnumDescriptor
- func (x OpenChannelBy) Enum() *OpenChannelBy
- func (OpenChannelBy) EnumDescriptor() ([]byte, []int)deprecated
- func (x OpenChannelBy) Number() protoreflect.EnumNumber
- func (x OpenChannelBy) String() string
- func (OpenChannelBy) Type() protoreflect.EnumType
- type OpenChannelRequest
- func (*OpenChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OpenChannelRequest) GetChannelInitializer() []byte
- func (x *OpenChannelRequest) GetOpenBy() OpenChannelBy
- func (x *OpenChannelRequest) GetOspToOsp() bool
- func (x *OpenChannelRequest) GetRequesterSig() []byte
- func (*OpenChannelRequest) ProtoMessage()
- func (x *OpenChannelRequest) ProtoReflect() protoreflect.Message
- func (x *OpenChannelRequest) Reset()
- func (x *OpenChannelRequest) String() string
- type OpenChannelResponse
- func (*OpenChannelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OpenChannelResponse) GetApproverSig() []byte
- func (x *OpenChannelResponse) GetChannelInitializer() []byte
- func (x *OpenChannelResponse) GetPaymentChannelId() []byte
- func (x *OpenChannelResponse) GetRequesterSig() []byte
- func (x *OpenChannelResponse) GetStatus() OpenChannelStatus
- func (*OpenChannelResponse) ProtoMessage()
- func (x *OpenChannelResponse) ProtoReflect() protoreflect.Message
- func (x *OpenChannelResponse) Reset()
- func (x *OpenChannelResponse) String() string
- type OpenChannelStatus
- func (OpenChannelStatus) Descriptor() protoreflect.EnumDescriptor
- func (x OpenChannelStatus) Enum() *OpenChannelStatus
- func (OpenChannelStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x OpenChannelStatus) Number() protoreflect.EnumNumber
- func (x OpenChannelStatus) String() string
- func (OpenChannelStatus) Type() protoreflect.EnumType
- type OspOpenChannelRequest
- func (*OspOpenChannelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OspOpenChannelRequest) GetPeerDepositAmtWei() string
- func (x *OspOpenChannelRequest) GetPeerEthAddress() []byte
- func (x *OspOpenChannelRequest) GetSelfDepositAmtWei() string
- func (x *OspOpenChannelRequest) GetTokenAddress() []byte
- func (x *OspOpenChannelRequest) GetTokenType() entity.TokenType
- func (*OspOpenChannelRequest) ProtoMessage()
- func (x *OspOpenChannelRequest) ProtoReflect() protoreflect.Message
- func (x *OspOpenChannelRequest) Reset()
- func (x *OspOpenChannelRequest) String() string
- type PayHop
- func (*PayHop) Descriptor() ([]byte, []int)deprecated
- func (x *PayHop) GetErr() *Error
- func (x *PayHop) GetNextHopAddr() []byte
- func (x *PayHop) GetPayId() []byte
- func (x *PayHop) GetPrevHopAddr() []byte
- func (*PayHop) ProtoMessage()
- func (x *PayHop) ProtoReflect() protoreflect.Message
- func (x *PayHop) Reset()
- func (x *PayHop) String() string
- type PayInAuthAck
- func (*PayInAuthAck) Descriptor() ([]byte, []int)deprecated
- func (x *PayInAuthAck) GetNote() *anypb.Any
- func (x *PayInAuthAck) GetPay() []byte
- func (x *PayInAuthAck) GetState() int64
- func (*PayInAuthAck) ProtoMessage()
- func (x *PayInAuthAck) ProtoReflect() protoreflect.Message
- func (x *PayInAuthAck) Reset()
- func (x *PayInAuthAck) String() string
- type PayPath
- type PaymentSettleProof
- func (*PaymentSettleProof) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentSettleProof) GetSettledPays() []*SettledPayment
- func (x *PaymentSettleProof) GetVouchedCondPayResults() []*entity.VouchedCondPayResult
- func (*PaymentSettleProof) ProtoMessage()
- func (x *PaymentSettleProof) ProtoReflect() protoreflect.Message
- func (x *PaymentSettleProof) Reset()
- func (x *PaymentSettleProof) String() string
- type PaymentSettleReason
- func (PaymentSettleReason) Descriptor() protoreflect.EnumDescriptor
- func (x PaymentSettleReason) Enum() *PaymentSettleReason
- func (PaymentSettleReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x PaymentSettleReason) Number() protoreflect.EnumNumber
- func (x PaymentSettleReason) String() string
- func (PaymentSettleReason) Type() protoreflect.EnumType
- type PaymentSettleRequest
- func (*PaymentSettleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentSettleRequest) GetBaseSeq() uint64
- func (x *PaymentSettleRequest) GetSettledPays() []*SettledPayment
- func (x *PaymentSettleRequest) GetStateOnlyPeerFromSig() *SignedSimplexState
- func (*PaymentSettleRequest) ProtoMessage()
- func (x *PaymentSettleRequest) ProtoReflect() protoreflect.Message
- func (x *PaymentSettleRequest) Reset()
- func (x *PaymentSettleRequest) String() string
- type PaymentSettleResponse
- func (*PaymentSettleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentSettleResponse) GetError() *Error
- func (x *PaymentSettleResponse) GetStateCosigned() *SignedSimplexState
- func (*PaymentSettleResponse) ProtoMessage()
- func (x *PaymentSettleResponse) ProtoReflect() protoreflect.Message
- func (x *PaymentSettleResponse) Reset()
- func (x *PaymentSettleResponse) String() string
- type PeerAddress
- func (*PeerAddress) Descriptor() ([]byte, []int)deprecated
- func (x *PeerAddress) GetAddress() string
- func (x *PeerAddress) GetTokenAddr() string
- func (*PeerAddress) ProtoMessage()
- func (x *PeerAddress) ProtoReflect() protoreflect.Message
- func (x *PeerAddress) Reset()
- func (x *PeerAddress) String() string
- type PeerOsp
- func (*PeerOsp) Descriptor() ([]byte, []int)deprecated
- func (x *PeerOsp) GetOspAddress() string
- func (x *PeerOsp) GetTokenCidPairs() []*TokenCidPair
- func (x *PeerOsp) GetUpdateTs() uint64
- func (*PeerOsp) ProtoMessage()
- func (x *PeerOsp) ProtoReflect() protoreflect.Message
- func (x *PeerOsp) Reset()
- func (x *PeerOsp) String() string
- type PeerOspsResponse
- type PeerStatus
- func (*PeerStatus) Descriptor() ([]byte, []int)deprecated
- func (x *PeerStatus) GetFreeBalance() string
- func (x *PeerStatus) GetJoinStatus() JoinCelerStatus
- func (*PeerStatus) ProtoMessage()
- func (x *PeerStatus) ProtoReflect() protoreflect.Message
- func (x *PeerStatus) Reset()
- func (x *PeerStatus) String() string
- type PickReply
- type PickReq
- type PingReply
- type PingReq
- type QueryDelegationRequest
- func (*QueryDelegationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDelegationRequest) GetDelegatee() []byte
- func (*QueryDelegationRequest) ProtoMessage()
- func (x *QueryDelegationRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDelegationRequest) Reset()
- func (x *QueryDelegationRequest) String() string
- type QueryDelegationResponse
- func (*QueryDelegationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDelegationResponse) GetProof() *DelegationProof
- func (*QueryDelegationResponse) ProtoMessage()
- func (x *QueryDelegationResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDelegationResponse) Reset()
- func (x *QueryDelegationResponse) String() string
- type QueryDepositRequest
- func (*QueryDepositRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDepositRequest) GetDepositId() string
- func (*QueryDepositRequest) ProtoMessage()
- func (x *QueryDepositRequest) ProtoReflect() protoreflect.Message
- func (x *QueryDepositRequest) Reset()
- func (x *QueryDepositRequest) String() string
- type QueryDepositResponse
- func (*QueryDepositResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryDepositResponse) GetDepositState() DepositState
- func (x *QueryDepositResponse) GetError() string
- func (*QueryDepositResponse) ProtoMessage()
- func (x *QueryDepositResponse) ProtoReflect() protoreflect.Message
- func (x *QueryDepositResponse) Reset()
- func (x *QueryDepositResponse) String() string
- type RegisterClientCallbackFunc
- type RegisterStreamRequest
- func (*RegisterStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterStreamRequest) GetPeerEthAddress() []byte
- func (x *RegisterStreamRequest) GetPeerRpcAddress() string
- func (*RegisterStreamRequest) ProtoMessage()
- func (x *RegisterStreamRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterStreamRequest) Reset()
- func (x *RegisterStreamRequest) String() string
- type RevealSecret
- func (*RevealSecret) Descriptor() ([]byte, []int)deprecated
- func (x *RevealSecret) GetOriginalPayId() []byte
- func (x *RevealSecret) GetPayId() []byte
- func (x *RevealSecret) GetSecret() []byte
- func (*RevealSecret) ProtoMessage()
- func (x *RevealSecret) ProtoReflect() protoreflect.Message
- func (x *RevealSecret) Reset()
- func (x *RevealSecret) String() string
- type RevealSecretAck
- func (*RevealSecretAck) Descriptor() ([]byte, []int)deprecated
- func (x *RevealSecretAck) GetOriginalPayId() []byte
- func (x *RevealSecretAck) GetPayDestSecretSig() []byte
- func (x *RevealSecretAck) GetPayId() []byte
- func (*RevealSecretAck) ProtoMessage()
- func (x *RevealSecretAck) ProtoReflect() protoreflect.Message
- func (x *RevealSecretAck) Reset()
- func (x *RevealSecretAck) String() string
- type RoutingRequest
- func (*RoutingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RoutingRequest) GetSender() string
- func (x *RoutingRequest) GetUpdates() []*SignedRoutingUpdate
- func (*RoutingRequest) ProtoMessage()
- func (x *RoutingRequest) ProtoReflect() protoreflect.Message
- func (x *RoutingRequest) Reset()
- func (x *RoutingRequest) String() string
- type RoutingUpdate
- func (*RoutingUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *RoutingUpdate) GetChannels() []*ChannelRoutingInfo
- func (x *RoutingUpdate) GetOrigin() string
- func (x *RoutingUpdate) GetProtoVersion() uint64
- func (x *RoutingUpdate) GetTs() uint64
- func (*RoutingUpdate) ProtoMessage()
- func (x *RoutingUpdate) ProtoReflect() protoreflect.Message
- func (x *RoutingUpdate) Reset()
- func (x *RoutingUpdate) String() string
- type RpcClient
- type RpcServer
- type Rpc_CelerOneServer
- type Rpc_CelerStreamClient
- type Rpc_CelerStreamServer
- type SafeSendCelerStream
- type SendTokenRequest
- func (*SendTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SendTokenRequest) GetAmtWei() string
- func (x *SendTokenRequest) GetDstAddr() string
- func (x *SendTokenRequest) GetDstNetId() uint64
- func (x *SendTokenRequest) GetNote() *anypb.Any
- func (x *SendTokenRequest) GetTokenAddr() string
- func (*SendTokenRequest) ProtoMessage()
- func (x *SendTokenRequest) ProtoReflect() protoreflect.Message
- func (x *SendTokenRequest) Reset()
- func (x *SendTokenRequest) String() string
- type SendTokenResponse
- func (*SendTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendTokenResponse) GetError() string
- func (x *SendTokenResponse) GetPayId() string
- func (x *SendTokenResponse) GetStatus() int32
- func (*SendTokenResponse) ProtoMessage()
- func (x *SendTokenResponse) ProtoReflect() protoreflect.Message
- func (x *SendTokenResponse) Reset()
- func (x *SendTokenResponse) String() string
- type SettledPayment
- func (*SettledPayment) Descriptor() ([]byte, []int)deprecated
- func (x *SettledPayment) GetAmount() []byte
- func (x *SettledPayment) GetOriginalPayId() []byte
- func (x *SettledPayment) GetPath() *PayPath
- func (x *SettledPayment) GetReason() PaymentSettleReason
- func (x *SettledPayment) GetSettledPayId() []byte
- func (*SettledPayment) ProtoMessage()
- func (x *SettledPayment) ProtoReflect() protoreflect.Message
- func (x *SettledPayment) Reset()
- func (x *SettledPayment) String() string
- type SignedDuplexState
- func (*SignedDuplexState) Descriptor() ([]byte, []int)deprecated
- func (x *SignedDuplexState) GetSimplexStates() []*SignedSimplexState
- func (*SignedDuplexState) ProtoMessage()
- func (x *SignedDuplexState) ProtoReflect() protoreflect.Message
- func (x *SignedDuplexState) Reset()
- func (x *SignedDuplexState) String() string
- type SignedPayHop
- func (*SignedPayHop) Descriptor() ([]byte, []int)deprecated
- func (x *SignedPayHop) GetPayHopBytes() []byte
- func (x *SignedPayHop) GetSig() []byte
- func (*SignedPayHop) ProtoMessage()
- func (x *SignedPayHop) ProtoReflect() protoreflect.Message
- func (x *SignedPayHop) Reset()
- func (x *SignedPayHop) String() string
- type SignedRoutingUpdate
- func (*SignedRoutingUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *SignedRoutingUpdate) GetSig() []byte
- func (x *SignedRoutingUpdate) GetTtl() uint64
- func (x *SignedRoutingUpdate) GetUpdate() []byte
- func (*SignedRoutingUpdate) ProtoMessage()
- func (x *SignedRoutingUpdate) ProtoReflect() protoreflect.Message
- func (x *SignedRoutingUpdate) Reset()
- func (x *SignedRoutingUpdate) String() string
- type SignedSimplexState
- func (*SignedSimplexState) Descriptor() ([]byte, []int)deprecated
- func (x *SignedSimplexState) GetSigOfPeerFrom() []byte
- func (x *SignedSimplexState) GetSigOfPeerTo() []byte
- func (x *SignedSimplexState) GetSimplexState() []byte
- func (*SignedSimplexState) ProtoMessage()
- func (x *SignedSimplexState) ProtoReflect() protoreflect.Message
- func (x *SignedSimplexState) Reset()
- func (x *SignedSimplexState) String() string
- type TokenCidPair
- func (*TokenCidPair) Descriptor() ([]byte, []int)deprecated
- func (x *TokenCidPair) GetCid() string
- func (x *TokenCidPair) GetTokenAddress() string
- func (*TokenCidPair) ProtoMessage()
- func (x *TokenCidPair) ProtoReflect() protoreflect.Message
- func (x *TokenCidPair) Reset()
- func (x *TokenCidPair) String() string
- type UnimplementedAdminServer
- func (UnimplementedAdminServer) BuildRoutingTable(context.Context, *BuildRoutingTableRequest) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) ClearExpiredPaysWithPeerOsps(context.Context, *ClearExpiredPaysRequest) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) ConfirmOnChainResolvedPaysWithPeerOsps(context.Context, *ConfirmOnChainResolvedPaysRequest) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) CooperativeSettle(context.Context, *ChannelOpRequest) (*ChannelOpResponse, error)
- func (UnimplementedAdminServer) CooperativeWithdraw(context.Context, *ChannelOpRequest) (*ChannelOpResponse, error)
- func (UnimplementedAdminServer) Deposit(context.Context, *DepositRequest) (*DepositResponse, error)
- func (UnimplementedAdminServer) GetPeerOsps(context.Context, *emptypb.Empty) (*PeerOspsResponse, error)
- func (UnimplementedAdminServer) OspOpenChannel(context.Context, *OspOpenChannelRequest) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) QueryDeposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error)
- func (UnimplementedAdminServer) RecvBcastRoutingInfo(context.Context, *RoutingRequest) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) RegisterStream(context.Context, *RegisterStreamRequest) (*emptypb.Empty, error)
- func (UnimplementedAdminServer) SendToken(context.Context, *SendTokenRequest) (*SendTokenResponse, error)
- type UnimplementedMultiServerServer
- func (UnimplementedMultiServerServer) BcastRoutingInfo(context.Context, *BcastRoutingRequest) (*BcastRoutingReply, error)
- func (UnimplementedMultiServerServer) FwdMsg(context.Context, *FwdReq) (*FwdReply, error)
- func (UnimplementedMultiServerServer) PickServer(context.Context, *PickReq) (*PickReply, error)
- func (UnimplementedMultiServerServer) Ping(context.Context, *PingReq) (*PingReply, error)
- type UnimplementedRpcServer
- func (UnimplementedRpcServer) CelerGetPeerStatus(context.Context, *PeerAddress) (*PeerStatus, error)
- func (UnimplementedRpcServer) CelerMigrateChannel(context.Context, *MigrateChannelRequest) (*MigrateChannelResponse, error)
- func (UnimplementedRpcServer) CelerOpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
- func (UnimplementedRpcServer) CelerOpenTcbChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
- func (UnimplementedRpcServer) CelerStream(Rpc_CelerStreamServer) error
- func (UnimplementedRpcServer) GetPayHistory(context.Context, *GetPayHistoryRequest) (*GetPayHistoryResponse, error)
- func (UnimplementedRpcServer) QueryDelegation(context.Context, *QueryDelegationRequest) (*QueryDelegationResponse, error)
- func (UnimplementedRpcServer) RequestDelegation(context.Context, *DelegationRequest) (*DelegationResponse, error)
- type UnsafeAdminServer
- type UnsafeMultiServerServer
- type UnsafeRpcServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrCode_name = map[int32]string{ 0: "OK", 1: "UNAUTHORIZED", 2: "INVALID_SIG", 3: "INCORRECT_CLOCK", 4: "WRONG_PEER", 5: "INVALID_SEQ_NUM", 6: "PAY_ROUTE_LOOP", 7: "NO_ROUTE_TO_DST", 8: "NOT_ENOUGH_BALANCE", 9: "PEER_NOT_ONLINE", 10: "MISC_ERROR", } ErrCode_value = map[string]int32{ "OK": 0, "UNAUTHORIZED": 1, "INVALID_SIG": 2, "INCORRECT_CLOCK": 3, "WRONG_PEER": 4, "INVALID_SEQ_NUM": 5, "PAY_ROUTE_LOOP": 6, "NO_ROUTE_TO_DST": 7, "NOT_ENOUGH_BALANCE": 8, "PEER_NOT_ONLINE": 9, "MISC_ERROR": 10, } )
Enum value maps for ErrCode.
var ( PaymentSettleReason_name = map[int32]string{ 0: "NONE", 1: "PAY_EXPIRED", 2: "PAY_REJECTED", 3: "PAY_RESOLVED_ONCHAIN", 4: "PAY_PAID_MAX", 5: "PAY_DEST_UNREACHABLE", 6: "PAY_VOUCHED", } PaymentSettleReason_value = map[string]int32{ "NONE": 0, "PAY_EXPIRED": 1, "PAY_REJECTED": 2, "PAY_RESOLVED_ONCHAIN": 3, "PAY_PAID_MAX": 4, "PAY_DEST_UNREACHABLE": 5, "PAY_VOUCHED": 6, } )
Enum value maps for PaymentSettleReason.
var ( OpenChannelBy_name = map[int32]string{ 0: "UNDEFINED_OPEN_BY", 1: "OPEN_CHANNEL_PROPOSER", 2: "OPEN_CHANNEL_APPROVER", } OpenChannelBy_value = map[string]int32{ "UNDEFINED_OPEN_BY": 0, "OPEN_CHANNEL_PROPOSER": 1, "OPEN_CHANNEL_APPROVER": 2, } )
Enum value maps for OpenChannelBy.
var ( OpenChannelStatus_name = map[int32]string{ 0: "UNDEFINED_OPEN_CHANNEL_STATUS", 1: "OPEN_CHANNEL_APPROVED", 2: "OPEN_CHANNEL_TX_SUBMITTED", 3: "OPEN_CHANNEL_TCB_OPENED", } OpenChannelStatus_value = map[string]int32{ "UNDEFINED_OPEN_CHANNEL_STATUS": 0, "OPEN_CHANNEL_APPROVED": 1, "OPEN_CHANNEL_TX_SUBMITTED": 2, "OPEN_CHANNEL_TCB_OPENED": 3, } )
Enum value maps for OpenChannelStatus.
var ( JoinCelerStatus_name = map[int32]string{ 0: "NOT_JOIN", 1: "LOCAL", 2: "REMOTE", } JoinCelerStatus_value = map[string]int32{ "NOT_JOIN": 0, "LOCAL": 1, "REMOTE": 2, } )
Enum value maps for JoinCelerStatus.
var ( DepositState_name = map[int32]string{ 0: "Deposit_NOT_FOUND", 1: "Deposit_QUEUED", 2: "Deposit_SUBMITTED", 3: "Deposit_SUCCEEDED", 4: "Deposit_FAILED", } DepositState_value = map[string]int32{ "Deposit_NOT_FOUND": 0, "Deposit_QUEUED": 1, "Deposit_SUBMITTED": 2, "Deposit_SUCCEEDED": 3, "Deposit_FAILED": 4, } )
Enum value maps for DepositState.
var File_message_proto protoreflect.FileDescriptor
var File_multiserver_proto protoreflect.FileDescriptor
var File_osp_admin_proto protoreflect.FileDescriptor
var File_rpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdminHandler ¶
RegisterAdminHandler registers the http handlers for service Admin to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAdminHandlerClient ¶
func RegisterAdminHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminClient) error
RegisterAdminHandlerClient registers the http handlers for service Admin to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdminClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdminClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AdminClient" to call the correct interceptors.
func RegisterAdminHandlerFromEndpoint ¶
func RegisterAdminHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAdminHandlerFromEndpoint is same as RegisterAdminHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAdminServer ¶
func RegisterAdminServer(s *grpc.Server, srv AdminServer)
func RegisterMultiServerServer ¶
func RegisterMultiServerServer(s *grpc.Server, srv MultiServerServer)
func RegisterRpcServer ¶
Types ¶
type AdminClient ¶
type AdminClient interface {
// ConfirmOnChainResolvedPaysWithPeerOsps instructs Osp to confirm on-chain resolved pays between itself and connected osps.
ConfirmOnChainResolvedPaysWithPeerOsps(ctx context.Context, in *ConfirmOnChainResolvedPaysRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// ClearExpiredPaysWithPeerOsps instructs Osp to clear expired pays between itself and connected osps.
ClearExpiredPaysWithPeerOsps(ctx context.Context, in *ClearExpiredPaysRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// BuildRoutingTable instructs Osp to build routing table.
BuildRoutingTable(ctx context.Context, in *BuildRoutingTableRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// RecvBcastRoutingInfo gives the OSP (listener & router) the incoming
// broadcast routing information (OSP server forwarding to the listener).
RecvBcastRoutingInfo(ctx context.Context, in *RoutingRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// GetPeerOsps returns info of all peer osps.
GetPeerOsps(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PeerOspsResponse, error)
// OspOpenChannel instructs Osp to open a state channel with a peer described in request.
OspOpenChannel(ctx context.Context, in *OspOpenChannelRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// SendToken instructs the OSP to send token specified in SendTokenRequest.
SendToken(ctx context.Context, in *SendTokenRequest, opts ...grpc.CallOption) (*SendTokenResponse, error)
// Deposit instructs the OSP to deposit token specified in DepositRequest.
Deposit(ctx context.Context, in *DepositRequest, opts ...grpc.CallOption) (*DepositResponse, error)
// QueryDeposit asks OSP about the deposit status
QueryDeposit(ctx context.Context, in *QueryDepositRequest, opts ...grpc.CallOption) (*QueryDepositResponse, error)
// RegisterStream instructs the OSP to connect with other osp specified in RegisterStreamRequest.
RegisterStream(ctx context.Context, in *RegisterStreamRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
CooperativeWithdraw(ctx context.Context, in *ChannelOpRequest, opts ...grpc.CallOption) (*ChannelOpResponse, error)
CooperativeSettle(ctx context.Context, in *ChannelOpRequest, opts ...grpc.CallOption) (*ChannelOpResponse, error)
}
AdminClient is the client API for Admin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAdminClient ¶
func NewAdminClient(cc grpc.ClientConnInterface) AdminClient
type AdminServer ¶
type AdminServer interface {
// ConfirmOnChainResolvedPaysWithPeerOsps instructs Osp to confirm on-chain resolved pays between itself and connected osps.
ConfirmOnChainResolvedPaysWithPeerOsps(context.Context, *ConfirmOnChainResolvedPaysRequest) (*emptypb.Empty, error)
// ClearExpiredPaysWithPeerOsps instructs Osp to clear expired pays between itself and connected osps.
ClearExpiredPaysWithPeerOsps(context.Context, *ClearExpiredPaysRequest) (*emptypb.Empty, error)
// BuildRoutingTable instructs Osp to build routing table.
BuildRoutingTable(context.Context, *BuildRoutingTableRequest) (*emptypb.Empty, error)
// RecvBcastRoutingInfo gives the OSP (listener & router) the incoming
// broadcast routing information (OSP server forwarding to the listener).
RecvBcastRoutingInfo(context.Context, *RoutingRequest) (*emptypb.Empty, error)
// GetPeerOsps returns info of all peer osps.
GetPeerOsps(context.Context, *emptypb.Empty) (*PeerOspsResponse, error)
// OspOpenChannel instructs Osp to open a state channel with a peer described in request.
OspOpenChannel(context.Context, *OspOpenChannelRequest) (*emptypb.Empty, error)
// SendToken instructs the OSP to send token specified in SendTokenRequest.
SendToken(context.Context, *SendTokenRequest) (*SendTokenResponse, error)
// Deposit instructs the OSP to deposit token specified in DepositRequest.
Deposit(context.Context, *DepositRequest) (*DepositResponse, error)
// QueryDeposit asks OSP about the deposit status
QueryDeposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error)
// RegisterStream instructs the OSP to connect with other osp specified in RegisterStreamRequest.
RegisterStream(context.Context, *RegisterStreamRequest) (*emptypb.Empty, error)
CooperativeWithdraw(context.Context, *ChannelOpRequest) (*ChannelOpResponse, error)
CooperativeSettle(context.Context, *ChannelOpRequest) (*ChannelOpResponse, error)
// contains filtered or unexported methods
}
AdminServer is the server API for Admin service. All implementations must embed UnimplementedAdminServer for forward compatibility
type AuthAck ¶
type AuthAck struct {
// expect requester to set mid to start_mid in next message
// including the assigned tag
StartMid *MID `protobuf:"bytes,1,opt,name=start_mid,json=startMid,proto3" json:"start_mid,omitempty"`
// if req set mutual_auth, return acker's sig of authreq.timestamp
// we assume requester has context to verify against expect_peer
MySig []byte `protobuf:"bytes,2,opt,name=my_sig,json=mySig,proto3" json:"my_sig,omitempty"`
// channels to be syned w/ auth requester
SyncChannels []*ChannelInAuth `protobuf:"bytes,3,rep,name=sync_channels,json=syncChannels,proto3" json:"sync_channels,omitempty"`
// contains filtered or unexported fields
}
func (*AuthAck) Descriptor
deprecated
func (*AuthAck) GetStartMid ¶
func (*AuthAck) GetSyncChannels ¶
func (x *AuthAck) GetSyncChannels() []*ChannelInAuth
func (*AuthAck) ProtoMessage ¶
func (*AuthAck) ProtoMessage()
func (*AuthAck) ProtoReflect ¶ added in v1.1.0
func (x *AuthAck) ProtoReflect() protoreflect.Message
type AuthReq ¶
type AuthReq struct {
MyAddr []byte `protobuf:"bytes,1,opt,name=my_addr,json=myAddr,proto3" json:"my_addr,omitempty"`
// protect against replay attack
Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// sig of timestamp field
MySig []byte `protobuf:"bytes,3,opt,name=my_sig,json=mySig,proto3" json:"my_sig,omitempty"`
ExpectPeer []byte `protobuf:"bytes,4,opt,name=expect_peer,json=expectPeer,proto3" json:"expect_peer,omitempty"`
// whether to require peer proving it owns expect_peer
MutualAuth bool `protobuf:"varint,5,opt,name=mutual_auth,json=mutualAuth,proto3" json:"mutual_auth,omitempty"`
// r0.15 doesn't have this field so it's 0
// r0.16 has 1 to support sync in auth
ProtocolVersion uint64 `protobuf:"varint,6,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
// client's view of channels. empty if never openchan or recover case
OpenedChannels []*ChannelSummary `protobuf:"bytes,7,rep,name=opened_channels,json=openedChannels,proto3" json:"opened_channels,omitempty"`
// contains filtered or unexported fields
}
prove to peer I own this addr
func (*AuthReq) Descriptor
deprecated
func (*AuthReq) GetExpectPeer ¶
func (*AuthReq) GetMutualAuth ¶
func (*AuthReq) GetOpenedChannels ¶
func (x *AuthReq) GetOpenedChannels() []*ChannelSummary
func (*AuthReq) GetProtocolVersion ¶
func (*AuthReq) GetTimestamp ¶
func (*AuthReq) ProtoMessage ¶
func (*AuthReq) ProtoMessage()
func (*AuthReq) ProtoReflect ¶ added in v1.1.0
func (x *AuthReq) ProtoReflect() protoreflect.Message
type BcastRoutingReply ¶
type BcastRoutingReply struct {
// contains filtered or unexported fields
}
Next tag: 1
func (*BcastRoutingReply) Descriptor
deprecated
func (*BcastRoutingReply) Descriptor() ([]byte, []int)
Deprecated: Use BcastRoutingReply.ProtoReflect.Descriptor instead.
func (*BcastRoutingReply) ProtoMessage ¶
func (*BcastRoutingReply) ProtoMessage()
func (*BcastRoutingReply) ProtoReflect ¶ added in v1.1.0
func (x *BcastRoutingReply) ProtoReflect() protoreflect.Message
func (*BcastRoutingReply) Reset ¶
func (x *BcastRoutingReply) Reset()
func (*BcastRoutingReply) String ¶
func (x *BcastRoutingReply) String() string
type BcastRoutingRequest ¶
type BcastRoutingRequest struct {
// the routing request to broadcast
Req *RoutingRequest `protobuf:"bytes,1,opt,name=req,proto3" json:"req,omitempty"`
// peer OSPs to send the request to
Osps []string `protobuf:"bytes,2,rep,name=osps,proto3" json:"osps,omitempty"`
// contains filtered or unexported fields
}
Next tag: 3
func (*BcastRoutingRequest) Descriptor
deprecated
func (*BcastRoutingRequest) Descriptor() ([]byte, []int)
Deprecated: Use BcastRoutingRequest.ProtoReflect.Descriptor instead.
func (*BcastRoutingRequest) GetOsps ¶
func (x *BcastRoutingRequest) GetOsps() []string
func (*BcastRoutingRequest) GetReq ¶
func (x *BcastRoutingRequest) GetReq() *RoutingRequest
func (*BcastRoutingRequest) ProtoMessage ¶
func (*BcastRoutingRequest) ProtoMessage()
func (*BcastRoutingRequest) ProtoReflect ¶ added in v1.1.0
func (x *BcastRoutingRequest) ProtoReflect() protoreflect.Message
func (*BcastRoutingRequest) Reset ¶
func (x *BcastRoutingRequest) Reset()
func (*BcastRoutingRequest) String ¶
func (x *BcastRoutingRequest) String() string
type BuildRoutingTableRequest ¶
type BuildRoutingTableRequest struct {
TokenAddress []byte `protobuf:"bytes,1,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"`
// contains filtered or unexported fields
}
Admin request to build routing table. Next tag: 2
func (*BuildRoutingTableRequest) Descriptor
deprecated
func (*BuildRoutingTableRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRoutingTableRequest.ProtoReflect.Descriptor instead.
func (*BuildRoutingTableRequest) GetTokenAddress ¶
func (x *BuildRoutingTableRequest) GetTokenAddress() []byte
func (*BuildRoutingTableRequest) ProtoMessage ¶
func (*BuildRoutingTableRequest) ProtoMessage()
func (*BuildRoutingTableRequest) ProtoReflect ¶ added in v1.1.0
func (x *BuildRoutingTableRequest) ProtoReflect() protoreflect.Message
func (*BuildRoutingTableRequest) Reset ¶
func (x *BuildRoutingTableRequest) Reset()
func (*BuildRoutingTableRequest) String ¶
func (x *BuildRoutingTableRequest) String() string
type CelerMsg ¶
type CelerMsg struct {
Mid *MID `protobuf:"bytes,1,opt,name=mid,proto3" json:"mid,omitempty"`
// if ret_mid is set in received msg, use it as mid in next msg to send
// this is to support multi-msg exchanges and let both ends be able to correlate
// their own MID req/resp
RetMid *MID `protobuf:"bytes,2,opt,name=ret_mid,json=retMid,proto3" json:"ret_mid,omitempty"`
// bitmask flags for nature of this msg, eg. End2End, First msg in subflow, Last of subflow etc
Flag uint64 `protobuf:"varint,3,opt,name=flag,proto3" json:"flag,omitempty"`
// to_addr is only used for end-to-end msg to save relay node looking into payload
// for hop-by-hop, expected peer addr is already checked in authreq/ack so no need in every msg
ToAddr []byte `protobuf:"bytes,4,opt,name=to_addr,json=toAddr,proto3" json:"to_addr,omitempty"`
// Types that are valid to be assigned to Message:
//
// *CelerMsg_Error
// *CelerMsg_AuthReq
// *CelerMsg_AuthAck
// *CelerMsg_CondPayRequest
// *CelerMsg_CondPayResponse
// *CelerMsg_PaymentSettleProof
// *CelerMsg_PaymentSettleRequest
// *CelerMsg_PaymentSettleResponse
// *CelerMsg_WithdrawRequest
// *CelerMsg_WithdrawResponse
// *CelerMsg_RoutingRequest
// *CelerMsg_CondPayReceipt
// *CelerMsg_RevealSecret
// *CelerMsg_RevealSecretAck
// *CelerMsg_PayResultVouchRequest
// *CelerMsg_PayResultVouchResponse
Message isCelerMsg_Message `protobuf_oneof:"message"`
// contains filtered or unexported fields
}
Envelope msg for unified bidi-streaming
func (*CelerMsg) Descriptor
deprecated
func (*CelerMsg) GetAuthAck ¶
func (*CelerMsg) GetAuthReq ¶
func (*CelerMsg) GetCondPayReceipt ¶
func (x *CelerMsg) GetCondPayReceipt() *CondPayReceipt
func (*CelerMsg) GetCondPayRequest ¶
func (x *CelerMsg) GetCondPayRequest() *CondPayRequest
func (*CelerMsg) GetCondPayResponse ¶
func (x *CelerMsg) GetCondPayResponse() *CondPayResponse
func (*CelerMsg) GetMessage ¶
func (x *CelerMsg) GetMessage() isCelerMsg_Message
func (*CelerMsg) GetPayResultVouchRequest ¶
func (x *CelerMsg) GetPayResultVouchRequest() *entity.VouchedCondPayResult
func (*CelerMsg) GetPayResultVouchResponse ¶
func (x *CelerMsg) GetPayResultVouchResponse() *entity.VouchedCondPayResult
func (*CelerMsg) GetPaymentSettleProof ¶
func (x *CelerMsg) GetPaymentSettleProof() *PaymentSettleProof
func (*CelerMsg) GetPaymentSettleRequest ¶
func (x *CelerMsg) GetPaymentSettleRequest() *PaymentSettleRequest
func (*CelerMsg) GetPaymentSettleResponse ¶
func (x *CelerMsg) GetPaymentSettleResponse() *PaymentSettleResponse
func (*CelerMsg) GetRevealSecret ¶
func (x *CelerMsg) GetRevealSecret() *RevealSecret
func (*CelerMsg) GetRevealSecretAck ¶
func (x *CelerMsg) GetRevealSecretAck() *RevealSecretAck
func (*CelerMsg) GetRoutingRequest ¶
func (x *CelerMsg) GetRoutingRequest() *RoutingRequest
func (*CelerMsg) GetWithdrawRequest ¶
func (x *CelerMsg) GetWithdrawRequest() *CooperativeWithdrawRequest
func (*CelerMsg) GetWithdrawResponse ¶
func (x *CelerMsg) GetWithdrawResponse() *CooperativeWithdrawResponse
func (*CelerMsg) ProtoMessage ¶
func (*CelerMsg) ProtoMessage()
func (*CelerMsg) ProtoReflect ¶ added in v1.1.0
func (x *CelerMsg) ProtoReflect() protoreflect.Message
type CelerMsg_AuthAck ¶
type CelerMsg_AuthAck struct {
// response to auth_req
AuthAck *AuthAck `protobuf:"bytes,8,opt,name=auth_ack,json=authAck,proto3,oneof"`
}
type CelerMsg_AuthReq ¶
type CelerMsg_AuthReq struct {
// ====== hop-by-hop =====
// first msg on a new stream to tell peer my addr and prove I do own it
// optionally require peer to prove as well
AuthReq *AuthReq `protobuf:"bytes,7,opt,name=auth_req,json=authReq,proto3,oneof"`
}
type CelerMsg_CondPayReceipt ¶
type CelerMsg_CondPayReceipt struct {
// ====== end-to-end =====
// sent by pay dest to notify pay src
CondPayReceipt *CondPayReceipt `protobuf:"bytes,31,opt,name=cond_pay_receipt,json=condPayReceipt,proto3,oneof"`
}
type CelerMsg_CondPayRequest ¶
type CelerMsg_CondPayRequest struct {
// send a new condpay
CondPayRequest *CondPayRequest `protobuf:"bytes,9,opt,name=cond_pay_request,json=condPayRequest,proto3,oneof"`
}
type CelerMsg_CondPayResponse ¶
type CelerMsg_CondPayResponse struct {
// condpay response
CondPayResponse *CondPayResponse `protobuf:"bytes,10,opt,name=cond_pay_response,json=condPayResponse,proto3,oneof"`
}
type CelerMsg_Error ¶
type CelerMsg_Error struct {
// error with enum code and string reason
Error *Error `protobuf:"bytes,6,opt,name=error,proto3,oneof"`
}
type CelerMsg_PayResultVouchRequest ¶
type CelerMsg_PayResultVouchRequest struct {
// sent by pay dest to vouch pay result, only needed for payment with numeric conditions
PayResultVouchRequest *entity.VouchedCondPayResult `protobuf:"bytes,34,opt,name=pay_result_vouch_request,json=payResultVouchRequest,proto3,oneof"`
}
type CelerMsg_PayResultVouchResponse ¶
type CelerMsg_PayResultVouchResponse struct {
// sent by pay src with cosigned vouched pay result, only needed for payment with numeric conditions
PayResultVouchResponse *entity.VouchedCondPayResult `protobuf:"bytes,35,opt,name=pay_result_vouch_response,json=payResultVouchResponse,proto3,oneof"`
}
type CelerMsg_PaymentSettleProof ¶
type CelerMsg_PaymentSettleProof struct {
// request peer to update simplex and send back PaymentSettleRequest
PaymentSettleProof *PaymentSettleProof `protobuf:"bytes,11,opt,name=payment_settle_proof,json=paymentSettleProof,proto3,oneof"`
}
type CelerMsg_PaymentSettleRequest ¶
type CelerMsg_PaymentSettleRequest struct {
// send a new simplex with some pays settled
PaymentSettleRequest *PaymentSettleRequest `protobuf:"bytes,12,opt,name=payment_settle_request,json=paymentSettleRequest,proto3,oneof"`
}
type CelerMsg_PaymentSettleResponse ¶
type CelerMsg_PaymentSettleResponse struct {
// pay settle response
PaymentSettleResponse *PaymentSettleResponse `protobuf:"bytes,13,opt,name=payment_settle_response,json=paymentSettleResponse,proto3,oneof"`
}
type CelerMsg_RevealSecret ¶
type CelerMsg_RevealSecret struct {
// sent by pay src to pay dest to reveal hash lock preimage
RevealSecret *RevealSecret `protobuf:"bytes,32,opt,name=reveal_secret,json=revealSecret,proto3,oneof"`
}
type CelerMsg_RevealSecretAck ¶
type CelerMsg_RevealSecretAck struct {
// sent by pay dest to pay src, indicate pay dest has received preimage
RevealSecretAck *RevealSecretAck `protobuf:"bytes,33,opt,name=reveal_secret_ack,json=revealSecretAck,proto3,oneof"`
}
type CelerMsg_RoutingRequest ¶
type CelerMsg_RoutingRequest struct {
// send routing information (broadcast through OSP network)
RoutingRequest *RoutingRequest `protobuf:"bytes,16,opt,name=routing_request,json=routingRequest,proto3,oneof"` // skip 17-30 for future msgs
}
type CelerMsg_WithdrawRequest ¶
type CelerMsg_WithdrawRequest struct {
// request to move balance from offchain to onchain
WithdrawRequest *CooperativeWithdrawRequest `protobuf:"bytes,14,opt,name=withdraw_request,json=withdrawRequest,proto3,oneof"`
}
type CelerMsg_WithdrawResponse ¶
type CelerMsg_WithdrawResponse struct {
// withdraw response
WithdrawResponse *CooperativeWithdrawResponse `protobuf:"bytes,15,opt,name=withdraw_response,json=withdrawResponse,proto3,oneof"`
}
type ChannelInAuth ¶
type ChannelInAuth struct {
Cid []byte `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
// Channel state defined in agentPay channel-fsm.go.
ChannelState int64 `protobuf:"varint,2,opt,name=channel_state,json=channelState,proto3" json:"channel_state,omitempty"`
// open channel response for case of TCB.
OpenChannelResponse *OpenChannelResponse `protobuf:"bytes,3,opt,name=open_channel_response,json=openChannelResponse,proto3" json:"open_channel_response,omitempty"`
// cosigned simplex belong to auth ack node
AuthackSimplex *SignedSimplexState `protobuf:"bytes,4,opt,name=authack_simplex,json=authackSimplex,proto3" json:"authack_simplex,omitempty"`
// pending pays in authack_simplex
AuthackPays []*PayInAuthAck `protobuf:"bytes,5,rep,name=authack_pays,json=authackPays,proto3" json:"authack_pays,omitempty"`
// cosigned simplex belong to auth requester
AuthreqSimplex *SignedSimplexState `protobuf:"bytes,6,opt,name=authreq_simplex,json=authreqSimplex,proto3" json:"authreq_simplex,omitempty"`
// pending pays in authreq_simplex
AuthreqPays []*PayInAuthAck `protobuf:"bytes,7,rep,name=authreq_pays,json=authreqPays,proto3" json:"authreq_pays,omitempty"`
// ledger address that the channel is operating on.
LedgerAddr []byte `protobuf:"bytes,8,opt,name=ledger_addr,json=ledgerAddr,proto3" json:"ledger_addr,omitempty"`
// contains filtered or unexported fields
}
In AuthAck if need to sync channels Next tag: 9
func (*ChannelInAuth) Descriptor
deprecated
func (*ChannelInAuth) Descriptor() ([]byte, []int)
Deprecated: Use ChannelInAuth.ProtoReflect.Descriptor instead.
func (*ChannelInAuth) GetAuthackPays ¶
func (x *ChannelInAuth) GetAuthackPays() []*PayInAuthAck
func (*ChannelInAuth) GetAuthackSimplex ¶
func (x *ChannelInAuth) GetAuthackSimplex() *SignedSimplexState
func (*ChannelInAuth) GetAuthreqPays ¶
func (x *ChannelInAuth) GetAuthreqPays() []*PayInAuthAck
func (*ChannelInAuth) GetAuthreqSimplex ¶
func (x *ChannelInAuth) GetAuthreqSimplex() *SignedSimplexState
func (*ChannelInAuth) GetChannelState ¶
func (x *ChannelInAuth) GetChannelState() int64
func (*ChannelInAuth) GetCid ¶
func (x *ChannelInAuth) GetCid() []byte
func (*ChannelInAuth) GetLedgerAddr ¶
func (x *ChannelInAuth) GetLedgerAddr() []byte
func (*ChannelInAuth) GetOpenChannelResponse ¶
func (x *ChannelInAuth) GetOpenChannelResponse() *OpenChannelResponse
func (*ChannelInAuth) ProtoMessage ¶
func (*ChannelInAuth) ProtoMessage()
func (*ChannelInAuth) ProtoReflect ¶ added in v1.1.0
func (x *ChannelInAuth) ProtoReflect() protoreflect.Message
func (*ChannelInAuth) Reset ¶
func (x *ChannelInAuth) Reset()
func (*ChannelInAuth) String ¶
func (x *ChannelInAuth) String() string
type ChannelOpRequest ¶
type ChannelOpRequest struct {
Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` // hex string of channel id, accept both with and w/o 0x prefix
Wei string `protobuf:"bytes,2,opt,name=wei,proto3" json:"wei,omitempty"` // decimal string of withdraw amount in wei, if not specified, will withdraw all free balance
// contains filtered or unexported fields
}
cooperative withdraw/settle channel request
func (*ChannelOpRequest) Descriptor
deprecated
func (*ChannelOpRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChannelOpRequest.ProtoReflect.Descriptor instead.
func (*ChannelOpRequest) GetCid ¶
func (x *ChannelOpRequest) GetCid() string
func (*ChannelOpRequest) GetWei ¶
func (x *ChannelOpRequest) GetWei() string
func (*ChannelOpRequest) ProtoMessage ¶
func (*ChannelOpRequest) ProtoMessage()
func (*ChannelOpRequest) ProtoReflect ¶ added in v1.1.0
func (x *ChannelOpRequest) ProtoReflect() protoreflect.Message
func (*ChannelOpRequest) Reset ¶
func (x *ChannelOpRequest) Reset()
func (*ChannelOpRequest) String ¶
func (x *ChannelOpRequest) String() string
type ChannelOpResponse ¶
type ChannelOpResponse struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // 0 means success
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
func (*ChannelOpResponse) Descriptor
deprecated
func (*ChannelOpResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChannelOpResponse.ProtoReflect.Descriptor instead.
func (*ChannelOpResponse) GetError ¶
func (x *ChannelOpResponse) GetError() string
func (*ChannelOpResponse) GetStatus ¶
func (x *ChannelOpResponse) GetStatus() int32
func (*ChannelOpResponse) ProtoMessage ¶
func (*ChannelOpResponse) ProtoMessage()
func (*ChannelOpResponse) ProtoReflect ¶ added in v1.1.0
func (x *ChannelOpResponse) ProtoReflect() protoreflect.Message
func (*ChannelOpResponse) Reset ¶
func (x *ChannelOpResponse) Reset()
func (*ChannelOpResponse) String ¶
func (x *ChannelOpResponse) String() string
type ChannelRoutingInfo ¶
type ChannelRoutingInfo struct {
// channel identifier
Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"`
// channel liquidity amount
Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
// contains filtered or unexported fields
}
Next tag: 3
func (*ChannelRoutingInfo) Descriptor
deprecated
func (*ChannelRoutingInfo) Descriptor() ([]byte, []int)
Deprecated: Use ChannelRoutingInfo.ProtoReflect.Descriptor instead.
func (*ChannelRoutingInfo) GetBalance ¶
func (x *ChannelRoutingInfo) GetBalance() string
func (*ChannelRoutingInfo) GetCid ¶
func (x *ChannelRoutingInfo) GetCid() string
func (*ChannelRoutingInfo) ProtoMessage ¶
func (*ChannelRoutingInfo) ProtoMessage()
func (*ChannelRoutingInfo) ProtoReflect ¶ added in v1.1.0
func (x *ChannelRoutingInfo) ProtoReflect() protoreflect.Message
func (*ChannelRoutingInfo) Reset ¶
func (x *ChannelRoutingInfo) Reset()
func (*ChannelRoutingInfo) String ¶
func (x *ChannelRoutingInfo) String() string
type ChannelSummary ¶
type ChannelSummary struct {
ChannelId []byte `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
MySeqNum uint64 `protobuf:"varint,2,opt,name=my_seq_num,json=mySeqNum,proto3" json:"my_seq_num,omitempty"`
PeerSeqNum uint64 `protobuf:"varint,3,opt,name=peer_seq_num,json=peerSeqNum,proto3" json:"peer_seq_num,omitempty"`
LedgerAddr []byte `protobuf:"bytes,4,opt,name=ledger_addr,json=ledgerAddr,proto3" json:"ledger_addr,omitempty"`
// contains filtered or unexported fields
}
For Auth handshake and auto recovery note with only seq num we lost the ability to sync if client side has higher value. but it's ok because after authreq/ack, osp msg queue will re-send un-acked msgs Next tag: 5
func (*ChannelSummary) Descriptor
deprecated
func (*ChannelSummary) Descriptor() ([]byte, []int)
Deprecated: Use ChannelSummary.ProtoReflect.Descriptor instead.
func (*ChannelSummary) GetChannelId ¶
func (x *ChannelSummary) GetChannelId() []byte
func (*ChannelSummary) GetLedgerAddr ¶
func (x *ChannelSummary) GetLedgerAddr() []byte
func (*ChannelSummary) GetMySeqNum ¶
func (x *ChannelSummary) GetMySeqNum() uint64
func (*ChannelSummary) GetPeerSeqNum ¶
func (x *ChannelSummary) GetPeerSeqNum() uint64
func (*ChannelSummary) ProtoMessage ¶
func (*ChannelSummary) ProtoMessage()
func (*ChannelSummary) ProtoReflect ¶ added in v1.1.0
func (x *ChannelSummary) ProtoReflect() protoreflect.Message
func (*ChannelSummary) Reset ¶
func (x *ChannelSummary) Reset()
func (*ChannelSummary) String ¶
func (x *ChannelSummary) String() string
type ClearExpiredPaysRequest ¶
type ClearExpiredPaysRequest struct {
TokenAddress []byte `protobuf:"bytes,1,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"`
// contains filtered or unexported fields
}
Admin request to clear expired pays. Next tag: 2
func (*ClearExpiredPaysRequest) Descriptor
deprecated
func (*ClearExpiredPaysRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClearExpiredPaysRequest.ProtoReflect.Descriptor instead.
func (*ClearExpiredPaysRequest) GetTokenAddress ¶
func (x *ClearExpiredPaysRequest) GetTokenAddress() []byte
func (*ClearExpiredPaysRequest) ProtoMessage ¶
func (*ClearExpiredPaysRequest) ProtoMessage()
func (*ClearExpiredPaysRequest) ProtoReflect ¶ added in v1.1.0
func (x *ClearExpiredPaysRequest) ProtoReflect() protoreflect.Message
func (*ClearExpiredPaysRequest) Reset ¶
func (x *ClearExpiredPaysRequest) Reset()
func (*ClearExpiredPaysRequest) String ¶
func (x *ClearExpiredPaysRequest) String() string
type CondPayReceipt ¶
type CondPayReceipt struct {
// refer to pay by its id is enough
PayId []byte `protobuf:"bytes,1,opt,name=pay_id,json=payId,proto3" json:"pay_id,omitempty"`
// either pay_dest signs payid or pay delegator signs pay id
PayDestSig []byte `protobuf:"bytes,2,opt,name=pay_dest_sig,json=payDestSig,proto3" json:"pay_dest_sig,omitempty"`
PayDelegatorSig []byte `protobuf:"bytes,3,opt,name=pay_delegator_sig,json=payDelegatorSig,proto3" json:"pay_delegator_sig,omitempty"`
DelegationProof *DelegationProof `protobuf:"bytes,4,opt,name=delegation_proof,json=delegationProof,proto3" json:"delegation_proof,omitempty"`
// used for cross net pay
OriginalPayId []byte `protobuf:"bytes,5,opt,name=original_pay_id,json=originalPayId,proto3" json:"original_pay_id,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 5
func (*CondPayReceipt) Descriptor
deprecated
func (*CondPayReceipt) Descriptor() ([]byte, []int)
Deprecated: Use CondPayReceipt.ProtoReflect.Descriptor instead.
func (*CondPayReceipt) GetDelegationProof ¶
func (x *CondPayReceipt) GetDelegationProof() *DelegationProof
func (*CondPayReceipt) GetOriginalPayId ¶
func (x *CondPayReceipt) GetOriginalPayId() []byte
func (*CondPayReceipt) GetPayDelegatorSig ¶
func (x *CondPayReceipt) GetPayDelegatorSig() []byte
func (*CondPayReceipt) GetPayDestSig ¶
func (x *CondPayReceipt) GetPayDestSig() []byte
func (*CondPayReceipt) GetPayId ¶
func (x *CondPayReceipt) GetPayId() []byte
func (*CondPayReceipt) ProtoMessage ¶
func (*CondPayReceipt) ProtoMessage()
func (*CondPayReceipt) ProtoReflect ¶ added in v1.1.0
func (x *CondPayReceipt) ProtoReflect() protoreflect.Message
func (*CondPayReceipt) Reset ¶
func (x *CondPayReceipt) Reset()
func (*CondPayReceipt) String ¶
func (x *CondPayReceipt) String() string
type CondPayRequest ¶
type CondPayRequest struct {
// use serialized entity.ConditionalPay to ensure byte-perfect consistency across all platforms
// and simplify payment info verification especially during on-chain settlement
CondPay []byte `protobuf:"bytes,1,opt,name=cond_pay,json=condPay,proto3" json:"cond_pay,omitempty"`
StateOnlyPeerFromSig *SignedSimplexState `` /* 127-byte string literal not displayed */
Note *anypb.Any `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
// Sequence num of the previous simplex state that this new state is based on.
// Useful for failure recover.
BaseSeq uint64 `protobuf:"varint,4,opt,name=base_seq,json=baseSeq,proto3" json:"base_seq,omitempty"`
// Optimization: payment between direct peers needs only one roundtrip.
// A direct payment is one where the source and destination of the payment
// are directly-connected peers (e.g. client sending a payment to its OSP)
// and the payment is unconditional.
DirectPay bool `protobuf:"varint,5,opt,name=direct_pay,json=directPay,proto3" json:"direct_pay,omitempty"`
// used for cross network payment
CrossNet *CrossNetPay `protobuf:"bytes,6,opt,name=cross_net,json=crossNet,proto3" json:"cross_net,omitempty"`
// contains filtered or unexported fields
}
CondPayRequest is the first request setting up a pay path.
func (*CondPayRequest) Descriptor
deprecated
func (*CondPayRequest) Descriptor() ([]byte, []int)
Deprecated: Use CondPayRequest.ProtoReflect.Descriptor instead.
func (*CondPayRequest) GetBaseSeq ¶
func (x *CondPayRequest) GetBaseSeq() uint64
func (*CondPayRequest) GetCondPay ¶
func (x *CondPayRequest) GetCondPay() []byte
func (*CondPayRequest) GetCrossNet ¶
func (x *CondPayRequest) GetCrossNet() *CrossNetPay
func (*CondPayRequest) GetDirectPay ¶
func (x *CondPayRequest) GetDirectPay() bool
func (*CondPayRequest) GetNote ¶
func (x *CondPayRequest) GetNote() *anypb.Any
func (*CondPayRequest) GetStateOnlyPeerFromSig ¶
func (x *CondPayRequest) GetStateOnlyPeerFromSig() *SignedSimplexState
func (*CondPayRequest) ProtoMessage ¶
func (*CondPayRequest) ProtoMessage()
func (*CondPayRequest) ProtoReflect ¶ added in v1.1.0
func (x *CondPayRequest) ProtoReflect() protoreflect.Message
func (*CondPayRequest) Reset ¶
func (x *CondPayRequest) Reset()
func (*CondPayRequest) String ¶
func (x *CondPayRequest) String() string
type CondPayResponse ¶
type CondPayResponse struct {
StateCosigned *SignedSimplexState `protobuf:"bytes,1,opt,name=state_cosigned,json=stateCosigned,proto3" json:"state_cosigned,omitempty"`
Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
CondPayResponse is returning the signature of the other side in the channel.
func (*CondPayResponse) Descriptor
deprecated
func (*CondPayResponse) Descriptor() ([]byte, []int)
Deprecated: Use CondPayResponse.ProtoReflect.Descriptor instead.
func (*CondPayResponse) GetError ¶
func (x *CondPayResponse) GetError() *Error
func (*CondPayResponse) GetStateCosigned ¶
func (x *CondPayResponse) GetStateCosigned() *SignedSimplexState
func (*CondPayResponse) ProtoMessage ¶
func (*CondPayResponse) ProtoMessage()
func (*CondPayResponse) ProtoReflect ¶ added in v1.1.0
func (x *CondPayResponse) ProtoReflect() protoreflect.Message
func (*CondPayResponse) Reset ¶
func (x *CondPayResponse) Reset()
func (*CondPayResponse) String ¶
func (x *CondPayResponse) String() string
type ConfirmOnChainResolvedPaysRequest ¶
type ConfirmOnChainResolvedPaysRequest struct {
TokenAddress []byte `protobuf:"bytes,1,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"`
// contains filtered or unexported fields
}
Admin request to confirm on-chain resolved pays. Next tag: 2
func (*ConfirmOnChainResolvedPaysRequest) Descriptor
deprecated
func (*ConfirmOnChainResolvedPaysRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfirmOnChainResolvedPaysRequest.ProtoReflect.Descriptor instead.
func (*ConfirmOnChainResolvedPaysRequest) GetTokenAddress ¶
func (x *ConfirmOnChainResolvedPaysRequest) GetTokenAddress() []byte
func (*ConfirmOnChainResolvedPaysRequest) ProtoMessage ¶
func (*ConfirmOnChainResolvedPaysRequest) ProtoMessage()
func (*ConfirmOnChainResolvedPaysRequest) ProtoReflect ¶ added in v1.1.0
func (x *ConfirmOnChainResolvedPaysRequest) ProtoReflect() protoreflect.Message
func (*ConfirmOnChainResolvedPaysRequest) Reset ¶
func (x *ConfirmOnChainResolvedPaysRequest) Reset()
func (*ConfirmOnChainResolvedPaysRequest) String ¶
func (x *ConfirmOnChainResolvedPaysRequest) String() string
type ConnectionManager ¶
type ConnectionManager struct {
// contains filtered or unexported fields
}
func NewConnectionManager ¶
func NewConnectionManager(regClient RegisterClientCallbackFunc) *ConnectionManager
func (*ConnectionManager) AddCelerStream ¶
func (m *ConnectionManager) AddCelerStream(peerAddr ctype.Addr, stream CelerStream, msgProcessor chan *CelerMsg) context.Context
func (*ConnectionManager) AddConnection ¶
func (m *ConnectionManager) AddConnection(peerAddr ctype.Addr, cc *grpc.ClientConn)
func (*ConnectionManager) AddErrorCallback ¶
func (m *ConnectionManager) AddErrorCallback(peerAddr ctype.Addr, cb ErrCallbackFunc)
func (*ConnectionManager) CleanupStreams ¶
func (m *ConnectionManager) CleanupStreams(peerAddr ctype.Addr)
CleanupStreams terminate and cleanup the existing (old) hop & flow stream goroutines to allow for new streams & goroutines to be registered for the same address. It helps call from external to aquire lock.
func (*ConnectionManager) CloseConnection ¶
func (m *ConnectionManager) CloseConnection(peerAddr ctype.Addr)
func (*ConnectionManager) CloseNoRetry ¶
func (m *ConnectionManager) CloseNoRetry(onchainAddr ctype.Addr)
CloseNoRetry remove errCallbacks so no more retry, then close the underlying grpc conn expect to be only called in cNode.Close
func (*ConnectionManager) GetCelerStream ¶
func (m *ConnectionManager) GetCelerStream(peerAddr ctype.Addr) *SafeSendCelerStream
func (*ConnectionManager) GetClient ¶
func (m *ConnectionManager) GetClient(peerAddr ctype.Addr) (RpcClient, error)
func (*ConnectionManager) GetClientByAddr ¶
func (m *ConnectionManager) GetClientByAddr(peerAddr ctype.Addr) (RpcClient, error)
func (*ConnectionManager) GetNumCelerStreams ¶
func (m *ConnectionManager) GetNumCelerStreams() int
func (*ConnectionManager) SetMsgQueueCallback ¶
func (m *ConnectionManager) SetMsgQueueCallback(enable, disable MsgQueueCallbackFunc)
type CooperativeWithdrawRequest ¶
type CooperativeWithdrawRequest struct {
WithdrawInfo *entity.CooperativeWithdrawInfo `protobuf:"bytes,1,opt,name=withdraw_info,json=withdrawInfo,proto3" json:"withdraw_info,omitempty"`
RequesterSig []byte `protobuf:"bytes,2,opt,name=requester_sig,json=requesterSig,proto3" json:"requester_sig,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 3
func (*CooperativeWithdrawRequest) Descriptor
deprecated
func (*CooperativeWithdrawRequest) Descriptor() ([]byte, []int)
Deprecated: Use CooperativeWithdrawRequest.ProtoReflect.Descriptor instead.
func (*CooperativeWithdrawRequest) GetRequesterSig ¶
func (x *CooperativeWithdrawRequest) GetRequesterSig() []byte
func (*CooperativeWithdrawRequest) GetWithdrawInfo ¶
func (x *CooperativeWithdrawRequest) GetWithdrawInfo() *entity.CooperativeWithdrawInfo
func (*CooperativeWithdrawRequest) ProtoMessage ¶
func (*CooperativeWithdrawRequest) ProtoMessage()
func (*CooperativeWithdrawRequest) ProtoReflect ¶ added in v1.1.0
func (x *CooperativeWithdrawRequest) ProtoReflect() protoreflect.Message
func (*CooperativeWithdrawRequest) Reset ¶
func (x *CooperativeWithdrawRequest) Reset()
func (*CooperativeWithdrawRequest) String ¶
func (x *CooperativeWithdrawRequest) String() string
type CooperativeWithdrawResponse ¶
type CooperativeWithdrawResponse struct {
WithdrawInfo *entity.CooperativeWithdrawInfo `protobuf:"bytes,1,opt,name=withdraw_info,json=withdrawInfo,proto3" json:"withdraw_info,omitempty"`
RequesterSig []byte `protobuf:"bytes,2,opt,name=requester_sig,json=requesterSig,proto3" json:"requester_sig,omitempty"`
ApproverSig []byte `protobuf:"bytes,3,opt,name=approver_sig,json=approverSig,proto3" json:"approver_sig,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 4
func (*CooperativeWithdrawResponse) Descriptor
deprecated
func (*CooperativeWithdrawResponse) Descriptor() ([]byte, []int)
Deprecated: Use CooperativeWithdrawResponse.ProtoReflect.Descriptor instead.
func (*CooperativeWithdrawResponse) GetApproverSig ¶
func (x *CooperativeWithdrawResponse) GetApproverSig() []byte
func (*CooperativeWithdrawResponse) GetRequesterSig ¶
func (x *CooperativeWithdrawResponse) GetRequesterSig() []byte
func (*CooperativeWithdrawResponse) GetWithdrawInfo ¶
func (x *CooperativeWithdrawResponse) GetWithdrawInfo() *entity.CooperativeWithdrawInfo
func (*CooperativeWithdrawResponse) ProtoMessage ¶
func (*CooperativeWithdrawResponse) ProtoMessage()
func (*CooperativeWithdrawResponse) ProtoReflect ¶ added in v1.1.0
func (x *CooperativeWithdrawResponse) ProtoReflect() protoreflect.Message
func (*CooperativeWithdrawResponse) Reset ¶
func (x *CooperativeWithdrawResponse) Reset()
func (*CooperativeWithdrawResponse) String ¶
func (x *CooperativeWithdrawResponse) String() string
type CrossNetPay ¶
type CrossNetPay struct {
// vars 1-3 are updated by pay src
SrcNetId uint64 `protobuf:"varint,1,opt,name=src_net_id,json=srcNetId,proto3" json:"src_net_id,omitempty"`
DstNetId uint64 `protobuf:"varint,2,opt,name=dst_net_id,json=dstNetId,proto3" json:"dst_net_id,omitempty"`
OriginalPay []byte `protobuf:"bytes,3,opt,name=original_pay,json=originalPay,proto3" json:"original_pay,omitempty"`
// vars 4-7 are updated by bridge OSPs
Crossing bool `protobuf:"varint,4,opt,name=crossing,proto3" json:"crossing,omitempty"`
BridgeAddr []byte `protobuf:"bytes,5,opt,name=bridge_addr,json=bridgeAddr,proto3" json:"bridge_addr,omitempty"`
BridgeNetId uint64 `protobuf:"varint,6,opt,name=bridge_net_id,json=bridgeNetId,proto3" json:"bridge_net_id,omitempty"`
Timeout uint64 `protobuf:"varint,7,opt,name=timeout,proto3" json:"timeout,omitempty"`
// contains filtered or unexported fields
}
func (*CrossNetPay) Descriptor
deprecated
func (*CrossNetPay) Descriptor() ([]byte, []int)
Deprecated: Use CrossNetPay.ProtoReflect.Descriptor instead.
func (*CrossNetPay) GetBridgeAddr ¶
func (x *CrossNetPay) GetBridgeAddr() []byte
func (*CrossNetPay) GetBridgeNetId ¶
func (x *CrossNetPay) GetBridgeNetId() uint64
func (*CrossNetPay) GetCrossing ¶
func (x *CrossNetPay) GetCrossing() bool
func (*CrossNetPay) GetDstNetId ¶
func (x *CrossNetPay) GetDstNetId() uint64
func (*CrossNetPay) GetOriginalPay ¶
func (x *CrossNetPay) GetOriginalPay() []byte
func (*CrossNetPay) GetSrcNetId ¶
func (x *CrossNetPay) GetSrcNetId() uint64
func (*CrossNetPay) GetTimeout ¶
func (x *CrossNetPay) GetTimeout() uint64
func (*CrossNetPay) ProtoMessage ¶
func (*CrossNetPay) ProtoMessage()
func (*CrossNetPay) ProtoReflect ¶ added in v1.1.0
func (x *CrossNetPay) ProtoReflect() protoreflect.Message
func (*CrossNetPay) Reset ¶
func (x *CrossNetPay) Reset()
func (*CrossNetPay) String ¶
func (x *CrossNetPay) String() string
type DelegationDescription ¶
type DelegationDescription struct {
// address of delegator
Delegator []byte `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
// address of delegatee
Delegatee []byte `protobuf:"bytes,2,opt,name=delegatee,proto3" json:"delegatee,omitempty"`
// Off-chain delegation expiry. Unix timestamp (seconds). Field name kept for wire-format back-compat.
ExpiresAfterBlock int64 `protobuf:"varint,3,opt,name=expires_after_block,json=expiresAfterBlock,proto3" json:"expires_after_block,omitempty"`
// token addresses to be delegated
TokenToDelegate [][]byte `protobuf:"bytes,4,rep,name=token_to_delegate,json=tokenToDelegate,proto3" json:"token_to_delegate,omitempty"`
// contains filtered or unexported fields
}
Next tag: 5
func (*DelegationDescription) Descriptor
deprecated
func (*DelegationDescription) Descriptor() ([]byte, []int)
Deprecated: Use DelegationDescription.ProtoReflect.Descriptor instead.
func (*DelegationDescription) GetDelegatee ¶
func (x *DelegationDescription) GetDelegatee() []byte
func (*DelegationDescription) GetDelegator ¶
func (x *DelegationDescription) GetDelegator() []byte
func (*DelegationDescription) GetExpiresAfterBlock ¶
func (x *DelegationDescription) GetExpiresAfterBlock() int64
func (*DelegationDescription) GetTokenToDelegate ¶
func (x *DelegationDescription) GetTokenToDelegate() [][]byte
func (*DelegationDescription) ProtoMessage ¶
func (*DelegationDescription) ProtoMessage()
func (*DelegationDescription) ProtoReflect ¶ added in v1.1.0
func (x *DelegationDescription) ProtoReflect() protoreflect.Message
func (*DelegationDescription) Reset ¶
func (x *DelegationDescription) Reset()
func (*DelegationDescription) String ¶
func (x *DelegationDescription) String() string
type DelegationProof ¶
type DelegationProof struct {
// Serialized DelegationDescription.
DelegationDescriptionBytes []byte `` /* 141-byte string literal not displayed */
// signature of delegation_description_bytes signed by signer.
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
// addresses of signer. Should be same to "delegator" in DelegationDescription.
Signer []byte `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
// contains filtered or unexported fields
}
Next tag: 4
func (*DelegationProof) Descriptor
deprecated
func (*DelegationProof) Descriptor() ([]byte, []int)
Deprecated: Use DelegationProof.ProtoReflect.Descriptor instead.
func (*DelegationProof) GetDelegationDescriptionBytes ¶
func (x *DelegationProof) GetDelegationDescriptionBytes() []byte
func (*DelegationProof) GetSignature ¶
func (x *DelegationProof) GetSignature() []byte
func (*DelegationProof) GetSigner ¶
func (x *DelegationProof) GetSigner() []byte
func (*DelegationProof) ProtoMessage ¶
func (*DelegationProof) ProtoMessage()
func (*DelegationProof) ProtoReflect ¶ added in v1.1.0
func (x *DelegationProof) ProtoReflect() protoreflect.Message
func (*DelegationProof) Reset ¶
func (x *DelegationProof) Reset()
func (*DelegationProof) String ¶
func (x *DelegationProof) String() string
type DelegationRequest ¶
type DelegationRequest struct {
Proof *DelegationProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
// contains filtered or unexported fields
}
Next tag: 2
func (*DelegationRequest) Descriptor
deprecated
func (*DelegationRequest) Descriptor() ([]byte, []int)
Deprecated: Use DelegationRequest.ProtoReflect.Descriptor instead.
func (*DelegationRequest) GetProof ¶
func (x *DelegationRequest) GetProof() *DelegationProof
func (*DelegationRequest) ProtoMessage ¶
func (*DelegationRequest) ProtoMessage()
func (*DelegationRequest) ProtoReflect ¶ added in v1.1.0
func (x *DelegationRequest) ProtoReflect() protoreflect.Message
func (*DelegationRequest) Reset ¶
func (x *DelegationRequest) Reset()
func (*DelegationRequest) String ¶
func (x *DelegationRequest) String() string
type DelegationResponse ¶
type DelegationResponse struct {
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
Next tag: 2
func (*DelegationResponse) Descriptor
deprecated
func (*DelegationResponse) Descriptor() ([]byte, []int)
Deprecated: Use DelegationResponse.ProtoReflect.Descriptor instead.
func (*DelegationResponse) GetError ¶
func (x *DelegationResponse) GetError() string
func (*DelegationResponse) ProtoMessage ¶
func (*DelegationResponse) ProtoMessage()
func (*DelegationResponse) ProtoReflect ¶ added in v1.1.0
func (x *DelegationResponse) ProtoReflect() protoreflect.Message
func (*DelegationResponse) Reset ¶
func (x *DelegationResponse) Reset()
func (*DelegationResponse) String ¶
func (x *DelegationResponse) String() string
type DepositRequest ¶
type DepositRequest struct {
// payment channel peer address
PeerAddr string `protobuf:"bytes,1,opt,name=peer_addr,json=peerAddr,proto3" json:"peer_addr,omitempty"`
// payment channel token address
TokenAddr string `protobuf:"bytes,2,opt,name=token_addr,json=tokenAddr,proto3" json:"token_addr,omitempty"`
// deposit to channel peer or self (default: false, to self)
ToPeer bool `protobuf:"varint,3,opt,name=to_peer,json=toPeer,proto3" json:"to_peer,omitempty"`
// deposit amount in wei
AmtWei string `protobuf:"bytes,4,opt,name=amt_wei,json=amtWei,proto3" json:"amt_wei,omitempty"`
// time (in seconds) allowed for OSP to wait and batch requests before submitting the on-chain transaction
MaxWaitS uint64 `protobuf:"varint,5,opt,name=max_wait_s,json=maxWaitS,proto3" json:"max_wait_s,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 6
func (*DepositRequest) Descriptor
deprecated
func (*DepositRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepositRequest.ProtoReflect.Descriptor instead.
func (*DepositRequest) GetAmtWei ¶
func (x *DepositRequest) GetAmtWei() string
func (*DepositRequest) GetMaxWaitS ¶
func (x *DepositRequest) GetMaxWaitS() uint64
func (*DepositRequest) GetPeerAddr ¶
func (x *DepositRequest) GetPeerAddr() string
func (*DepositRequest) GetToPeer ¶
func (x *DepositRequest) GetToPeer() bool
func (*DepositRequest) GetTokenAddr ¶
func (x *DepositRequest) GetTokenAddr() string
func (*DepositRequest) ProtoMessage ¶
func (*DepositRequest) ProtoMessage()
func (*DepositRequest) ProtoReflect ¶ added in v1.1.0
func (x *DepositRequest) ProtoReflect() protoreflect.Message
func (*DepositRequest) Reset ¶
func (x *DepositRequest) Reset()
func (*DepositRequest) String ¶
func (x *DepositRequest) String() string
type DepositResponse ¶
type DepositResponse struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
DepositId string `protobuf:"bytes,3,opt,name=deposit_id,json=depositId,proto3" json:"deposit_id,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 4
func (*DepositResponse) Descriptor
deprecated
func (*DepositResponse) Descriptor() ([]byte, []int)
Deprecated: Use DepositResponse.ProtoReflect.Descriptor instead.
func (*DepositResponse) GetDepositId ¶
func (x *DepositResponse) GetDepositId() string
func (*DepositResponse) GetError ¶
func (x *DepositResponse) GetError() string
func (*DepositResponse) GetStatus ¶
func (x *DepositResponse) GetStatus() int32
func (*DepositResponse) ProtoMessage ¶
func (*DepositResponse) ProtoMessage()
func (*DepositResponse) ProtoReflect ¶ added in v1.1.0
func (x *DepositResponse) ProtoReflect() protoreflect.Message
func (*DepositResponse) Reset ¶
func (x *DepositResponse) Reset()
func (*DepositResponse) String ¶
func (x *DepositResponse) String() string
type DepositState ¶
type DepositState int32
const ( DepositState_Deposit_NOT_FOUND DepositState = 0 DepositState_Deposit_QUEUED DepositState = 1 DepositState_Deposit_SUBMITTED DepositState = 2 DepositState_Deposit_SUCCEEDED DepositState = 3 DepositState_Deposit_FAILED DepositState = 4 )
func (DepositState) Descriptor ¶ added in v1.1.0
func (DepositState) Descriptor() protoreflect.EnumDescriptor
func (DepositState) Enum ¶ added in v1.1.0
func (x DepositState) Enum() *DepositState
func (DepositState) EnumDescriptor
deprecated
func (DepositState) EnumDescriptor() ([]byte, []int)
Deprecated: Use DepositState.Descriptor instead.
func (DepositState) Number ¶ added in v1.1.0
func (x DepositState) Number() protoreflect.EnumNumber
func (DepositState) String ¶
func (x DepositState) String() string
func (DepositState) Type ¶ added in v1.1.0
func (DepositState) Type() protoreflect.EnumType
type ErrCallbackFunc ¶
type ErrCode ¶
type ErrCode int32
Next Tag: 11
const ( // reserve 0 so not setting this is not a valid error code ErrCode_OK ErrCode = 0 // not yet authreq/authack ErrCode_UNAUTHORIZED ErrCode = 1 // sig in authreq can't recover claimed my_addr ErrCode_INVALID_SIG ErrCode = 2 // timestamp in req out of allowed range ErrCode_INCORRECT_CLOCK ErrCode = 3 // I'm not your expected peer ErrCode_WRONG_PEER ErrCode = 4 // invalid simplex state sequence number ErrCode_INVALID_SEQ_NUM ErrCode = 5 // forwared the pay before and receiving again, probably a loop. ErrCode_PAY_ROUTE_LOOP ErrCode = 6 // can't find a route to dst. ErrCode_NO_ROUTE_TO_DST ErrCode = 7 // not enough balance ErrCode_NOT_ENOUGH_BALANCE ErrCode = 8 // peer not online ErrCode_PEER_NOT_ONLINE ErrCode = 9 // no specified error code ErrCode_MISC_ERROR ErrCode = 10 )
func (ErrCode) Descriptor ¶ added in v1.1.0
func (ErrCode) Descriptor() protoreflect.EnumDescriptor
func (ErrCode) EnumDescriptor
deprecated
func (ErrCode) Number ¶ added in v1.1.0
func (x ErrCode) Number() protoreflect.EnumNumber
func (ErrCode) Type ¶ added in v1.1.0
func (ErrCode) Type() protoreflect.EnumType
type Error ¶
type Error struct {
Code ErrCode `protobuf:"varint,1,opt,name=code,proto3,enum=rpc.ErrCode" json:"code,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
// sequence number (if exists) of the errored message
Seq uint64 `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"`
// contains filtered or unexported fields
}
func (*Error) Descriptor
deprecated
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶ added in v1.1.0
func (x *Error) ProtoReflect() protoreflect.Message
type FwdReply ¶
type FwdReply struct {
Accepted bool `protobuf:"varint,1,opt,name=accepted,proto3" json:"accepted,omitempty"`
Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
// contains filtered or unexported fields
}
Next tag: 3
func (*FwdReply) Descriptor
deprecated
func (*FwdReply) GetAccepted ¶
func (*FwdReply) ProtoMessage ¶
func (*FwdReply) ProtoMessage()
func (*FwdReply) ProtoReflect ¶ added in v1.1.0
func (x *FwdReply) ProtoReflect() protoreflect.Message
type FwdReq ¶
type FwdReq struct {
Dest string `protobuf:"bytes,1,opt,name=dest,proto3" json:"dest,omitempty"`
Message *CelerMsg `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
Next tag: 6
func (*FwdReq) Descriptor
deprecated
func (*FwdReq) GetMessage ¶
func (*FwdReq) ProtoMessage ¶
func (*FwdReq) ProtoMessage()
func (*FwdReq) ProtoReflect ¶ added in v1.1.0
func (x *FwdReq) ProtoReflect() protoreflect.Message
type GetPayHistoryRequest ¶
type GetPayHistoryRequest struct {
// request pay history of peer.
Peer string `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
// request pay history before certain timestamp.
BeforeTs int64 `protobuf:"varint,2,opt,name=before_ts,json=beforeTs,proto3" json:"before_ts,omitempty"`
// max result in the response.
ItemsPerPage int32 `protobuf:"varint,3,opt,name=items_per_page,json=itemsPerPage,proto3" json:"items_per_page,omitempty"`
// signature to verify peer.
TsSig []byte `protobuf:"bytes,4,opt,name=ts_sig,json=tsSig,proto3" json:"ts_sig,omitempty"`
Ts uint64 `protobuf:"varint,5,opt,name=ts,proto3" json:"ts,omitempty"`
// if result has pays that have payIDs equal to before_ts, only return those that have higher pay ids than smallest_pay_id.
SmallestPayId string `protobuf:"bytes,6,opt,name=smallest_pay_id,json=smallestPayId,proto3" json:"smallest_pay_id,omitempty"`
// contains filtered or unexported fields
}
Next tag: 7
func (*GetPayHistoryRequest) Descriptor
deprecated
func (*GetPayHistoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPayHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetPayHistoryRequest) GetBeforeTs ¶
func (x *GetPayHistoryRequest) GetBeforeTs() int64
func (*GetPayHistoryRequest) GetItemsPerPage ¶
func (x *GetPayHistoryRequest) GetItemsPerPage() int32
func (*GetPayHistoryRequest) GetPeer ¶
func (x *GetPayHistoryRequest) GetPeer() string
func (*GetPayHistoryRequest) GetSmallestPayId ¶
func (x *GetPayHistoryRequest) GetSmallestPayId() string
func (*GetPayHistoryRequest) GetTs ¶
func (x *GetPayHistoryRequest) GetTs() uint64
func (*GetPayHistoryRequest) GetTsSig ¶
func (x *GetPayHistoryRequest) GetTsSig() []byte
func (*GetPayHistoryRequest) ProtoMessage ¶
func (*GetPayHistoryRequest) ProtoMessage()
func (*GetPayHistoryRequest) ProtoReflect ¶ added in v1.1.0
func (x *GetPayHistoryRequest) ProtoReflect() protoreflect.Message
func (*GetPayHistoryRequest) Reset ¶
func (x *GetPayHistoryRequest) Reset()
func (*GetPayHistoryRequest) String ¶
func (x *GetPayHistoryRequest) String() string
type GetPayHistoryResponse ¶
type GetPayHistoryResponse struct {
Pays []*OneHistoricalPay `protobuf:"bytes,1,rep,name=pays,proto3" json:"pays,omitempty"`
// contains filtered or unexported fields
}
Next tag: 2
func (*GetPayHistoryResponse) Descriptor
deprecated
func (*GetPayHistoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPayHistoryResponse.ProtoReflect.Descriptor instead.
func (*GetPayHistoryResponse) GetPays ¶
func (x *GetPayHistoryResponse) GetPays() []*OneHistoricalPay
func (*GetPayHistoryResponse) ProtoMessage ¶
func (*GetPayHistoryResponse) ProtoMessage()
func (*GetPayHistoryResponse) ProtoReflect ¶ added in v1.1.0
func (x *GetPayHistoryResponse) ProtoReflect() protoreflect.Message
func (*GetPayHistoryResponse) Reset ¶
func (x *GetPayHistoryResponse) Reset()
func (*GetPayHistoryResponse) String ¶
func (x *GetPayHistoryResponse) String() string
type JoinCelerStatus ¶
type JoinCelerStatus int32
JoinCelerStatus describes the status of a endpoint in Celer network Next Tag: 3
const ( // Endpoint has not joined in Celer Network yet, // does not have any celer channel with any Osp in Celer Network JoinCelerStatus_NOT_JOIN JoinCelerStatus = 0 // Endpoint has a celer channel with the Osp responding this msg JoinCelerStatus_LOCAL JoinCelerStatus = 1 // Endpoint does not have a celer channel with the Osp responding this msg, // but has a celer channel with another remote Osp JoinCelerStatus_REMOTE JoinCelerStatus = 2 )
func (JoinCelerStatus) Descriptor ¶ added in v1.1.0
func (JoinCelerStatus) Descriptor() protoreflect.EnumDescriptor
func (JoinCelerStatus) Enum ¶ added in v1.1.0
func (x JoinCelerStatus) Enum() *JoinCelerStatus
func (JoinCelerStatus) EnumDescriptor
deprecated
func (JoinCelerStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use JoinCelerStatus.Descriptor instead.
func (JoinCelerStatus) Number ¶ added in v1.1.0
func (x JoinCelerStatus) Number() protoreflect.EnumNumber
func (JoinCelerStatus) String ¶
func (x JoinCelerStatus) String() string
func (JoinCelerStatus) Type ¶ added in v1.1.0
func (JoinCelerStatus) Type() protoreflect.EnumType
type MID ¶
type MID struct {
// tag is string to identify requester to avoid seq conflict
// for a typical req/resp flow, both req and resp messages have the same tag
// that identifies requester, and same seq so requester side can correlate
// resp with req
Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
// sender must increment seq for new messages
Seq uint64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"`
// contains filtered or unexported fields
}
MID is the message identifier, used as map key for unary over stream NOTE: all field types must be golang comparable so map[MID] can work Auth requester should set its mid to start_mid in AuthAck
func (*MID) Descriptor
deprecated
func (*MID) ProtoMessage ¶
func (*MID) ProtoMessage()
func (*MID) ProtoReflect ¶ added in v1.1.0
func (x *MID) ProtoReflect() protoreflect.Message
type MigrateChannelRequest ¶
type MigrateChannelRequest struct {
// Serialized entity.ChannelMigrationInfo
ChannelMigrationInfo []byte `protobuf:"bytes,1,opt,name=channel_migration_info,json=channelMigrationInfo,proto3" json:"channel_migration_info,omitempty"`
// Signature of channel_migration_info signed by request sender
RequesterSig []byte `protobuf:"bytes,2,opt,name=requester_sig,json=requesterSig,proto3" json:"requester_sig,omitempty"`
// contains filtered or unexported fields
}
Next tag: 3
func (*MigrateChannelRequest) Descriptor
deprecated
func (*MigrateChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use MigrateChannelRequest.ProtoReflect.Descriptor instead.
func (*MigrateChannelRequest) GetChannelMigrationInfo ¶
func (x *MigrateChannelRequest) GetChannelMigrationInfo() []byte
func (*MigrateChannelRequest) GetRequesterSig ¶
func (x *MigrateChannelRequest) GetRequesterSig() []byte
func (*MigrateChannelRequest) ProtoMessage ¶
func (*MigrateChannelRequest) ProtoMessage()
func (*MigrateChannelRequest) ProtoReflect ¶ added in v1.1.0
func (x *MigrateChannelRequest) ProtoReflect() protoreflect.Message
func (*MigrateChannelRequest) Reset ¶
func (x *MigrateChannelRequest) Reset()
func (*MigrateChannelRequest) String ¶
func (x *MigrateChannelRequest) String() string
type MigrateChannelResponse ¶
type MigrateChannelResponse struct {
// Signature of channel_migration_info signed by request approver
ApproverSig []byte `protobuf:"bytes,1,opt,name=approver_sig,json=approverSig,proto3" json:"approver_sig,omitempty"`
// contains filtered or unexported fields
}
Next tag: 2
func (*MigrateChannelResponse) Descriptor
deprecated
func (*MigrateChannelResponse) Descriptor() ([]byte, []int)
Deprecated: Use MigrateChannelResponse.ProtoReflect.Descriptor instead.
func (*MigrateChannelResponse) GetApproverSig ¶
func (x *MigrateChannelResponse) GetApproverSig() []byte
func (*MigrateChannelResponse) ProtoMessage ¶
func (*MigrateChannelResponse) ProtoMessage()
func (*MigrateChannelResponse) ProtoReflect ¶ added in v1.1.0
func (x *MigrateChannelResponse) ProtoReflect() protoreflect.Message
func (*MigrateChannelResponse) Reset ¶
func (x *MigrateChannelResponse) Reset()
func (*MigrateChannelResponse) String ¶
func (x *MigrateChannelResponse) String() string
type MsgQueueCallbackFunc ¶
type MultiServerClient ¶
type MultiServerClient interface {
FwdMsg(ctx context.Context, in *FwdReq, opts ...grpc.CallOption) (*FwdReply, error)
Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PingReply, error)
PickServer(ctx context.Context, in *PickReq, opts ...grpc.CallOption) (*PickReply, error)
BcastRoutingInfo(ctx context.Context, in *BcastRoutingRequest, opts ...grpc.CallOption) (*BcastRoutingReply, error)
}
MultiServerClient is the client API for MultiServer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMultiServerClient ¶
func NewMultiServerClient(cc grpc.ClientConnInterface) MultiServerClient
type MultiServerServer ¶
type MultiServerServer interface {
FwdMsg(context.Context, *FwdReq) (*FwdReply, error)
Ping(context.Context, *PingReq) (*PingReply, error)
PickServer(context.Context, *PickReq) (*PickReply, error)
BcastRoutingInfo(context.Context, *BcastRoutingRequest) (*BcastRoutingReply, error)
// contains filtered or unexported methods
}
MultiServerServer is the server API for MultiServer service. All implementations must embed UnimplementedMultiServerServer for forward compatibility
type OneHistoricalPay ¶
type OneHistoricalPay struct {
// pay destination
Dst string `protobuf:"bytes,1,opt,name=dst,proto3" json:"dst,omitempty"`
// token address used by the pay.
Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
// amount of the payment
Amt string `protobuf:"bytes,3,opt,name=amt,proto3" json:"amt,omitempty"`
// pay status
State int64 `protobuf:"varint,4,opt,name=state,proto3" json:"state,omitempty"`
// pay id
PayId string `protobuf:"bytes,5,opt,name=pay_id,json=payId,proto3" json:"pay_id,omitempty"`
// pay creation timestamp
CreateTs int64 `protobuf:"varint,6,opt,name=create_ts,json=createTs,proto3" json:"create_ts,omitempty"`
// pay source
Src string `protobuf:"bytes,7,opt,name=src,proto3" json:"src,omitempty"`
// contains filtered or unexported fields
}
Next tag: 8
func (*OneHistoricalPay) Descriptor
deprecated
func (*OneHistoricalPay) Descriptor() ([]byte, []int)
Deprecated: Use OneHistoricalPay.ProtoReflect.Descriptor instead.
func (*OneHistoricalPay) GetAmt ¶
func (x *OneHistoricalPay) GetAmt() string
func (*OneHistoricalPay) GetCreateTs ¶
func (x *OneHistoricalPay) GetCreateTs() int64
func (*OneHistoricalPay) GetDst ¶
func (x *OneHistoricalPay) GetDst() string
func (*OneHistoricalPay) GetPayId ¶
func (x *OneHistoricalPay) GetPayId() string
func (*OneHistoricalPay) GetSrc ¶
func (x *OneHistoricalPay) GetSrc() string
func (*OneHistoricalPay) GetState ¶
func (x *OneHistoricalPay) GetState() int64
func (*OneHistoricalPay) GetToken ¶
func (x *OneHistoricalPay) GetToken() string
func (*OneHistoricalPay) ProtoMessage ¶
func (*OneHistoricalPay) ProtoMessage()
func (*OneHistoricalPay) ProtoReflect ¶ added in v1.1.0
func (x *OneHistoricalPay) ProtoReflect() protoreflect.Message
func (*OneHistoricalPay) Reset ¶
func (x *OneHistoricalPay) Reset()
func (*OneHistoricalPay) String ¶
func (x *OneHistoricalPay) String() string
type OpenChannelBy ¶
type OpenChannelBy int32
Next Tag: 3
const ( OpenChannelBy_UNDEFINED_OPEN_BY OpenChannelBy = 0 OpenChannelBy_OPEN_CHANNEL_PROPOSER OpenChannelBy = 1 OpenChannelBy_OPEN_CHANNEL_APPROVER OpenChannelBy = 2 )
func (OpenChannelBy) Descriptor ¶ added in v1.1.0
func (OpenChannelBy) Descriptor() protoreflect.EnumDescriptor
func (OpenChannelBy) Enum ¶ added in v1.1.0
func (x OpenChannelBy) Enum() *OpenChannelBy
func (OpenChannelBy) EnumDescriptor
deprecated
func (OpenChannelBy) EnumDescriptor() ([]byte, []int)
Deprecated: Use OpenChannelBy.Descriptor instead.
func (OpenChannelBy) Number ¶ added in v1.1.0
func (x OpenChannelBy) Number() protoreflect.EnumNumber
func (OpenChannelBy) String ¶
func (x OpenChannelBy) String() string
func (OpenChannelBy) Type ¶ added in v1.1.0
func (OpenChannelBy) Type() protoreflect.EnumType
type OpenChannelRequest ¶
type OpenChannelRequest struct {
// serialized entity.PaymentChannelInitializer
ChannelInitializer []byte `protobuf:"bytes,1,opt,name=channel_initializer,json=channelInitializer,proto3" json:"channel_initializer,omitempty"`
RequesterSig []byte `protobuf:"bytes,2,opt,name=requester_sig,json=requesterSig,proto3" json:"requester_sig,omitempty"`
OpenBy OpenChannelBy `protobuf:"varint,3,opt,name=open_by,json=openBy,proto3,enum=rpc.OpenChannelBy" json:"open_by,omitempty"`
// osp_to_osp set to true to indicate the channel is an OSP-OSP channel.
OspToOsp bool `protobuf:"varint,4,opt,name=osp_to_osp,json=ospToOsp,proto3" json:"osp_to_osp,omitempty"`
// contains filtered or unexported fields
}
OpenChannelRequest when one wants to open a channel with peer. Next Tag: 5
func (*OpenChannelRequest) Descriptor
deprecated
func (*OpenChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use OpenChannelRequest.ProtoReflect.Descriptor instead.
func (*OpenChannelRequest) GetChannelInitializer ¶
func (x *OpenChannelRequest) GetChannelInitializer() []byte
func (*OpenChannelRequest) GetOpenBy ¶
func (x *OpenChannelRequest) GetOpenBy() OpenChannelBy
func (*OpenChannelRequest) GetOspToOsp ¶
func (x *OpenChannelRequest) GetOspToOsp() bool
func (*OpenChannelRequest) GetRequesterSig ¶
func (x *OpenChannelRequest) GetRequesterSig() []byte
func (*OpenChannelRequest) ProtoMessage ¶
func (*OpenChannelRequest) ProtoMessage()
func (*OpenChannelRequest) ProtoReflect ¶ added in v1.1.0
func (x *OpenChannelRequest) ProtoReflect() protoreflect.Message
func (*OpenChannelRequest) Reset ¶
func (x *OpenChannelRequest) Reset()
func (*OpenChannelRequest) String ¶
func (x *OpenChannelRequest) String() string
type OpenChannelResponse ¶
type OpenChannelResponse struct {
// serialized entity.PaymentChannelInitializer
ChannelInitializer []byte `protobuf:"bytes,1,opt,name=channel_initializer,json=channelInitializer,proto3" json:"channel_initializer,omitempty"`
RequesterSig []byte `protobuf:"bytes,2,opt,name=requester_sig,json=requesterSig,proto3" json:"requester_sig,omitempty"`
ApproverSig []byte `protobuf:"bytes,3,opt,name=approver_sig,json=approverSig,proto3" json:"approver_sig,omitempty"`
Status OpenChannelStatus `protobuf:"varint,4,opt,name=status,proto3,enum=rpc.OpenChannelStatus" json:"status,omitempty"`
PaymentChannelId []byte `protobuf:"bytes,5,opt,name=payment_channel_id,json=paymentChannelId,proto3" json:"payment_channel_id,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 6
func (*OpenChannelResponse) Descriptor
deprecated
func (*OpenChannelResponse) Descriptor() ([]byte, []int)
Deprecated: Use OpenChannelResponse.ProtoReflect.Descriptor instead.
func (*OpenChannelResponse) GetApproverSig ¶
func (x *OpenChannelResponse) GetApproverSig() []byte
func (*OpenChannelResponse) GetChannelInitializer ¶
func (x *OpenChannelResponse) GetChannelInitializer() []byte
func (*OpenChannelResponse) GetPaymentChannelId ¶
func (x *OpenChannelResponse) GetPaymentChannelId() []byte
func (*OpenChannelResponse) GetRequesterSig ¶
func (x *OpenChannelResponse) GetRequesterSig() []byte
func (*OpenChannelResponse) GetStatus ¶
func (x *OpenChannelResponse) GetStatus() OpenChannelStatus
func (*OpenChannelResponse) ProtoMessage ¶
func (*OpenChannelResponse) ProtoMessage()
func (*OpenChannelResponse) ProtoReflect ¶ added in v1.1.0
func (x *OpenChannelResponse) ProtoReflect() protoreflect.Message
func (*OpenChannelResponse) Reset ¶
func (x *OpenChannelResponse) Reset()
func (*OpenChannelResponse) String ¶
func (x *OpenChannelResponse) String() string
type OpenChannelStatus ¶
type OpenChannelStatus int32
Next Tag: 4
const ( OpenChannelStatus_UNDEFINED_OPEN_CHANNEL_STATUS OpenChannelStatus = 0 // OpenChannel is approved by approver. // But no on-chain transaction has been made. OpenChannelStatus_OPEN_CHANNEL_APPROVED OpenChannelStatus = 1 // OpenChannel transaction is submitted on-chain by approver. OpenChannelStatus_OPEN_CHANNEL_TX_SUBMITTED OpenChannelStatus = 2 OpenChannelStatus_OPEN_CHANNEL_TCB_OPENED OpenChannelStatus = 3 )
func (OpenChannelStatus) Descriptor ¶ added in v1.1.0
func (OpenChannelStatus) Descriptor() protoreflect.EnumDescriptor
func (OpenChannelStatus) Enum ¶ added in v1.1.0
func (x OpenChannelStatus) Enum() *OpenChannelStatus
func (OpenChannelStatus) EnumDescriptor
deprecated
func (OpenChannelStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use OpenChannelStatus.Descriptor instead.
func (OpenChannelStatus) Number ¶ added in v1.1.0
func (x OpenChannelStatus) Number() protoreflect.EnumNumber
func (OpenChannelStatus) String ¶
func (x OpenChannelStatus) String() string
func (OpenChannelStatus) Type ¶ added in v1.1.0
func (OpenChannelStatus) Type() protoreflect.EnumType
type OspOpenChannelRequest ¶
type OspOpenChannelRequest struct {
// Peer to open channel with the osp.
PeerEthAddress []byte `protobuf:"bytes,1,opt,name=peer_eth_address,json=peerEthAddress,proto3" json:"peer_eth_address,omitempty"`
// ETH or ERC20
TokenType entity.TokenType `protobuf:"varint,2,opt,name=token_type,json=tokenType,proto3,enum=entity.TokenType" json:"token_type,omitempty"`
// where the token is defined.
TokenAddress []byte `protobuf:"bytes,3,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"`
// Deposit from myself in wei in decimal
SelfDepositAmtWei string `protobuf:"bytes,4,opt,name=self_deposit_amt_wei,json=selfDepositAmtWei,proto3" json:"self_deposit_amt_wei,omitempty"`
// Deposit asking to peer in wei in decimal
PeerDepositAmtWei string `protobuf:"bytes,5,opt,name=peer_deposit_amt_wei,json=peerDepositAmtWei,proto3" json:"peer_deposit_amt_wei,omitempty"`
// contains filtered or unexported fields
}
Admin request to ask the receiving osp to open a channel with peer. Next tag: 6
func (*OspOpenChannelRequest) Descriptor
deprecated
func (*OspOpenChannelRequest) Descriptor() ([]byte, []int)
Deprecated: Use OspOpenChannelRequest.ProtoReflect.Descriptor instead.
func (*OspOpenChannelRequest) GetPeerDepositAmtWei ¶
func (x *OspOpenChannelRequest) GetPeerDepositAmtWei() string
func (*OspOpenChannelRequest) GetPeerEthAddress ¶
func (x *OspOpenChannelRequest) GetPeerEthAddress() []byte
func (*OspOpenChannelRequest) GetSelfDepositAmtWei ¶
func (x *OspOpenChannelRequest) GetSelfDepositAmtWei() string
func (*OspOpenChannelRequest) GetTokenAddress ¶
func (x *OspOpenChannelRequest) GetTokenAddress() []byte
func (*OspOpenChannelRequest) GetTokenType ¶
func (x *OspOpenChannelRequest) GetTokenType() entity.TokenType
func (*OspOpenChannelRequest) ProtoMessage ¶
func (*OspOpenChannelRequest) ProtoMessage()
func (*OspOpenChannelRequest) ProtoReflect ¶ added in v1.1.0
func (x *OspOpenChannelRequest) ProtoReflect() protoreflect.Message
func (*OspOpenChannelRequest) Reset ¶
func (x *OspOpenChannelRequest) Reset()
func (*OspOpenChannelRequest) String ¶
func (x *OspOpenChannelRequest) String() string
type PayHop ¶
type PayHop struct {
PayId []byte `protobuf:"bytes,1,opt,name=pay_id,json=payId,proto3" json:"pay_id,omitempty"`
PrevHopAddr []byte `protobuf:"bytes,2,opt,name=prev_hop_addr,json=prevHopAddr,proto3" json:"prev_hop_addr,omitempty"`
NextHopAddr []byte `protobuf:"bytes,3,opt,name=next_hop_addr,json=nextHopAddr,proto3" json:"next_hop_addr,omitempty"`
Err *Error `protobuf:"bytes,4,opt,name=err,proto3" json:"err,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 5
func (*PayHop) Descriptor
deprecated
func (*PayHop) GetNextHopAddr ¶
func (*PayHop) GetPrevHopAddr ¶
func (*PayHop) ProtoMessage ¶
func (*PayHop) ProtoMessage()
func (*PayHop) ProtoReflect ¶ added in v1.1.0
func (x *PayHop) ProtoReflect() protoreflect.Message
type PayInAuthAck ¶
type PayInAuthAck struct {
Pay []byte `protobuf:"bytes,1,opt,name=pay,proto3" json:"pay,omitempty"` // pay bytes
Note *anypb.Any `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` // pay note
// pay state, from instate or outstate depending on which simplex
State int64 `protobuf:"varint,3,opt,name=state,proto3" json:"state,omitempty"`
// contains filtered or unexported fields
}
func (*PayInAuthAck) Descriptor
deprecated
func (*PayInAuthAck) Descriptor() ([]byte, []int)
Deprecated: Use PayInAuthAck.ProtoReflect.Descriptor instead.
func (*PayInAuthAck) GetNote ¶
func (x *PayInAuthAck) GetNote() *anypb.Any
func (*PayInAuthAck) GetPay ¶
func (x *PayInAuthAck) GetPay() []byte
func (*PayInAuthAck) GetState ¶
func (x *PayInAuthAck) GetState() int64
func (*PayInAuthAck) ProtoMessage ¶
func (*PayInAuthAck) ProtoMessage()
func (*PayInAuthAck) ProtoReflect ¶ added in v1.1.0
func (x *PayInAuthAck) ProtoReflect() protoreflect.Message
func (*PayInAuthAck) Reset ¶
func (x *PayInAuthAck) Reset()
func (*PayInAuthAck) String ¶
func (x *PayInAuthAck) String() string
type PayPath ¶
type PayPath struct {
Hops []*SignedPayHop `protobuf:"bytes,1,rep,name=hops,proto3" json:"hops,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 2
func (*PayPath) Descriptor
deprecated
func (*PayPath) GetHops ¶
func (x *PayPath) GetHops() []*SignedPayHop
func (*PayPath) ProtoMessage ¶
func (*PayPath) ProtoMessage()
func (*PayPath) ProtoReflect ¶ added in v1.1.0
func (x *PayPath) ProtoReflect() protoreflect.Message
type PaymentSettleProof ¶
type PaymentSettleProof struct {
VouchedCondPayResults []*entity.VouchedCondPayResult `` /* 128-byte string literal not displayed */
// valid reasons for settled_pays in PaymentSettleProof
// EXPIRED, REJECTED, RESOLVED_ONCHAIN, DEST_UNREACHABLE
SettledPays []*SettledPayment `protobuf:"bytes,2,rep,name=settled_pays,json=settledPays,proto3" json:"settled_pays,omitempty"`
// contains filtered or unexported fields
}
PaymentSettleProof provides all condition results to settle a pay. Expect after receives this msg, peer will send PaymentSettleRequest Next Tag: 3
func (*PaymentSettleProof) Descriptor
deprecated
func (*PaymentSettleProof) Descriptor() ([]byte, []int)
Deprecated: Use PaymentSettleProof.ProtoReflect.Descriptor instead.
func (*PaymentSettleProof) GetSettledPays ¶
func (x *PaymentSettleProof) GetSettledPays() []*SettledPayment
func (*PaymentSettleProof) GetVouchedCondPayResults ¶
func (x *PaymentSettleProof) GetVouchedCondPayResults() []*entity.VouchedCondPayResult
func (*PaymentSettleProof) ProtoMessage ¶
func (*PaymentSettleProof) ProtoMessage()
func (*PaymentSettleProof) ProtoReflect ¶ added in v1.1.0
func (x *PaymentSettleProof) ProtoReflect() protoreflect.Message
func (*PaymentSettleProof) Reset ¶
func (x *PaymentSettleProof) Reset()
func (*PaymentSettleProof) String ¶
func (x *PaymentSettleProof) String() string
type PaymentSettleReason ¶
type PaymentSettleReason int32
Next Tag: 7
const ( PaymentSettleReason_NONE PaymentSettleReason = 0 PaymentSettleReason_PAY_EXPIRED PaymentSettleReason = 1 PaymentSettleReason_PAY_REJECTED PaymentSettleReason = 2 PaymentSettleReason_PAY_RESOLVED_ONCHAIN PaymentSettleReason = 3 PaymentSettleReason_PAY_PAID_MAX PaymentSettleReason = 4 PaymentSettleReason_PAY_DEST_UNREACHABLE PaymentSettleReason = 5 PaymentSettleReason_PAY_VOUCHED PaymentSettleReason = 6 )
func (PaymentSettleReason) Descriptor ¶ added in v1.1.0
func (PaymentSettleReason) Descriptor() protoreflect.EnumDescriptor
func (PaymentSettleReason) Enum ¶ added in v1.1.0
func (x PaymentSettleReason) Enum() *PaymentSettleReason
func (PaymentSettleReason) EnumDescriptor
deprecated
func (PaymentSettleReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use PaymentSettleReason.Descriptor instead.
func (PaymentSettleReason) Number ¶ added in v1.1.0
func (x PaymentSettleReason) Number() protoreflect.EnumNumber
func (PaymentSettleReason) String ¶
func (x PaymentSettleReason) String() string
func (PaymentSettleReason) Type ¶ added in v1.1.0
func (PaymentSettleReason) Type() protoreflect.EnumType
type PaymentSettleRequest ¶
type PaymentSettleRequest struct {
SettledPays []*SettledPayment `protobuf:"bytes,1,rep,name=settled_pays,json=settledPays,proto3" json:"settled_pays,omitempty"`
StateOnlyPeerFromSig *SignedSimplexState `` /* 127-byte string literal not displayed */
// Sequence num of the previous simplex state that this new state is based on.
// Useful for failure recover.
BaseSeq uint64 `protobuf:"varint,3,opt,name=base_seq,json=baseSeq,proto3" json:"base_seq,omitempty"`
// contains filtered or unexported fields
}
When peer_from of a simplex channel wants to settle a pay the updated simplex will be sent along with its signature.
func (*PaymentSettleRequest) Descriptor
deprecated
func (*PaymentSettleRequest) Descriptor() ([]byte, []int)
Deprecated: Use PaymentSettleRequest.ProtoReflect.Descriptor instead.
func (*PaymentSettleRequest) GetBaseSeq ¶
func (x *PaymentSettleRequest) GetBaseSeq() uint64
func (*PaymentSettleRequest) GetSettledPays ¶
func (x *PaymentSettleRequest) GetSettledPays() []*SettledPayment
func (*PaymentSettleRequest) GetStateOnlyPeerFromSig ¶
func (x *PaymentSettleRequest) GetStateOnlyPeerFromSig() *SignedSimplexState
func (*PaymentSettleRequest) ProtoMessage ¶
func (*PaymentSettleRequest) ProtoMessage()
func (*PaymentSettleRequest) ProtoReflect ¶ added in v1.1.0
func (x *PaymentSettleRequest) ProtoReflect() protoreflect.Message
func (*PaymentSettleRequest) Reset ¶
func (x *PaymentSettleRequest) Reset()
func (*PaymentSettleRequest) String ¶
func (x *PaymentSettleRequest) String() string
type PaymentSettleResponse ¶
type PaymentSettleResponse struct {
StateCosigned *SignedSimplexState `protobuf:"bytes,1,opt,name=state_cosigned,json=stateCosigned,proto3" json:"state_cosigned,omitempty"`
Error *Error `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
peer_to of a simplex channel confirms the settlement by providing its sig Next Tag: 4
func (*PaymentSettleResponse) Descriptor
deprecated
func (*PaymentSettleResponse) Descriptor() ([]byte, []int)
Deprecated: Use PaymentSettleResponse.ProtoReflect.Descriptor instead.
func (*PaymentSettleResponse) GetError ¶
func (x *PaymentSettleResponse) GetError() *Error
func (*PaymentSettleResponse) GetStateCosigned ¶
func (x *PaymentSettleResponse) GetStateCosigned() *SignedSimplexState
func (*PaymentSettleResponse) ProtoMessage ¶
func (*PaymentSettleResponse) ProtoMessage()
func (*PaymentSettleResponse) ProtoReflect ¶ added in v1.1.0
func (x *PaymentSettleResponse) ProtoReflect() protoreflect.Message
func (*PaymentSettleResponse) Reset ¶
func (x *PaymentSettleResponse) Reset()
func (*PaymentSettleResponse) String ¶
func (x *PaymentSettleResponse) String() string
type PeerAddress ¶
type PeerAddress struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
TokenAddr string `protobuf:"bytes,2,opt,name=token_addr,json=tokenAddr,proto3" json:"token_addr,omitempty"`
// contains filtered or unexported fields
}
func (*PeerAddress) Descriptor
deprecated
func (*PeerAddress) Descriptor() ([]byte, []int)
Deprecated: Use PeerAddress.ProtoReflect.Descriptor instead.
func (*PeerAddress) GetAddress ¶
func (x *PeerAddress) GetAddress() string
func (*PeerAddress) GetTokenAddr ¶
func (x *PeerAddress) GetTokenAddr() string
func (*PeerAddress) ProtoMessage ¶
func (*PeerAddress) ProtoMessage()
func (*PeerAddress) ProtoReflect ¶ added in v1.1.0
func (x *PeerAddress) ProtoReflect() protoreflect.Message
func (*PeerAddress) Reset ¶
func (x *PeerAddress) Reset()
func (*PeerAddress) String ¶
func (x *PeerAddress) String() string
type PeerOsp ¶
type PeerOsp struct {
// eth addr of peer osp
OspAddress string `protobuf:"bytes,1,opt,name=osp_address,json=ospAddress,proto3" json:"osp_address,omitempty"`
// channels with the peer osp
TokenCidPairs []*TokenCidPair `protobuf:"bytes,2,rep,name=token_cid_pairs,json=tokenCidPairs,proto3" json:"token_cid_pairs,omitempty"`
// last update timestamp
UpdateTs uint64 `protobuf:"varint,3,opt,name=update_ts,json=updateTs,proto3" json:"update_ts,omitempty"`
// contains filtered or unexported fields
}
func (*PeerOsp) Descriptor
deprecated
func (*PeerOsp) GetOspAddress ¶
func (*PeerOsp) GetTokenCidPairs ¶
func (x *PeerOsp) GetTokenCidPairs() []*TokenCidPair
func (*PeerOsp) GetUpdateTs ¶
func (*PeerOsp) ProtoMessage ¶
func (*PeerOsp) ProtoMessage()
func (*PeerOsp) ProtoReflect ¶ added in v1.1.0
func (x *PeerOsp) ProtoReflect() protoreflect.Message
type PeerOspsResponse ¶
type PeerOspsResponse struct {
// info of peer osps.
PeerOsps []*PeerOsp `protobuf:"bytes,1,rep,name=peer_osps,json=peerOsps,proto3" json:"peer_osps,omitempty"`
// contains filtered or unexported fields
}
Admin request to list all peer osps. Next tag: 2
func (*PeerOspsResponse) Descriptor
deprecated
func (*PeerOspsResponse) Descriptor() ([]byte, []int)
Deprecated: Use PeerOspsResponse.ProtoReflect.Descriptor instead.
func (*PeerOspsResponse) GetPeerOsps ¶
func (x *PeerOspsResponse) GetPeerOsps() []*PeerOsp
func (*PeerOspsResponse) ProtoMessage ¶
func (*PeerOspsResponse) ProtoMessage()
func (*PeerOspsResponse) ProtoReflect ¶ added in v1.1.0
func (x *PeerOspsResponse) ProtoReflect() protoreflect.Message
func (*PeerOspsResponse) Reset ¶
func (x *PeerOspsResponse) Reset()
func (*PeerOspsResponse) String ¶
func (x *PeerOspsResponse) String() string
type PeerStatus ¶
type PeerStatus struct {
FreeBalance string `protobuf:"bytes,1,opt,name=free_balance,json=freeBalance,proto3" json:"free_balance,omitempty"`
JoinStatus JoinCelerStatus `protobuf:"varint,2,opt,name=join_status,json=joinStatus,proto3,enum=rpc.JoinCelerStatus" json:"join_status,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 3
func (*PeerStatus) Descriptor
deprecated
func (*PeerStatus) Descriptor() ([]byte, []int)
Deprecated: Use PeerStatus.ProtoReflect.Descriptor instead.
func (*PeerStatus) GetFreeBalance ¶
func (x *PeerStatus) GetFreeBalance() string
func (*PeerStatus) GetJoinStatus ¶
func (x *PeerStatus) GetJoinStatus() JoinCelerStatus
func (*PeerStatus) ProtoMessage ¶
func (*PeerStatus) ProtoMessage()
func (*PeerStatus) ProtoReflect ¶ added in v1.1.0
func (x *PeerStatus) ProtoReflect() protoreflect.Message
func (*PeerStatus) Reset ¶
func (x *PeerStatus) Reset()
func (*PeerStatus) String ¶
func (x *PeerStatus) String() string
type PickReply ¶
type PickReply struct {
Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
// contains filtered or unexported fields
}
Next tag: 2
func (*PickReply) Descriptor
deprecated
func (*PickReply) ProtoMessage ¶
func (*PickReply) ProtoMessage()
func (*PickReply) ProtoReflect ¶ added in v1.1.0
func (x *PickReply) ProtoReflect() protoreflect.Message
type PickReq ¶
type PickReq struct {
Client string `protobuf:"bytes,1,opt,name=client,proto3" json:"client,omitempty"`
// contains filtered or unexported fields
}
Next tag: 2
func (*PickReq) Descriptor
deprecated
func (*PickReq) ProtoMessage ¶
func (*PickReq) ProtoMessage()
func (*PickReq) ProtoReflect ¶ added in v1.1.0
func (x *PickReq) ProtoReflect() protoreflect.Message
type PingReply ¶
type PingReply struct {
Numclients uint32 `protobuf:"varint,1,opt,name=numclients,proto3" json:"numclients,omitempty"`
// contains filtered or unexported fields
}
Next tag: 2
func (*PingReply) Descriptor
deprecated
func (*PingReply) GetNumclients ¶
func (*PingReply) ProtoMessage ¶
func (*PingReply) ProtoMessage()
func (*PingReply) ProtoReflect ¶ added in v1.1.0
func (x *PingReply) ProtoReflect() protoreflect.Message
type PingReq ¶
type PingReq struct {
// contains filtered or unexported fields
}
Next tag: 1
func (*PingReq) Descriptor
deprecated
func (*PingReq) ProtoMessage ¶
func (*PingReq) ProtoMessage()
func (*PingReq) ProtoReflect ¶ added in v1.1.0
func (x *PingReq) ProtoReflect() protoreflect.Message
type QueryDelegationRequest ¶
type QueryDelegationRequest struct {
// delegatee to query delegation.
Delegatee []byte `protobuf:"bytes,1,opt,name=delegatee,proto3" json:"delegatee,omitempty"`
// contains filtered or unexported fields
}
Next tag: 2
func (*QueryDelegationRequest) Descriptor
deprecated
func (*QueryDelegationRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDelegationRequest.ProtoReflect.Descriptor instead.
func (*QueryDelegationRequest) GetDelegatee ¶
func (x *QueryDelegationRequest) GetDelegatee() []byte
func (*QueryDelegationRequest) ProtoMessage ¶
func (*QueryDelegationRequest) ProtoMessage()
func (*QueryDelegationRequest) ProtoReflect ¶ added in v1.1.0
func (x *QueryDelegationRequest) ProtoReflect() protoreflect.Message
func (*QueryDelegationRequest) Reset ¶
func (x *QueryDelegationRequest) Reset()
func (*QueryDelegationRequest) String ¶
func (x *QueryDelegationRequest) String() string
type QueryDelegationResponse ¶
type QueryDelegationResponse struct {
// DelegationProof stored by celer node.
Proof *DelegationProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
// contains filtered or unexported fields
}
Next tag: 2
func (*QueryDelegationResponse) Descriptor
deprecated
func (*QueryDelegationResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDelegationResponse.ProtoReflect.Descriptor instead.
func (*QueryDelegationResponse) GetProof ¶
func (x *QueryDelegationResponse) GetProof() *DelegationProof
func (*QueryDelegationResponse) ProtoMessage ¶
func (*QueryDelegationResponse) ProtoMessage()
func (*QueryDelegationResponse) ProtoReflect ¶ added in v1.1.0
func (x *QueryDelegationResponse) ProtoReflect() protoreflect.Message
func (*QueryDelegationResponse) Reset ¶
func (x *QueryDelegationResponse) Reset()
func (*QueryDelegationResponse) String ¶
func (x *QueryDelegationResponse) String() string
type QueryDepositRequest ¶
type QueryDepositRequest struct {
DepositId string `protobuf:"bytes,1,opt,name=deposit_id,json=depositId,proto3" json:"deposit_id,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 2
func (*QueryDepositRequest) Descriptor
deprecated
func (*QueryDepositRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryDepositRequest.ProtoReflect.Descriptor instead.
func (*QueryDepositRequest) GetDepositId ¶
func (x *QueryDepositRequest) GetDepositId() string
func (*QueryDepositRequest) ProtoMessage ¶
func (*QueryDepositRequest) ProtoMessage()
func (*QueryDepositRequest) ProtoReflect ¶ added in v1.1.0
func (x *QueryDepositRequest) ProtoReflect() protoreflect.Message
func (*QueryDepositRequest) Reset ¶
func (x *QueryDepositRequest) Reset()
func (*QueryDepositRequest) String ¶
func (x *QueryDepositRequest) String() string
type QueryDepositResponse ¶
type QueryDepositResponse struct {
DepositState DepositState `protobuf:"varint,1,opt,name=deposit_state,json=depositState,proto3,enum=rpc.DepositState" json:"deposit_state,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 3
func (*QueryDepositResponse) Descriptor
deprecated
func (*QueryDepositResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryDepositResponse.ProtoReflect.Descriptor instead.
func (*QueryDepositResponse) GetDepositState ¶
func (x *QueryDepositResponse) GetDepositState() DepositState
func (*QueryDepositResponse) GetError ¶
func (x *QueryDepositResponse) GetError() string
func (*QueryDepositResponse) ProtoMessage ¶
func (*QueryDepositResponse) ProtoMessage()
func (*QueryDepositResponse) ProtoReflect ¶ added in v1.1.0
func (x *QueryDepositResponse) ProtoReflect() protoreflect.Message
func (*QueryDepositResponse) Reset ¶
func (x *QueryDepositResponse) Reset()
func (*QueryDepositResponse) String ¶
func (x *QueryDepositResponse) String() string
type RegisterStreamRequest ¶
type RegisterStreamRequest struct {
PeerRpcAddress string `protobuf:"bytes,1,opt,name=peer_rpc_address,json=peerRpcAddress,proto3" json:"peer_rpc_address,omitempty"`
PeerEthAddress []byte `protobuf:"bytes,2,opt,name=peer_eth_address,json=peerEthAddress,proto3" json:"peer_eth_address,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 3
func (*RegisterStreamRequest) Descriptor
deprecated
func (*RegisterStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterStreamRequest.ProtoReflect.Descriptor instead.
func (*RegisterStreamRequest) GetPeerEthAddress ¶
func (x *RegisterStreamRequest) GetPeerEthAddress() []byte
func (*RegisterStreamRequest) GetPeerRpcAddress ¶
func (x *RegisterStreamRequest) GetPeerRpcAddress() string
func (*RegisterStreamRequest) ProtoMessage ¶
func (*RegisterStreamRequest) ProtoMessage()
func (*RegisterStreamRequest) ProtoReflect ¶ added in v1.1.0
func (x *RegisterStreamRequest) ProtoReflect() protoreflect.Message
func (*RegisterStreamRequest) Reset ¶
func (x *RegisterStreamRequest) Reset()
func (*RegisterStreamRequest) String ¶
func (x *RegisterStreamRequest) String() string
type RevealSecret ¶
type RevealSecret struct {
PayId []byte `protobuf:"bytes,1,opt,name=pay_id,json=payId,proto3" json:"pay_id,omitempty"`
// preimage of the hash
Secret []byte `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
// used for cross net pay
OriginalPayId []byte `protobuf:"bytes,3,opt,name=original_pay_id,json=originalPayId,proto3" json:"original_pay_id,omitempty"`
// contains filtered or unexported fields
}
func (*RevealSecret) Descriptor
deprecated
func (*RevealSecret) Descriptor() ([]byte, []int)
Deprecated: Use RevealSecret.ProtoReflect.Descriptor instead.
func (*RevealSecret) GetOriginalPayId ¶
func (x *RevealSecret) GetOriginalPayId() []byte
func (*RevealSecret) GetPayId ¶
func (x *RevealSecret) GetPayId() []byte
func (*RevealSecret) GetSecret ¶
func (x *RevealSecret) GetSecret() []byte
func (*RevealSecret) ProtoMessage ¶
func (*RevealSecret) ProtoMessage()
func (*RevealSecret) ProtoReflect ¶ added in v1.1.0
func (x *RevealSecret) ProtoReflect() protoreflect.Message
func (*RevealSecret) Reset ¶
func (x *RevealSecret) Reset()
func (*RevealSecret) String ¶
func (x *RevealSecret) String() string
type RevealSecretAck ¶
type RevealSecretAck struct {
// include pay_id for avoid preimage->pay reverse lookup
PayId []byte `protobuf:"bytes,1,opt,name=pay_id,json=payId,proto3" json:"pay_id,omitempty"`
// pay dest sign secret to avoid spoof
PayDestSecretSig []byte `protobuf:"bytes,2,opt,name=pay_dest_secret_sig,json=payDestSecretSig,proto3" json:"pay_dest_secret_sig,omitempty"`
// used for cross net pay
OriginalPayId []byte `protobuf:"bytes,3,opt,name=original_pay_id,json=originalPayId,proto3" json:"original_pay_id,omitempty"`
// contains filtered or unexported fields
}
func (*RevealSecretAck) Descriptor
deprecated
func (*RevealSecretAck) Descriptor() ([]byte, []int)
Deprecated: Use RevealSecretAck.ProtoReflect.Descriptor instead.
func (*RevealSecretAck) GetOriginalPayId ¶
func (x *RevealSecretAck) GetOriginalPayId() []byte
func (*RevealSecretAck) GetPayDestSecretSig ¶
func (x *RevealSecretAck) GetPayDestSecretSig() []byte
func (*RevealSecretAck) GetPayId ¶
func (x *RevealSecretAck) GetPayId() []byte
func (*RevealSecretAck) ProtoMessage ¶
func (*RevealSecretAck) ProtoMessage()
func (*RevealSecretAck) ProtoReflect ¶ added in v1.1.0
func (x *RevealSecretAck) ProtoReflect() protoreflect.Message
func (*RevealSecretAck) Reset ¶
func (x *RevealSecretAck) Reset()
func (*RevealSecretAck) String ¶
func (x *RevealSecretAck) String() string
type RoutingRequest ¶
type RoutingRequest struct {
// list of routing updates
Updates []*SignedRoutingUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
// OSP that sent (propagated) this information.
Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
// contains filtered or unexported fields
}
Next tag: 3
func (*RoutingRequest) Descriptor
deprecated
func (*RoutingRequest) Descriptor() ([]byte, []int)
Deprecated: Use RoutingRequest.ProtoReflect.Descriptor instead.
func (*RoutingRequest) GetSender ¶
func (x *RoutingRequest) GetSender() string
func (*RoutingRequest) GetUpdates ¶
func (x *RoutingRequest) GetUpdates() []*SignedRoutingUpdate
func (*RoutingRequest) ProtoMessage ¶
func (*RoutingRequest) ProtoMessage()
func (*RoutingRequest) ProtoReflect ¶ added in v1.1.0
func (x *RoutingRequest) ProtoReflect() protoreflect.Message
func (*RoutingRequest) Reset ¶
func (x *RoutingRequest) Reset()
func (*RoutingRequest) String ¶
func (x *RoutingRequest) String() string
type RoutingUpdate ¶
type RoutingUpdate struct {
// origin source OSP for this information.
Origin string `protobuf:"bytes,1,opt,name=origin,proto3" json:"origin,omitempty"`
// timestamp of this information at the origin.
Ts uint64 `protobuf:"varint,2,opt,name=ts,proto3" json:"ts,omitempty"`
// channel information
Channels []*ChannelRoutingInfo `protobuf:"bytes,3,rep,name=channels,proto3" json:"channels,omitempty"`
// routing protocol version number
ProtoVersion uint64 `protobuf:"varint,4,opt,name=proto_version,json=protoVersion,proto3" json:"proto_version,omitempty"`
// contains filtered or unexported fields
}
Next tag: 5
func (*RoutingUpdate) Descriptor
deprecated
func (*RoutingUpdate) Descriptor() ([]byte, []int)
Deprecated: Use RoutingUpdate.ProtoReflect.Descriptor instead.
func (*RoutingUpdate) GetChannels ¶
func (x *RoutingUpdate) GetChannels() []*ChannelRoutingInfo
func (*RoutingUpdate) GetOrigin ¶
func (x *RoutingUpdate) GetOrigin() string
func (*RoutingUpdate) GetProtoVersion ¶
func (x *RoutingUpdate) GetProtoVersion() uint64
func (*RoutingUpdate) GetTs ¶
func (x *RoutingUpdate) GetTs() uint64
func (*RoutingUpdate) ProtoMessage ¶
func (*RoutingUpdate) ProtoMessage()
func (*RoutingUpdate) ProtoReflect ¶ added in v1.1.0
func (x *RoutingUpdate) ProtoReflect() protoreflect.Message
func (*RoutingUpdate) Reset ¶
func (x *RoutingUpdate) Reset()
func (*RoutingUpdate) String ¶
func (x *RoutingUpdate) String() string
type RpcClient ¶
type RpcClient interface {
GetPayHistory(ctx context.Context, in *GetPayHistoryRequest, opts ...grpc.CallOption) (*GetPayHistoryResponse, error)
QueryDelegation(ctx context.Context, in *QueryDelegationRequest, opts ...grpc.CallOption) (*QueryDelegationResponse, error)
RequestDelegation(ctx context.Context, in *DelegationRequest, opts ...grpc.CallOption) (*DelegationResponse, error)
CelerOpenChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelResponse, error)
CelerOpenTcbChannel(ctx context.Context, in *OpenChannelRequest, opts ...grpc.CallOption) (*OpenChannelResponse, error)
CelerGetPeerStatus(ctx context.Context, in *PeerAddress, opts ...grpc.CallOption) (*PeerStatus, error)
// unified offchain bidi streaming rpc and msg definition
CelerStream(ctx context.Context, opts ...grpc.CallOption) (Rpc_CelerStreamClient, error)
CelerMigrateChannel(ctx context.Context, in *MigrateChannelRequest, opts ...grpc.CallOption) (*MigrateChannelResponse, error)
}
RpcClient is the client API for Rpc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRpcClient ¶
func NewRpcClient(cc grpc.ClientConnInterface) RpcClient
type RpcServer ¶
type RpcServer interface {
GetPayHistory(context.Context, *GetPayHistoryRequest) (*GetPayHistoryResponse, error)
QueryDelegation(context.Context, *QueryDelegationRequest) (*QueryDelegationResponse, error)
RequestDelegation(context.Context, *DelegationRequest) (*DelegationResponse, error)
CelerOpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
CelerOpenTcbChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
CelerGetPeerStatus(context.Context, *PeerAddress) (*PeerStatus, error)
// unified offchain bidi streaming rpc and msg definition
CelerStream(Rpc_CelerStreamServer) error
CelerMigrateChannel(context.Context, *MigrateChannelRequest) (*MigrateChannelResponse, error)
// contains filtered or unexported methods
}
RpcServer is the server API for Rpc service. All implementations must embed UnimplementedRpcServer for forward compatibility
type Rpc_CelerOneServer ¶
type Rpc_CelerStreamClient ¶
type Rpc_CelerStreamServer ¶
type SafeSendCelerStream ¶
type SafeSendCelerStream struct {
// contains filtered or unexported fields
}
func (*SafeSendCelerStream) SafeSend ¶
func (s *SafeSendCelerStream) SafeSend(msg *CelerMsg) error
type SendTokenRequest ¶
type SendTokenRequest struct {
DstAddr string `protobuf:"bytes,1,opt,name=dst_addr,json=dstAddr,proto3" json:"dst_addr,omitempty"`
AmtWei string `protobuf:"bytes,2,opt,name=amt_wei,json=amtWei,proto3" json:"amt_wei,omitempty"`
TokenAddr string `protobuf:"bytes,3,opt,name=token_addr,json=tokenAddr,proto3" json:"token_addr,omitempty"`
Note *anypb.Any `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
DstNetId uint64 `protobuf:"varint,5,opt,name=dst_net_id,json=dstNetId,proto3" json:"dst_net_id,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 5
func (*SendTokenRequest) Descriptor
deprecated
func (*SendTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendTokenRequest.ProtoReflect.Descriptor instead.
func (*SendTokenRequest) GetAmtWei ¶
func (x *SendTokenRequest) GetAmtWei() string
func (*SendTokenRequest) GetDstAddr ¶
func (x *SendTokenRequest) GetDstAddr() string
func (*SendTokenRequest) GetDstNetId ¶
func (x *SendTokenRequest) GetDstNetId() uint64
func (*SendTokenRequest) GetNote ¶
func (x *SendTokenRequest) GetNote() *anypb.Any
func (*SendTokenRequest) GetTokenAddr ¶
func (x *SendTokenRequest) GetTokenAddr() string
func (*SendTokenRequest) ProtoMessage ¶
func (*SendTokenRequest) ProtoMessage()
func (*SendTokenRequest) ProtoReflect ¶ added in v1.1.0
func (x *SendTokenRequest) ProtoReflect() protoreflect.Message
func (*SendTokenRequest) Reset ¶
func (x *SendTokenRequest) Reset()
func (*SendTokenRequest) String ¶
func (x *SendTokenRequest) String() string
type SendTokenResponse ¶
type SendTokenResponse struct {
Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
PayId string `protobuf:"bytes,3,opt,name=pay_id,json=payId,proto3" json:"pay_id,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 4
func (*SendTokenResponse) Descriptor
deprecated
func (*SendTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendTokenResponse.ProtoReflect.Descriptor instead.
func (*SendTokenResponse) GetError ¶
func (x *SendTokenResponse) GetError() string
func (*SendTokenResponse) GetPayId ¶
func (x *SendTokenResponse) GetPayId() string
func (*SendTokenResponse) GetStatus ¶
func (x *SendTokenResponse) GetStatus() int32
func (*SendTokenResponse) ProtoMessage ¶
func (*SendTokenResponse) ProtoMessage()
func (*SendTokenResponse) ProtoReflect ¶ added in v1.1.0
func (x *SendTokenResponse) ProtoReflect() protoreflect.Message
func (*SendTokenResponse) Reset ¶
func (x *SendTokenResponse) Reset()
func (*SendTokenResponse) String ¶
func (x *SendTokenResponse) String() string
type SettledPayment ¶
type SettledPayment struct {
SettledPayId []byte `protobuf:"bytes,1,opt,name=settled_pay_id,json=settledPayId,proto3" json:"settled_pay_id,omitempty"` // confirmed, rejected or expired
Reason PaymentSettleReason `protobuf:"varint,2,opt,name=reason,proto3,enum=rpc.PaymentSettleReason" json:"reason,omitempty"`
Amount []byte `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
// used in pay settle proof to track path for failed payments
Path *PayPath `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
// used for cross net pay
OriginalPayId []byte `protobuf:"bytes,5,opt,name=original_pay_id,json=originalPayId,proto3" json:"original_pay_id,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 5
func (*SettledPayment) Descriptor
deprecated
func (*SettledPayment) Descriptor() ([]byte, []int)
Deprecated: Use SettledPayment.ProtoReflect.Descriptor instead.
func (*SettledPayment) GetAmount ¶
func (x *SettledPayment) GetAmount() []byte
func (*SettledPayment) GetOriginalPayId ¶
func (x *SettledPayment) GetOriginalPayId() []byte
func (*SettledPayment) GetPath ¶
func (x *SettledPayment) GetPath() *PayPath
func (*SettledPayment) GetReason ¶
func (x *SettledPayment) GetReason() PaymentSettleReason
func (*SettledPayment) GetSettledPayId ¶
func (x *SettledPayment) GetSettledPayId() []byte
func (*SettledPayment) ProtoMessage ¶
func (*SettledPayment) ProtoMessage()
func (*SettledPayment) ProtoReflect ¶ added in v1.1.0
func (x *SettledPayment) ProtoReflect() protoreflect.Message
func (*SettledPayment) Reset ¶
func (x *SettledPayment) Reset()
func (*SettledPayment) String ¶
func (x *SettledPayment) String() string
type SignedDuplexState ¶
type SignedDuplexState struct {
// only expect two messages for duplex
SimplexStates []*SignedSimplexState `protobuf:"bytes,1,rep,name=simplex_states,json=simplexStates,proto3" json:"simplex_states,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 2
func (*SignedDuplexState) Descriptor
deprecated
func (*SignedDuplexState) Descriptor() ([]byte, []int)
Deprecated: Use SignedDuplexState.ProtoReflect.Descriptor instead.
func (*SignedDuplexState) GetSimplexStates ¶
func (x *SignedDuplexState) GetSimplexStates() []*SignedSimplexState
func (*SignedDuplexState) ProtoMessage ¶
func (*SignedDuplexState) ProtoMessage()
func (*SignedDuplexState) ProtoReflect ¶ added in v1.1.0
func (x *SignedDuplexState) ProtoReflect() protoreflect.Message
func (*SignedDuplexState) Reset ¶
func (x *SignedDuplexState) Reset()
func (*SignedDuplexState) String ¶
func (x *SignedDuplexState) String() string
type SignedPayHop ¶
type SignedPayHop struct {
PayHopBytes []byte `protobuf:"bytes,1,opt,name=pay_hop_bytes,json=payHopBytes,proto3" json:"pay_hop_bytes,omitempty"`
Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 3
func (*SignedPayHop) Descriptor
deprecated
func (*SignedPayHop) Descriptor() ([]byte, []int)
Deprecated: Use SignedPayHop.ProtoReflect.Descriptor instead.
func (*SignedPayHop) GetPayHopBytes ¶
func (x *SignedPayHop) GetPayHopBytes() []byte
func (*SignedPayHop) GetSig ¶
func (x *SignedPayHop) GetSig() []byte
func (*SignedPayHop) ProtoMessage ¶
func (*SignedPayHop) ProtoMessage()
func (*SignedPayHop) ProtoReflect ¶ added in v1.1.0
func (x *SignedPayHop) ProtoReflect() protoreflect.Message
func (*SignedPayHop) Reset ¶
func (x *SignedPayHop) Reset()
func (*SignedPayHop) String ¶
func (x *SignedPayHop) String() string
type SignedRoutingUpdate ¶
type SignedRoutingUpdate struct {
// serialized RoutingUpdate
Update []byte `protobuf:"bytes,1,opt,name=update,proto3" json:"update,omitempty"`
// sig of serialized RoutingUpdate by origin
Sig []byte `protobuf:"bytes,2,opt,name=sig,proto3" json:"sig,omitempty"`
// time to live: decreasing hop count to stop the broadcast.
Ttl uint64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
// contains filtered or unexported fields
}
Next tag: 4
func (*SignedRoutingUpdate) Descriptor
deprecated
func (*SignedRoutingUpdate) Descriptor() ([]byte, []int)
Deprecated: Use SignedRoutingUpdate.ProtoReflect.Descriptor instead.
func (*SignedRoutingUpdate) GetSig ¶
func (x *SignedRoutingUpdate) GetSig() []byte
func (*SignedRoutingUpdate) GetTtl ¶
func (x *SignedRoutingUpdate) GetTtl() uint64
func (*SignedRoutingUpdate) GetUpdate ¶
func (x *SignedRoutingUpdate) GetUpdate() []byte
func (*SignedRoutingUpdate) ProtoMessage ¶
func (*SignedRoutingUpdate) ProtoMessage()
func (*SignedRoutingUpdate) ProtoReflect ¶ added in v1.1.0
func (x *SignedRoutingUpdate) ProtoReflect() protoreflect.Message
func (*SignedRoutingUpdate) Reset ¶
func (x *SignedRoutingUpdate) Reset()
func (*SignedRoutingUpdate) String ¶
func (x *SignedRoutingUpdate) String() string
type SignedSimplexState ¶
type SignedSimplexState struct {
// serialized simplexPaymentChannel message
SimplexState []byte `protobuf:"bytes,1,opt,name=simplex_state,json=simplexState,proto3" json:"simplex_state,omitempty"`
SigOfPeerFrom []byte `protobuf:"bytes,2,opt,name=sig_of_peer_from,json=sigOfPeerFrom,proto3" json:"sig_of_peer_from,omitempty"`
SigOfPeerTo []byte `protobuf:"bytes,3,opt,name=sig_of_peer_to,json=sigOfPeerTo,proto3" json:"sig_of_peer_to,omitempty"`
// contains filtered or unexported fields
}
Next Tag: 4
func (*SignedSimplexState) Descriptor
deprecated
func (*SignedSimplexState) Descriptor() ([]byte, []int)
Deprecated: Use SignedSimplexState.ProtoReflect.Descriptor instead.
func (*SignedSimplexState) GetSigOfPeerFrom ¶
func (x *SignedSimplexState) GetSigOfPeerFrom() []byte
func (*SignedSimplexState) GetSigOfPeerTo ¶
func (x *SignedSimplexState) GetSigOfPeerTo() []byte
func (*SignedSimplexState) GetSimplexState ¶
func (x *SignedSimplexState) GetSimplexState() []byte
func (*SignedSimplexState) ProtoMessage ¶
func (*SignedSimplexState) ProtoMessage()
func (*SignedSimplexState) ProtoReflect ¶ added in v1.1.0
func (x *SignedSimplexState) ProtoReflect() protoreflect.Message
func (*SignedSimplexState) Reset ¶
func (x *SignedSimplexState) Reset()
func (*SignedSimplexState) String ¶
func (x *SignedSimplexState) String() string
type TokenCidPair ¶
type TokenCidPair struct {
TokenAddress string `protobuf:"bytes,1,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"`
Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"`
// contains filtered or unexported fields
}
func (*TokenCidPair) Descriptor
deprecated
func (*TokenCidPair) Descriptor() ([]byte, []int)
Deprecated: Use TokenCidPair.ProtoReflect.Descriptor instead.
func (*TokenCidPair) GetCid ¶
func (x *TokenCidPair) GetCid() string
func (*TokenCidPair) GetTokenAddress ¶
func (x *TokenCidPair) GetTokenAddress() string
func (*TokenCidPair) ProtoMessage ¶
func (*TokenCidPair) ProtoMessage()
func (*TokenCidPair) ProtoReflect ¶ added in v1.1.0
func (x *TokenCidPair) ProtoReflect() protoreflect.Message
func (*TokenCidPair) Reset ¶
func (x *TokenCidPair) Reset()
func (*TokenCidPair) String ¶
func (x *TokenCidPair) String() string
type UnimplementedAdminServer ¶
type UnimplementedAdminServer struct {
}
UnimplementedAdminServer must be embedded to have forward compatible implementations.
func (UnimplementedAdminServer) BuildRoutingTable ¶
func (UnimplementedAdminServer) BuildRoutingTable(context.Context, *BuildRoutingTableRequest) (*emptypb.Empty, error)
func (UnimplementedAdminServer) ClearExpiredPaysWithPeerOsps ¶
func (UnimplementedAdminServer) ClearExpiredPaysWithPeerOsps(context.Context, *ClearExpiredPaysRequest) (*emptypb.Empty, error)
func (UnimplementedAdminServer) ConfirmOnChainResolvedPaysWithPeerOsps ¶
func (UnimplementedAdminServer) ConfirmOnChainResolvedPaysWithPeerOsps(context.Context, *ConfirmOnChainResolvedPaysRequest) (*emptypb.Empty, error)
func (UnimplementedAdminServer) CooperativeSettle ¶
func (UnimplementedAdminServer) CooperativeSettle(context.Context, *ChannelOpRequest) (*ChannelOpResponse, error)
func (UnimplementedAdminServer) CooperativeWithdraw ¶
func (UnimplementedAdminServer) CooperativeWithdraw(context.Context, *ChannelOpRequest) (*ChannelOpResponse, error)
func (UnimplementedAdminServer) Deposit ¶
func (UnimplementedAdminServer) Deposit(context.Context, *DepositRequest) (*DepositResponse, error)
func (UnimplementedAdminServer) GetPeerOsps ¶
func (UnimplementedAdminServer) GetPeerOsps(context.Context, *emptypb.Empty) (*PeerOspsResponse, error)
func (UnimplementedAdminServer) OspOpenChannel ¶
func (UnimplementedAdminServer) OspOpenChannel(context.Context, *OspOpenChannelRequest) (*emptypb.Empty, error)
func (UnimplementedAdminServer) QueryDeposit ¶
func (UnimplementedAdminServer) QueryDeposit(context.Context, *QueryDepositRequest) (*QueryDepositResponse, error)
func (UnimplementedAdminServer) RecvBcastRoutingInfo ¶
func (UnimplementedAdminServer) RecvBcastRoutingInfo(context.Context, *RoutingRequest) (*emptypb.Empty, error)
func (UnimplementedAdminServer) RegisterStream ¶
func (UnimplementedAdminServer) RegisterStream(context.Context, *RegisterStreamRequest) (*emptypb.Empty, error)
func (UnimplementedAdminServer) SendToken ¶
func (UnimplementedAdminServer) SendToken(context.Context, *SendTokenRequest) (*SendTokenResponse, error)
type UnimplementedMultiServerServer ¶
type UnimplementedMultiServerServer struct {
}
UnimplementedMultiServerServer must be embedded to have forward compatible implementations.
func (UnimplementedMultiServerServer) BcastRoutingInfo ¶
func (UnimplementedMultiServerServer) BcastRoutingInfo(context.Context, *BcastRoutingRequest) (*BcastRoutingReply, error)
func (UnimplementedMultiServerServer) PickServer ¶
type UnimplementedRpcServer ¶
type UnimplementedRpcServer struct {
}
UnimplementedRpcServer must be embedded to have forward compatible implementations.
func (UnimplementedRpcServer) CelerGetPeerStatus ¶
func (UnimplementedRpcServer) CelerGetPeerStatus(context.Context, *PeerAddress) (*PeerStatus, error)
func (UnimplementedRpcServer) CelerMigrateChannel ¶
func (UnimplementedRpcServer) CelerMigrateChannel(context.Context, *MigrateChannelRequest) (*MigrateChannelResponse, error)
func (UnimplementedRpcServer) CelerOpenChannel ¶
func (UnimplementedRpcServer) CelerOpenChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
func (UnimplementedRpcServer) CelerOpenTcbChannel ¶
func (UnimplementedRpcServer) CelerOpenTcbChannel(context.Context, *OpenChannelRequest) (*OpenChannelResponse, error)
func (UnimplementedRpcServer) CelerStream ¶
func (UnimplementedRpcServer) CelerStream(Rpc_CelerStreamServer) error
func (UnimplementedRpcServer) GetPayHistory ¶
func (UnimplementedRpcServer) GetPayHistory(context.Context, *GetPayHistoryRequest) (*GetPayHistoryResponse, error)
func (UnimplementedRpcServer) QueryDelegation ¶
func (UnimplementedRpcServer) QueryDelegation(context.Context, *QueryDelegationRequest) (*QueryDelegationResponse, error)
func (UnimplementedRpcServer) RequestDelegation ¶
func (UnimplementedRpcServer) RequestDelegation(context.Context, *DelegationRequest) (*DelegationResponse, error)
type UnsafeAdminServer ¶ added in v1.1.0
type UnsafeAdminServer interface {
// contains filtered or unexported methods
}
UnsafeAdminServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServer will result in compilation errors.
type UnsafeMultiServerServer ¶ added in v1.1.0
type UnsafeMultiServerServer interface {
// contains filtered or unexported methods
}
UnsafeMultiServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MultiServerServer will result in compilation errors.
type UnsafeRpcServer ¶ added in v1.1.0
type UnsafeRpcServer interface {
// contains filtered or unexported methods
}
UnsafeRpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RpcServer will result in compilation errors.