Documentation
¶
Index ¶
- func RegisterChannelsServer(s *grpc.Server, srv ChannelsServer)
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetAddress() *PublicKey
- func (m *Account) GetBalance() int64
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) String() string
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type ChannelClosed
- func (*ChannelClosed) Descriptor() ([]byte, []int)
- func (m *ChannelClosed) GetState() *SignedChannelState
- func (*ChannelClosed) ProtoMessage()
- func (m *ChannelClosed) Reset()
- func (m *ChannelClosed) String() string
- func (m *ChannelClosed) XXX_DiscardUnknown()
- func (m *ChannelClosed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelClosed) XXX_Merge(src proto.Message)
- func (m *ChannelClosed) XXX_Size() int
- func (m *ChannelClosed) XXX_Unmarshal(b []byte) error
- type ChannelCommit
- func (*ChannelCommit) Descriptor() ([]byte, []int)
- func (m *ChannelCommit) GetAmount() int64
- func (m *ChannelCommit) GetPayer() *PublicKey
- func (m *ChannelCommit) GetPayerId() int64
- func (m *ChannelCommit) GetRecipient() *PublicKey
- func (*ChannelCommit) ProtoMessage()
- func (m *ChannelCommit) Reset()
- func (m *ChannelCommit) String() string
- func (m *ChannelCommit) XXX_DiscardUnknown()
- func (m *ChannelCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelCommit) XXX_Merge(src proto.Message)
- func (m *ChannelCommit) XXX_Size() int
- func (m *ChannelCommit) XXX_Unmarshal(b []byte) error
- type ChannelID
- func (*ChannelID) Descriptor() ([]byte, []int)
- func (m *ChannelID) GetId() int64
- func (*ChannelID) ProtoMessage()
- func (m *ChannelID) Reset()
- func (m *ChannelID) String() string
- func (m *ChannelID) XXX_DiscardUnknown()
- func (m *ChannelID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelID) XXX_Merge(src proto.Message)
- func (m *ChannelID) XXX_Size() int
- func (m *ChannelID) XXX_Unmarshal(b []byte) error
- type ChannelInfo
- func (*ChannelInfo) Descriptor() ([]byte, []int)
- func (m *ChannelInfo) GetCloseSequence() int64
- func (m *ChannelInfo) GetFromAccount() *Account
- func (m *ChannelInfo) GetId() *ChannelID
- func (m *ChannelInfo) GetToAccount() *Account
- func (*ChannelInfo) ProtoMessage()
- func (m *ChannelInfo) Reset()
- func (m *ChannelInfo) String() string
- func (m *ChannelInfo) XXX_DiscardUnknown()
- func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelInfo) XXX_Merge(src proto.Message)
- func (m *ChannelInfo) XXX_Size() int
- func (m *ChannelInfo) XXX_Unmarshal(b []byte) error
- type ChannelState
- func (*ChannelState) Descriptor() ([]byte, []int)
- func (m *ChannelState) GetFrom() *Account
- func (m *ChannelState) GetId() *ChannelID
- func (m *ChannelState) GetSequence() int64
- func (m *ChannelState) GetTo() *Account
- func (*ChannelState) ProtoMessage()
- func (m *ChannelState) Reset()
- func (m *ChannelState) String() string
- func (m *ChannelState) XXX_DiscardUnknown()
- func (m *ChannelState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChannelState) XXX_Merge(src proto.Message)
- func (m *ChannelState) XXX_Size() int
- func (m *ChannelState) XXX_Unmarshal(b []byte) error
- type ChannelsClient
- type ChannelsServer
- type ClosedChannelCursor
- func (*ClosedChannelCursor) Descriptor() ([]byte, []int)
- func (m *ClosedChannelCursor) GetCloseSequence() int64
- func (m *ClosedChannelCursor) GetPayer() *PublicKey
- func (*ClosedChannelCursor) ProtoMessage()
- func (m *ClosedChannelCursor) Reset()
- func (m *ClosedChannelCursor) String() string
- func (m *ClosedChannelCursor) XXX_DiscardUnknown()
- func (m *ClosedChannelCursor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClosedChannelCursor) XXX_Merge(src proto.Message)
- func (m *ClosedChannelCursor) XXX_Size() int
- func (m *ClosedChannelCursor) XXX_Unmarshal(b []byte) error
- type CreateAccountResult
- func (*CreateAccountResult) Descriptor() ([]byte, []int)
- func (m *CreateAccountResult) GetAccount() *Account
- func (*CreateAccountResult) ProtoMessage()
- func (m *CreateAccountResult) Reset()
- func (m *CreateAccountResult) String() string
- func (m *CreateAccountResult) XXX_DiscardUnknown()
- func (m *CreateAccountResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateAccountResult) XXX_Merge(src proto.Message)
- func (m *CreateAccountResult) XXX_Size() int
- func (m *CreateAccountResult) XXX_Unmarshal(b []byte) error
- type Null
- func (*Null) Descriptor() ([]byte, []int)
- func (*Null) ProtoMessage()
- func (m *Null) Reset()
- func (m *Null) String() string
- func (m *Null) XXX_DiscardUnknown()
- func (m *Null) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Null) XXX_Merge(src proto.Message)
- func (m *Null) XXX_Size() int
- func (m *Null) XXX_Unmarshal(b []byte) error
- type PublicKey
- func (*PublicKey) Descriptor() ([]byte, []int)
- func (m *PublicKey) GetKey() []byte
- func (*PublicKey) ProtoMessage()
- func (m *PublicKey) Reset()
- func (m *PublicKey) String() string
- func (m *PublicKey) XXX_DiscardUnknown()
- func (m *PublicKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PublicKey) XXX_Merge(src proto.Message)
- func (m *PublicKey) XXX_Size() int
- func (m *PublicKey) XXX_Unmarshal(b []byte) error
- type SignedChannelCommit
- func (*SignedChannelCommit) Descriptor() ([]byte, []int)
- func (m *SignedChannelCommit) GetChannel() *ChannelCommit
- func (m *SignedChannelCommit) GetSignature() []byte
- func (*SignedChannelCommit) ProtoMessage()
- func (m *SignedChannelCommit) Reset()
- func (m *SignedChannelCommit) String() string
- func (m *SignedChannelCommit) XXX_DiscardUnknown()
- func (m *SignedChannelCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedChannelCommit) XXX_Merge(src proto.Message)
- func (m *SignedChannelCommit) XXX_Size() int
- func (m *SignedChannelCommit) XXX_Unmarshal(b []byte) error
- type SignedChannelState
- func (*SignedChannelState) Descriptor() ([]byte, []int)
- func (m *SignedChannelState) GetChannel() *ChannelState
- func (m *SignedChannelState) GetFromSignature() []byte
- func (m *SignedChannelState) GetToSignature() []byte
- func (*SignedChannelState) ProtoMessage()
- func (m *SignedChannelState) Reset()
- func (m *SignedChannelState) String() string
- func (m *SignedChannelState) XXX_DiscardUnknown()
- func (m *SignedChannelState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedChannelState) XXX_Merge(src proto.Message)
- func (m *SignedChannelState) XXX_Size() int
- func (m *SignedChannelState) XXX_Unmarshal(b []byte) error
- type SignedPublicKeyPair
- func (*SignedPublicKeyPair) Descriptor() ([]byte, []int)
- func (m *SignedPublicKeyPair) GetNewKey() *PublicKey
- func (m *SignedPublicKeyPair) GetNewSignature() []byte
- func (m *SignedPublicKeyPair) GetOldKey() *PublicKey
- func (m *SignedPublicKeyPair) GetOldSignature() []byte
- func (*SignedPublicKeyPair) ProtoMessage()
- func (m *SignedPublicKeyPair) Reset()
- func (m *SignedPublicKeyPair) String() string
- func (m *SignedPublicKeyPair) XXX_DiscardUnknown()
- func (m *SignedPublicKeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SignedPublicKeyPair) XXX_Merge(src proto.Message)
- func (m *SignedPublicKeyPair) XXX_Size() int
- func (m *SignedPublicKeyPair) XXX_Unmarshal(b []byte) error
- type UnimplementedChannelsServer
- func (*UnimplementedChannelsServer) CloseChannel(ctx context.Context, req *SignedChannelState) (*ChannelClosed, error)
- func (*UnimplementedChannelsServer) CreateAccount(ctx context.Context, req *PublicKey) (*CreateAccountResult, error)
- func (*UnimplementedChannelsServer) CreateChannel(ctx context.Context, req *SignedChannelCommit) (*ChannelID, error)
- func (*UnimplementedChannelsServer) GetChannelInfo(ctx context.Context, req *ChannelID) (*ChannelInfo, error)
- func (*UnimplementedChannelsServer) GetNextClosedChannel(ctx context.Context, req *ClosedChannelCursor) (*ChannelInfo, error)
- func (*UnimplementedChannelsServer) UpdateAccountPubKey(ctx context.Context, req *SignedPublicKeyPair) (*Null, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterChannelsServer ¶
func RegisterChannelsServer(s *grpc.Server, srv ChannelsServer)
Types ¶
type Account ¶
type Account struct { Address *PublicKey `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Current available balance Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Account) Descriptor ¶
func (*Account) GetAddress ¶
func (*Account) GetBalance ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type ChannelClosed ¶
type ChannelClosed struct { State *SignedChannelState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelClosed) Descriptor ¶
func (*ChannelClosed) Descriptor() ([]byte, []int)
func (*ChannelClosed) GetState ¶
func (m *ChannelClosed) GetState() *SignedChannelState
func (*ChannelClosed) ProtoMessage ¶
func (*ChannelClosed) ProtoMessage()
func (*ChannelClosed) Reset ¶
func (m *ChannelClosed) Reset()
func (*ChannelClosed) String ¶
func (m *ChannelClosed) String() string
func (*ChannelClosed) XXX_DiscardUnknown ¶
func (m *ChannelClosed) XXX_DiscardUnknown()
func (*ChannelClosed) XXX_Marshal ¶
func (m *ChannelClosed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelClosed) XXX_Merge ¶
func (m *ChannelClosed) XXX_Merge(src proto.Message)
func (*ChannelClosed) XXX_Size ¶
func (m *ChannelClosed) XXX_Size() int
func (*ChannelClosed) XXX_Unmarshal ¶
func (m *ChannelClosed) XXX_Unmarshal(b []byte) error
type ChannelCommit ¶
type ChannelCommit struct { Payer *PublicKey `protobuf:"bytes,1,opt,name=payer,proto3" json:"payer,omitempty"` Recipient *PublicKey `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` PayerId int64 `protobuf:"varint,4,opt,name=payer_id,json=payerId,proto3" json:"payer_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelCommit) Descriptor ¶
func (*ChannelCommit) Descriptor() ([]byte, []int)
func (*ChannelCommit) GetAmount ¶
func (m *ChannelCommit) GetAmount() int64
func (*ChannelCommit) GetPayer ¶
func (m *ChannelCommit) GetPayer() *PublicKey
func (*ChannelCommit) GetPayerId ¶
func (m *ChannelCommit) GetPayerId() int64
func (*ChannelCommit) GetRecipient ¶
func (m *ChannelCommit) GetRecipient() *PublicKey
func (*ChannelCommit) ProtoMessage ¶
func (*ChannelCommit) ProtoMessage()
func (*ChannelCommit) Reset ¶
func (m *ChannelCommit) Reset()
func (*ChannelCommit) String ¶
func (m *ChannelCommit) String() string
func (*ChannelCommit) XXX_DiscardUnknown ¶
func (m *ChannelCommit) XXX_DiscardUnknown()
func (*ChannelCommit) XXX_Marshal ¶
func (m *ChannelCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelCommit) XXX_Merge ¶
func (m *ChannelCommit) XXX_Merge(src proto.Message)
func (*ChannelCommit) XXX_Size ¶
func (m *ChannelCommit) XXX_Size() int
func (*ChannelCommit) XXX_Unmarshal ¶
func (m *ChannelCommit) XXX_Unmarshal(b []byte) error
type ChannelID ¶
type ChannelID struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelID) Descriptor ¶
func (*ChannelID) ProtoMessage ¶
func (*ChannelID) ProtoMessage()
func (*ChannelID) XXX_DiscardUnknown ¶
func (m *ChannelID) XXX_DiscardUnknown()
func (*ChannelID) XXX_Marshal ¶
func (*ChannelID) XXX_Unmarshal ¶
type ChannelInfo ¶
type ChannelInfo struct { Id *ChannelID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FromAccount *Account `protobuf:"bytes,2,opt,name=from_account,json=fromAccount,proto3" json:"from_account,omitempty"` ToAccount *Account `protobuf:"bytes,3,opt,name=to_account,json=toAccount,proto3" json:"to_account,omitempty"` CloseSequence int64 `protobuf:"varint,4,opt,name=close_sequence,json=closeSequence,proto3" json:"close_sequence,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelInfo) Descriptor ¶
func (*ChannelInfo) Descriptor() ([]byte, []int)
func (*ChannelInfo) GetCloseSequence ¶
func (m *ChannelInfo) GetCloseSequence() int64
func (*ChannelInfo) GetFromAccount ¶
func (m *ChannelInfo) GetFromAccount() *Account
func (*ChannelInfo) GetId ¶
func (m *ChannelInfo) GetId() *ChannelID
func (*ChannelInfo) GetToAccount ¶
func (m *ChannelInfo) GetToAccount() *Account
func (*ChannelInfo) ProtoMessage ¶
func (*ChannelInfo) ProtoMessage()
func (*ChannelInfo) Reset ¶
func (m *ChannelInfo) Reset()
func (*ChannelInfo) String ¶
func (m *ChannelInfo) String() string
func (*ChannelInfo) XXX_DiscardUnknown ¶
func (m *ChannelInfo) XXX_DiscardUnknown()
func (*ChannelInfo) XXX_Marshal ¶
func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelInfo) XXX_Merge ¶
func (m *ChannelInfo) XXX_Merge(src proto.Message)
func (*ChannelInfo) XXX_Size ¶
func (m *ChannelInfo) XXX_Size() int
func (*ChannelInfo) XXX_Unmarshal ¶
func (m *ChannelInfo) XXX_Unmarshal(b []byte) error
type ChannelState ¶
type ChannelState struct { Id *ChannelID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Sequence int64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` From *Account `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` To *Account `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChannelState) Descriptor ¶
func (*ChannelState) Descriptor() ([]byte, []int)
func (*ChannelState) GetFrom ¶
func (m *ChannelState) GetFrom() *Account
func (*ChannelState) GetId ¶
func (m *ChannelState) GetId() *ChannelID
func (*ChannelState) GetSequence ¶
func (m *ChannelState) GetSequence() int64
func (*ChannelState) GetTo ¶
func (m *ChannelState) GetTo() *Account
func (*ChannelState) ProtoMessage ¶
func (*ChannelState) ProtoMessage()
func (*ChannelState) Reset ¶
func (m *ChannelState) Reset()
func (*ChannelState) String ¶
func (m *ChannelState) String() string
func (*ChannelState) XXX_DiscardUnknown ¶
func (m *ChannelState) XXX_DiscardUnknown()
func (*ChannelState) XXX_Marshal ¶
func (m *ChannelState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChannelState) XXX_Merge ¶
func (m *ChannelState) XXX_Merge(src proto.Message)
func (*ChannelState) XXX_Size ¶
func (m *ChannelState) XXX_Size() int
func (*ChannelState) XXX_Unmarshal ¶
func (m *ChannelState) XXX_Unmarshal(b []byte) error
type ChannelsClient ¶
type ChannelsClient interface { // Creates a channel on the ledger and returns the ID of the ledger CreateChannel(ctx context.Context, in *SignedChannelCommit, opts ...grpc.CallOption) (*ChannelID, error) // Retrieves the state of a channel on the ledger. GetChannelInfo(ctx context.Context, in *ChannelID, opts ...grpc.CallOption) (*ChannelInfo, error) // Closes a channel on the ledger. CloseChannel(ctx context.Context, in *SignedChannelState, opts ...grpc.CallOption) (*ChannelClosed, error) // Retrieves the state of the next closed channel with the given payer // returns OUT_OF_RANGE status if there are no more closed channels GetNextClosedChannel(ctx context.Context, in *ClosedChannelCursor, opts ...grpc.CallOption) (*ChannelInfo, error) // Create an account and return CreateAccount(ctx context.Context, in *PublicKey, opts ...grpc.CallOption) (*CreateAccountResult, error) // Update an account pub key (BIP 44 compatible) UpdateAccountPubKey(ctx context.Context, in *SignedPublicKeyPair, opts ...grpc.CallOption) (*Null, error) }
ChannelsClient is the client API for Channels service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewChannelsClient ¶
func NewChannelsClient(cc *grpc.ClientConn) ChannelsClient
type ChannelsServer ¶
type ChannelsServer interface { // Creates a channel on the ledger and returns the ID of the ledger CreateChannel(context.Context, *SignedChannelCommit) (*ChannelID, error) // Retrieves the state of a channel on the ledger. GetChannelInfo(context.Context, *ChannelID) (*ChannelInfo, error) // Closes a channel on the ledger. CloseChannel(context.Context, *SignedChannelState) (*ChannelClosed, error) // Retrieves the state of the next closed channel with the given payer // returns OUT_OF_RANGE status if there are no more closed channels GetNextClosedChannel(context.Context, *ClosedChannelCursor) (*ChannelInfo, error) // Create an account and return CreateAccount(context.Context, *PublicKey) (*CreateAccountResult, error) // Update an account pub key (BIP 44 compatible) UpdateAccountPubKey(context.Context, *SignedPublicKeyPair) (*Null, error) }
ChannelsServer is the server API for Channels service.
type ClosedChannelCursor ¶
type ClosedChannelCursor struct { Payer *PublicKey `protobuf:"bytes,1,opt,name=payer,proto3" json:"payer,omitempty"` CloseSequence int64 `protobuf:"varint,2,opt,name=close_sequence,json=closeSequence,proto3" json:"close_sequence,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClosedChannelCursor) Descriptor ¶
func (*ClosedChannelCursor) Descriptor() ([]byte, []int)
func (*ClosedChannelCursor) GetCloseSequence ¶
func (m *ClosedChannelCursor) GetCloseSequence() int64
func (*ClosedChannelCursor) GetPayer ¶
func (m *ClosedChannelCursor) GetPayer() *PublicKey
func (*ClosedChannelCursor) ProtoMessage ¶
func (*ClosedChannelCursor) ProtoMessage()
func (*ClosedChannelCursor) Reset ¶
func (m *ClosedChannelCursor) Reset()
func (*ClosedChannelCursor) String ¶
func (m *ClosedChannelCursor) String() string
func (*ClosedChannelCursor) XXX_DiscardUnknown ¶
func (m *ClosedChannelCursor) XXX_DiscardUnknown()
func (*ClosedChannelCursor) XXX_Marshal ¶
func (m *ClosedChannelCursor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClosedChannelCursor) XXX_Merge ¶
func (m *ClosedChannelCursor) XXX_Merge(src proto.Message)
func (*ClosedChannelCursor) XXX_Size ¶
func (m *ClosedChannelCursor) XXX_Size() int
func (*ClosedChannelCursor) XXX_Unmarshal ¶
func (m *ClosedChannelCursor) XXX_Unmarshal(b []byte) error
type CreateAccountResult ¶
type CreateAccountResult struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateAccountResult) Descriptor ¶
func (*CreateAccountResult) Descriptor() ([]byte, []int)
func (*CreateAccountResult) GetAccount ¶
func (m *CreateAccountResult) GetAccount() *Account
func (*CreateAccountResult) ProtoMessage ¶
func (*CreateAccountResult) ProtoMessage()
func (*CreateAccountResult) Reset ¶
func (m *CreateAccountResult) Reset()
func (*CreateAccountResult) String ¶
func (m *CreateAccountResult) String() string
func (*CreateAccountResult) XXX_DiscardUnknown ¶
func (m *CreateAccountResult) XXX_DiscardUnknown()
func (*CreateAccountResult) XXX_Marshal ¶
func (m *CreateAccountResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateAccountResult) XXX_Merge ¶
func (m *CreateAccountResult) XXX_Merge(src proto.Message)
func (*CreateAccountResult) XXX_Size ¶
func (m *CreateAccountResult) XXX_Size() int
func (*CreateAccountResult) XXX_Unmarshal ¶
func (m *CreateAccountResult) XXX_Unmarshal(b []byte) error
type Null ¶
type Null struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Null) Descriptor ¶
func (*Null) ProtoMessage ¶
func (*Null) ProtoMessage()
func (*Null) XXX_DiscardUnknown ¶
func (m *Null) XXX_DiscardUnknown()
func (*Null) XXX_Unmarshal ¶
type PublicKey ¶
type PublicKey struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PublicKey) Descriptor ¶
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) XXX_DiscardUnknown ¶
func (m *PublicKey) XXX_DiscardUnknown()
func (*PublicKey) XXX_Marshal ¶
func (*PublicKey) XXX_Unmarshal ¶
type SignedChannelCommit ¶
type SignedChannelCommit struct { Channel *ChannelCommit `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedChannelCommit) Descriptor ¶
func (*SignedChannelCommit) Descriptor() ([]byte, []int)
func (*SignedChannelCommit) GetChannel ¶
func (m *SignedChannelCommit) GetChannel() *ChannelCommit
func (*SignedChannelCommit) GetSignature ¶
func (m *SignedChannelCommit) GetSignature() []byte
func (*SignedChannelCommit) ProtoMessage ¶
func (*SignedChannelCommit) ProtoMessage()
func (*SignedChannelCommit) Reset ¶
func (m *SignedChannelCommit) Reset()
func (*SignedChannelCommit) String ¶
func (m *SignedChannelCommit) String() string
func (*SignedChannelCommit) XXX_DiscardUnknown ¶
func (m *SignedChannelCommit) XXX_DiscardUnknown()
func (*SignedChannelCommit) XXX_Marshal ¶
func (m *SignedChannelCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedChannelCommit) XXX_Merge ¶
func (m *SignedChannelCommit) XXX_Merge(src proto.Message)
func (*SignedChannelCommit) XXX_Size ¶
func (m *SignedChannelCommit) XXX_Size() int
func (*SignedChannelCommit) XXX_Unmarshal ¶
func (m *SignedChannelCommit) XXX_Unmarshal(b []byte) error
type SignedChannelState ¶
type SignedChannelState struct { Channel *ChannelState `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` FromSignature []byte `protobuf:"bytes,2,opt,name=from_signature,json=fromSignature,proto3" json:"from_signature,omitempty"` ToSignature []byte `protobuf:"bytes,3,opt,name=to_signature,json=toSignature,proto3" json:"to_signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedChannelState) Descriptor ¶
func (*SignedChannelState) Descriptor() ([]byte, []int)
func (*SignedChannelState) GetChannel ¶
func (m *SignedChannelState) GetChannel() *ChannelState
func (*SignedChannelState) GetFromSignature ¶
func (m *SignedChannelState) GetFromSignature() []byte
func (*SignedChannelState) GetToSignature ¶
func (m *SignedChannelState) GetToSignature() []byte
func (*SignedChannelState) ProtoMessage ¶
func (*SignedChannelState) ProtoMessage()
func (*SignedChannelState) Reset ¶
func (m *SignedChannelState) Reset()
func (*SignedChannelState) String ¶
func (m *SignedChannelState) String() string
func (*SignedChannelState) XXX_DiscardUnknown ¶
func (m *SignedChannelState) XXX_DiscardUnknown()
func (*SignedChannelState) XXX_Marshal ¶
func (m *SignedChannelState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedChannelState) XXX_Merge ¶
func (m *SignedChannelState) XXX_Merge(src proto.Message)
func (*SignedChannelState) XXX_Size ¶
func (m *SignedChannelState) XXX_Size() int
func (*SignedChannelState) XXX_Unmarshal ¶
func (m *SignedChannelState) XXX_Unmarshal(b []byte) error
type SignedPublicKeyPair ¶
type SignedPublicKeyPair struct { OldKey *PublicKey `protobuf:"bytes,1,opt,name=old_key,json=oldKey,proto3" json:"old_key,omitempty"` NewKey *PublicKey `protobuf:"bytes,2,opt,name=new_key,json=newKey,proto3" json:"new_key,omitempty"` OldSignature []byte `protobuf:"bytes,3,opt,name=old_signature,json=oldSignature,proto3" json:"old_signature,omitempty"` NewSignature []byte `protobuf:"bytes,4,opt,name=new_signature,json=newSignature,proto3" json:"new_signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SignedPublicKeyPair) Descriptor ¶
func (*SignedPublicKeyPair) Descriptor() ([]byte, []int)
func (*SignedPublicKeyPair) GetNewKey ¶
func (m *SignedPublicKeyPair) GetNewKey() *PublicKey
func (*SignedPublicKeyPair) GetNewSignature ¶
func (m *SignedPublicKeyPair) GetNewSignature() []byte
func (*SignedPublicKeyPair) GetOldKey ¶
func (m *SignedPublicKeyPair) GetOldKey() *PublicKey
func (*SignedPublicKeyPair) GetOldSignature ¶
func (m *SignedPublicKeyPair) GetOldSignature() []byte
func (*SignedPublicKeyPair) ProtoMessage ¶
func (*SignedPublicKeyPair) ProtoMessage()
func (*SignedPublicKeyPair) Reset ¶
func (m *SignedPublicKeyPair) Reset()
func (*SignedPublicKeyPair) String ¶
func (m *SignedPublicKeyPair) String() string
func (*SignedPublicKeyPair) XXX_DiscardUnknown ¶
func (m *SignedPublicKeyPair) XXX_DiscardUnknown()
func (*SignedPublicKeyPair) XXX_Marshal ¶
func (m *SignedPublicKeyPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SignedPublicKeyPair) XXX_Merge ¶
func (m *SignedPublicKeyPair) XXX_Merge(src proto.Message)
func (*SignedPublicKeyPair) XXX_Size ¶
func (m *SignedPublicKeyPair) XXX_Size() int
func (*SignedPublicKeyPair) XXX_Unmarshal ¶
func (m *SignedPublicKeyPair) XXX_Unmarshal(b []byte) error
type UnimplementedChannelsServer ¶
type UnimplementedChannelsServer struct { }
UnimplementedChannelsServer can be embedded to have forward compatible implementations.
func (*UnimplementedChannelsServer) CloseChannel ¶
func (*UnimplementedChannelsServer) CloseChannel(ctx context.Context, req *SignedChannelState) (*ChannelClosed, error)
func (*UnimplementedChannelsServer) CreateAccount ¶
func (*UnimplementedChannelsServer) CreateAccount(ctx context.Context, req *PublicKey) (*CreateAccountResult, error)
func (*UnimplementedChannelsServer) CreateChannel ¶
func (*UnimplementedChannelsServer) CreateChannel(ctx context.Context, req *SignedChannelCommit) (*ChannelID, error)
func (*UnimplementedChannelsServer) GetChannelInfo ¶
func (*UnimplementedChannelsServer) GetChannelInfo(ctx context.Context, req *ChannelID) (*ChannelInfo, error)
func (*UnimplementedChannelsServer) GetNextClosedChannel ¶
func (*UnimplementedChannelsServer) GetNextClosedChannel(ctx context.Context, req *ClosedChannelCursor) (*ChannelInfo, error)
func (*UnimplementedChannelsServer) UpdateAccountPubKey ¶
func (*UnimplementedChannelsServer) UpdateAccountPubKey(ctx context.Context, req *SignedPublicKeyPair) (*Null, error)
Click to show internal directories.
Click to hide internal directories.