Documentation
¶
Index ¶
- func NewCallbackImpl() *callbackImpl
- func PayStatusName(status int) string
- type ApiServer
- func (s *ApiServer) ApplyActionForAppSession(context context.Context, request *rpc.ApplyActionForAppSessionRequest) (*empty.Empty, error)
- func (s *ApiServer) ConfirmOnChainResolvedPayments(context context.Context, request *rpc.TokenInfo) (*empty.Empty, error)
- func (s *ApiServer) ConfirmOutgoingPayment(context context.Context, request *rpc.PaymentID) (*empty.Empty, error)
- func (s *ApiServer) ConfirmSettlePaymentChannel(context context.Context, request *rpc.TokenInfo) (*empty.Empty, error)
- func (s *ApiServer) ConfirmWithdraw(context context.Context, in *rpc.TokenInfo) (*empty.Empty, error)
- func (s *ApiServer) CooperativeWithdraw(context context.Context, request *rpc.DepositOrWithdrawRequest) (*rpc.DepositOrWithdrawJob, error)
- func (s *ApiServer) CreateAppSessionOnDeployedContract(context context.Context, ...) (*rpc.SessionID, error)
- func (s *ApiServer) CreateAppSessionOnVirtualContract(context context.Context, request *rpc.CreateAppSessionOnVirtualContractRequest) (*rpc.SessionID, error)
- func (s *ApiServer) DeleteAppSession(context context.Context, request *rpc.SessionID) (*empty.Empty, error)
- func (s *ApiServer) Deposit(context context.Context, request *rpc.DepositOrWithdrawRequest) (*rpc.DepositOrWithdrawJob, error)
- func (s *ApiServer) FinalizeOnActionTimeoutForAppSession(context context.Context, request *rpc.SessionID) (*empty.Empty, error)
- func (s *ApiServer) GetActionDeadlineForAppSession(context context.Context, request *rpc.SessionID) (*rpc.BlockNumber, error)
- func (s *ApiServer) GetBalance(context context.Context, request *rpc.TokenInfo) (*rpc.GetBalanceResponse, error)
- func (s *ApiServer) GetBlockNumber(context context.Context, request *empty.Empty) (*rpc.BlockNumber, error)
- func (s *ApiServer) GetBooleanOutcomeForAppSession(context context.Context, request *rpc.GetBooleanOutcomeForAppSessionRequest) (*rpc.BooleanOutcome, error)
- func (s *ApiServer) GetDeployedAddressForAppSession(context context.Context, request *rpc.SessionID) (*rpc.Address, error)
- func (s *ApiServer) GetIncomingPaymentStatus(context context.Context, request *rpc.PaymentID) (*rpc.PaymentStatus, error)
- func (s *ApiServer) GetOnChainPaymentInfo(context context.Context, request *rpc.PaymentID) (*rpc.OnChainPaymentInfo, error)
- func (s *ApiServer) GetOutgoingPaymentStatus(context context.Context, request *rpc.PaymentID) (*rpc.PaymentStatus, error)
- func (s *ApiServer) GetPayHistory(context context.Context, request *rpc.GetPayHistoryRequest) (*rpc.GetPayHistoryResponse, error)
- func (s *ApiServer) GetPeerFreeBalance(context context.Context, request *rpc.GetPeerFreeBalanceRequest) (*rpc.FreeBalance, error)
- func (s *ApiServer) GetSeqNumForAppSession(context context.Context, request *rpc.SessionID) (*rpc.AppSessionSeqNum, error)
- func (s *ApiServer) GetSettleFinalizedTimeForAppSession(context context.Context, request *rpc.SessionID) (*rpc.BlockNumber, error)
- func (s *ApiServer) GetSettleFinalizedTimeForPaymentChannel(context context.Context, request *rpc.TokenInfo) (*rpc.BlockNumber, error)
- func (s *ApiServer) GetStateForAppSession(context context.Context, request *rpc.GetStateForAppSessionRequest) (*rpc.AppSessionState, error)
- func (s *ApiServer) GetStatusForAppSession(context context.Context, request *rpc.SessionID) (*rpc.AppSessionStatus, error)
- func (s *ApiServer) IntendSettlePaymentChannel(context context.Context, request *rpc.TokenInfo) (*empty.Empty, error)
- func (s *ApiServer) IntendWithdraw(context context.Context, in *rpc.DepositOrWithdrawRequest) (*empty.Empty, error)
- func (s *ApiServer) MonitorCooperativeWithdrawJob(context context.Context, request *rpc.DepositOrWithdrawJob) (*rpc.DepositOrWithdrawJob, error)
- func (s *ApiServer) MonitorDepositJob(context context.Context, request *rpc.DepositOrWithdrawJob) (*rpc.DepositOrWithdrawJob, error)
- func (s *ApiServer) OpenPaymentChannel(context context.Context, request *rpc.OpenPaymentChannelRequest) (*rpc.ChannelID, error)
- func (s *ApiServer) ProcessReceivedState(context context.Context, request *rpc.ProcessReceivedStateRequest) (*rpc.ProcessReceivedStateResponse, error)
- func (s *ApiServer) RejectIncomingPayment(context context.Context, request *rpc.PaymentID) (*empty.Empty, error)
- func (s *ApiServer) ResolveIncomingPaymentOnChain(context context.Context, request *rpc.PaymentID) (*empty.Empty, error)
- func (s *ApiServer) SendConditionalPayment(context context.Context, request *rpc.SendConditionalPaymentRequest) (*rpc.PaymentID, error)
- func (s *ApiServer) SetDelegation(context context.Context, request *rpc.SetDelegationRequest) (*empty.Empty, error)
- func (s *ApiServer) SetMsgDropper(context context.Context, req *rpc.SetMsgDropReq) (*empty.Empty, error)
- func (s *ApiServer) SettleAppSession(context context.Context, request *rpc.SettleAppSessionRequest) (*empty.Empty, error)
- func (s *ApiServer) SettleAppSessionByInvalidState(context context.Context, request *rpc.SettleAppSessionByInvalidityRequest) (*empty.Empty, error)
- func (s *ApiServer) SettleAppSessionByInvalidTurn(context context.Context, request *rpc.SettleAppSessionByInvalidityRequest) (*empty.Empty, error)
- func (s *ApiServer) SettleAppSessionByMoveTimeout(context context.Context, request *rpc.SettleAppSessionByTimeoutRequest) (*empty.Empty, error)
- func (s *ApiServer) SettleAppSessionBySigTimeout(context context.Context, request *rpc.SettleAppSessionByTimeoutRequest) (*empty.Empty, error)
- func (s *ApiServer) SettleExpiredPayments(context context.Context, request *rpc.TokenInfo) (*empty.Empty, error)
- func (s *ApiServer) SettleOnChainResolvedIncomingPayment(context context.Context, request *rpc.PaymentID) (*empty.Empty, error)
- func (s *ApiServer) SignData(context context.Context, request *rpc.Data) (*rpc.Signature, error)
- func (s *ApiServer) SignOutgoingState(context context.Context, request *rpc.SignOutgoingStateRequest) (*rpc.SignedState, error)
- func (s *ApiServer) Start()
- func (s *ApiServer) SubscribeAppSessionDispute(request *rpc.SessionID, stream rpc.WebApi_SubscribeAppSessionDisputeServer) error
- func (s *ApiServer) SubscribeIncomingPayments(empty *empty.Empty, stream rpc.WebApi_SubscribeIncomingPaymentsServer) error
- func (s *ApiServer) SubscribeOutgoingPayments(empty *empty.Empty, stream rpc.WebApi_SubscribeOutgoingPaymentsServer) error
- func (s *ApiServer) SyncOnChainPaymentChannelStatus(context context.Context, request *rpc.TokenInfo) (*empty.Empty, error)
- func (s *ApiServer) SyncStateWithPeer(context context.Context, request *empty.Empty) (*empty.Empty, error)
- func (s *ApiServer) ValidateAck(context context.Context, request *rpc.ValidateAckRequest) (*rpc.BoolValue, error)
- type InternalApiServer
- func (s *InternalApiServer) CooperativeWithdrawNonBlocking(context context.Context, request *rpc.DepositOrWithdrawRequest) (*rpc.DepositOrWithdrawJob, error)
- func (s *InternalApiServer) DepositNonBlocking(context context.Context, request *rpc.DepositOrWithdrawRequest) (*rpc.DepositOrWithdrawJob, error)
- func (s *InternalApiServer) InstantiateTrustedPaymentChannel(context context.Context, request *rpc.TokenInfo) (*rpc.ChannelID, error)
- func (s *InternalApiServer) OpenTrustedPaymentChannel(context context.Context, request *rpc.OpenPaymentChannelRequest) (*rpc.ChannelID, error)
- func (s *InternalApiServer) Start()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCallbackImpl ¶
func NewCallbackImpl() *callbackImpl
func PayStatusName ¶
Types ¶
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
func NewApiServer ¶
func (*ApiServer) ApplyActionForAppSession ¶
func (*ApiServer) ConfirmOnChainResolvedPayments ¶
func (*ApiServer) ConfirmOutgoingPayment ¶
func (*ApiServer) ConfirmSettlePaymentChannel ¶
func (*ApiServer) ConfirmWithdraw ¶
func (*ApiServer) CooperativeWithdraw ¶
func (s *ApiServer) CooperativeWithdraw( context context.Context, request *rpc.DepositOrWithdrawRequest) (*rpc.DepositOrWithdrawJob, error)
func (*ApiServer) CreateAppSessionOnDeployedContract ¶
func (*ApiServer) CreateAppSessionOnVirtualContract ¶
func (*ApiServer) DeleteAppSession ¶
func (*ApiServer) Deposit ¶
func (s *ApiServer) Deposit( context context.Context, request *rpc.DepositOrWithdrawRequest) (*rpc.DepositOrWithdrawJob, error)
func (*ApiServer) FinalizeOnActionTimeoutForAppSession ¶
func (*ApiServer) GetActionDeadlineForAppSession ¶
func (*ApiServer) GetBalance ¶
func (*ApiServer) GetBlockNumber ¶
func (*ApiServer) GetBooleanOutcomeForAppSession ¶
func (s *ApiServer) GetBooleanOutcomeForAppSession( context context.Context, request *rpc.GetBooleanOutcomeForAppSessionRequest) (*rpc.BooleanOutcome, error)
func (*ApiServer) GetDeployedAddressForAppSession ¶
func (*ApiServer) GetIncomingPaymentStatus ¶
func (*ApiServer) GetOnChainPaymentInfo ¶
func (*ApiServer) GetOutgoingPaymentStatus ¶
func (*ApiServer) GetPayHistory ¶
func (s *ApiServer) GetPayHistory( context context.Context, request *rpc.GetPayHistoryRequest) (*rpc.GetPayHistoryResponse, error)
GetPayHistory returns paginated pay history. This method is **NOT IDEMPOTENT**.
func (*ApiServer) GetPeerFreeBalance ¶
func (s *ApiServer) GetPeerFreeBalance( context context.Context, request *rpc.GetPeerFreeBalanceRequest) (*rpc.FreeBalance, error)
func (*ApiServer) GetSeqNumForAppSession ¶
func (*ApiServer) GetSettleFinalizedTimeForAppSession ¶
func (*ApiServer) GetSettleFinalizedTimeForPaymentChannel ¶
func (*ApiServer) GetStateForAppSession ¶
func (s *ApiServer) GetStateForAppSession( context context.Context, request *rpc.GetStateForAppSessionRequest) (*rpc.AppSessionState, error)
func (*ApiServer) GetStatusForAppSession ¶
func (*ApiServer) IntendSettlePaymentChannel ¶
func (*ApiServer) IntendWithdraw ¶
func (*ApiServer) MonitorCooperativeWithdrawJob ¶
func (s *ApiServer) MonitorCooperativeWithdrawJob( context context.Context, request *rpc.DepositOrWithdrawJob) (*rpc.DepositOrWithdrawJob, error)
func (*ApiServer) MonitorDepositJob ¶
func (s *ApiServer) MonitorDepositJob( context context.Context, request *rpc.DepositOrWithdrawJob) (*rpc.DepositOrWithdrawJob, error)
func (*ApiServer) OpenPaymentChannel ¶
func (*ApiServer) ProcessReceivedState ¶
func (s *ApiServer) ProcessReceivedState( context context.Context, request *rpc.ProcessReceivedStateRequest) (*rpc.ProcessReceivedStateResponse, error)
func (*ApiServer) RejectIncomingPayment ¶
func (*ApiServer) ResolveIncomingPaymentOnChain ¶
func (*ApiServer) SendConditionalPayment ¶
func (*ApiServer) SetDelegation ¶
func (*ApiServer) SetMsgDropper ¶
func (*ApiServer) SettleAppSession ¶
func (*ApiServer) SettleAppSessionByInvalidState ¶
func (*ApiServer) SettleAppSessionByInvalidTurn ¶
func (*ApiServer) SettleAppSessionByMoveTimeout ¶
func (*ApiServer) SettleAppSessionBySigTimeout ¶
func (*ApiServer) SettleExpiredPayments ¶
func (*ApiServer) SettleOnChainResolvedIncomingPayment ¶
func (*ApiServer) SignOutgoingState ¶
func (s *ApiServer) SignOutgoingState( context context.Context, request *rpc.SignOutgoingStateRequest) (*rpc.SignedState, error)
func (*ApiServer) SubscribeAppSessionDispute ¶
func (*ApiServer) SubscribeIncomingPayments ¶
func (*ApiServer) SubscribeOutgoingPayments ¶
func (*ApiServer) SyncOnChainPaymentChannelStatus ¶
func (*ApiServer) SyncStateWithPeer ¶
func (*ApiServer) ValidateAck ¶
type InternalApiServer ¶
type InternalApiServer struct {
*ApiServer
}
func NewInternalApiServer ¶
func (*InternalApiServer) CooperativeWithdrawNonBlocking ¶
func (s *InternalApiServer) CooperativeWithdrawNonBlocking( context context.Context, request *rpc.DepositOrWithdrawRequest) (*rpc.DepositOrWithdrawJob, error)
func (*InternalApiServer) DepositNonBlocking ¶
func (s *InternalApiServer) DepositNonBlocking( context context.Context, request *rpc.DepositOrWithdrawRequest) (*rpc.DepositOrWithdrawJob, error)
func (*InternalApiServer) InstantiateTrustedPaymentChannel ¶
func (*InternalApiServer) OpenTrustedPaymentChannel ¶
func (s *InternalApiServer) OpenTrustedPaymentChannel( context context.Context, request *rpc.OpenPaymentChannelRequest) (*rpc.ChannelID, error)
func (*InternalApiServer) Start ¶
func (s *InternalApiServer) Start()
Click to show internal directories.
Click to hide internal directories.