Documentation ¶
Index ¶
- func RegisterCardServer(s *grpc.Server, srv CardServer)
- func RegisterDASCardServer(s *grpc.Server, srv DASCardServer)
- type CardClient
- type CardRequest
- func (*CardRequest) Descriptor() ([]byte, []int)
- func (m *CardRequest) GetCardId() string
- func (*CardRequest) ProtoMessage()
- func (m *CardRequest) Reset()
- func (m *CardRequest) String() string
- func (m *CardRequest) XXX_DiscardUnknown()
- func (m *CardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CardRequest) XXX_Merge(src proto.Message)
- func (m *CardRequest) XXX_Size() int
- func (m *CardRequest) XXX_Unmarshal(b []byte) error
- type CardResponse
- func (*CardResponse) Descriptor() ([]byte, []int)
- func (m *CardResponse) GetBasePaymentMacaroon() []byte
- func (*CardResponse) ProtoMessage()
- func (m *CardResponse) Reset()
- func (m *CardResponse) String() string
- func (m *CardResponse) XXX_DiscardUnknown()
- func (m *CardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CardResponse) XXX_Merge(src proto.Message)
- func (m *CardResponse) XXX_Size() int
- func (m *CardResponse) XXX_Unmarshal(b []byte) error
- type CardServer
- type DASCardClient
- type DASCardRequest
- func (*DASCardRequest) Descriptor() ([]byte, []int)
- func (m *DASCardRequest) GetCardId() string
- func (m *DASCardRequest) GetHost() string
- func (m *DASCardRequest) GetPort() string
- func (*DASCardRequest) ProtoMessage()
- func (m *DASCardRequest) Reset()
- func (m *DASCardRequest) String() string
- func (m *DASCardRequest) XXX_DiscardUnknown()
- func (m *DASCardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DASCardRequest) XXX_Merge(src proto.Message)
- func (m *DASCardRequest) XXX_Size() int
- func (m *DASCardRequest) XXX_Unmarshal(b []byte) error
- type DASCardResponse
- func (*DASCardResponse) Descriptor() ([]byte, []int)
- func (m *DASCardResponse) GetPubDASCardKey() []byte
- func (*DASCardResponse) ProtoMessage()
- func (m *DASCardResponse) Reset()
- func (m *DASCardResponse) String() string
- func (m *DASCardResponse) XXX_DiscardUnknown()
- func (m *DASCardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DASCardResponse) XXX_Merge(src proto.Message)
- func (m *DASCardResponse) XXX_Size() int
- func (m *DASCardResponse) XXX_Unmarshal(b []byte) error
- type DASCardServer
- type UnimplementedCardServer
- type UnimplementedDASCardServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCardServer ¶
func RegisterCardServer(s *grpc.Server, srv CardServer)
func RegisterDASCardServer ¶
func RegisterDASCardServer(s *grpc.Server, srv DASCardServer)
Types ¶
type CardClient ¶
type CardClient interface {
Add(ctx context.Context, in *CardRequest, opts ...grpc.CallOption) (*CardResponse, error)
}
CardClient is the client API for Card service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCardClient ¶
func NewCardClient(cc *grpc.ClientConn) CardClient
type CardRequest ¶
type CardRequest struct { CardId string `protobuf:"bytes,1,opt,name=cardId,proto3" json:"cardId,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CardRequest) Descriptor ¶
func (*CardRequest) Descriptor() ([]byte, []int)
func (*CardRequest) GetCardId ¶
func (m *CardRequest) GetCardId() string
func (*CardRequest) ProtoMessage ¶
func (*CardRequest) ProtoMessage()
func (*CardRequest) Reset ¶
func (m *CardRequest) Reset()
func (*CardRequest) String ¶
func (m *CardRequest) String() string
func (*CardRequest) XXX_DiscardUnknown ¶
func (m *CardRequest) XXX_DiscardUnknown()
func (*CardRequest) XXX_Marshal ¶
func (m *CardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CardRequest) XXX_Merge ¶
func (m *CardRequest) XXX_Merge(src proto.Message)
func (*CardRequest) XXX_Size ¶
func (m *CardRequest) XXX_Size() int
func (*CardRequest) XXX_Unmarshal ¶
func (m *CardRequest) XXX_Unmarshal(b []byte) error
type CardResponse ¶
type CardResponse struct { BasePaymentMacaroon []byte `protobuf:"bytes,1,opt,name=basePaymentMacaroon,proto3" json:"basePaymentMacaroon,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CardResponse) Descriptor ¶
func (*CardResponse) Descriptor() ([]byte, []int)
func (*CardResponse) GetBasePaymentMacaroon ¶
func (m *CardResponse) GetBasePaymentMacaroon() []byte
func (*CardResponse) ProtoMessage ¶
func (*CardResponse) ProtoMessage()
func (*CardResponse) Reset ¶
func (m *CardResponse) Reset()
func (*CardResponse) String ¶
func (m *CardResponse) String() string
func (*CardResponse) XXX_DiscardUnknown ¶
func (m *CardResponse) XXX_DiscardUnknown()
func (*CardResponse) XXX_Marshal ¶
func (m *CardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CardResponse) XXX_Merge ¶
func (m *CardResponse) XXX_Merge(src proto.Message)
func (*CardResponse) XXX_Size ¶
func (m *CardResponse) XXX_Size() int
func (*CardResponse) XXX_Unmarshal ¶
func (m *CardResponse) XXX_Unmarshal(b []byte) error
type CardServer ¶
type CardServer interface {
Add(context.Context, *CardRequest) (*CardResponse, error)
}
CardServer is the server API for Card service.
type DASCardClient ¶
type DASCardClient interface {
Add(ctx context.Context, in *DASCardRequest, opts ...grpc.CallOption) (*DASCardResponse, error)
}
DASCardClient is the client API for DASCard service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDASCardClient ¶
func NewDASCardClient(cc *grpc.ClientConn) DASCardClient
type DASCardRequest ¶
type DASCardRequest struct { CardId string `protobuf:"bytes,1,opt,name=cardId,proto3" json:"cardId,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Port string `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DASCardRequest) Descriptor ¶
func (*DASCardRequest) Descriptor() ([]byte, []int)
func (*DASCardRequest) GetCardId ¶
func (m *DASCardRequest) GetCardId() string
func (*DASCardRequest) GetHost ¶
func (m *DASCardRequest) GetHost() string
func (*DASCardRequest) GetPort ¶
func (m *DASCardRequest) GetPort() string
func (*DASCardRequest) ProtoMessage ¶
func (*DASCardRequest) ProtoMessage()
func (*DASCardRequest) Reset ¶
func (m *DASCardRequest) Reset()
func (*DASCardRequest) String ¶
func (m *DASCardRequest) String() string
func (*DASCardRequest) XXX_DiscardUnknown ¶
func (m *DASCardRequest) XXX_DiscardUnknown()
func (*DASCardRequest) XXX_Marshal ¶
func (m *DASCardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DASCardRequest) XXX_Merge ¶
func (m *DASCardRequest) XXX_Merge(src proto.Message)
func (*DASCardRequest) XXX_Size ¶
func (m *DASCardRequest) XXX_Size() int
func (*DASCardRequest) XXX_Unmarshal ¶
func (m *DASCardRequest) XXX_Unmarshal(b []byte) error
type DASCardResponse ¶
type DASCardResponse struct { PubDASCardKey []byte `protobuf:"bytes,1,opt,name=pubDASCardKey,proto3" json:"pubDASCardKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DASCardResponse) Descriptor ¶
func (*DASCardResponse) Descriptor() ([]byte, []int)
func (*DASCardResponse) GetPubDASCardKey ¶
func (m *DASCardResponse) GetPubDASCardKey() []byte
func (*DASCardResponse) ProtoMessage ¶
func (*DASCardResponse) ProtoMessage()
func (*DASCardResponse) Reset ¶
func (m *DASCardResponse) Reset()
func (*DASCardResponse) String ¶
func (m *DASCardResponse) String() string
func (*DASCardResponse) XXX_DiscardUnknown ¶
func (m *DASCardResponse) XXX_DiscardUnknown()
func (*DASCardResponse) XXX_Marshal ¶
func (m *DASCardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DASCardResponse) XXX_Merge ¶
func (m *DASCardResponse) XXX_Merge(src proto.Message)
func (*DASCardResponse) XXX_Size ¶
func (m *DASCardResponse) XXX_Size() int
func (*DASCardResponse) XXX_Unmarshal ¶
func (m *DASCardResponse) XXX_Unmarshal(b []byte) error
type DASCardServer ¶
type DASCardServer interface {
Add(context.Context, *DASCardRequest) (*DASCardResponse, error)
}
DASCardServer is the server API for DASCard service.
type UnimplementedCardServer ¶
type UnimplementedCardServer struct { }
UnimplementedCardServer can be embedded to have forward compatible implementations.
func (*UnimplementedCardServer) Add ¶
func (*UnimplementedCardServer) Add(ctx context.Context, req *CardRequest) (*CardResponse, error)
type UnimplementedDASCardServer ¶
type UnimplementedDASCardServer struct { }
UnimplementedDASCardServer can be embedded to have forward compatible implementations.
func (*UnimplementedDASCardServer) Add ¶
func (*UnimplementedDASCardServer) Add(ctx context.Context, req *DASCardRequest) (*DASCardResponse, error)