Documentation ¶
Index ¶
- Variables
- func RegisterCardsServer(s *grpc.Server, srv CardsServer)
- func RegisterWalletServer(s *grpc.Server, srv WalletServer)
- type AppleRequest
- type AppleResponse
- type Card
- type CardsClient
- type CardsServer
- type GetCardsRequest
- type GetCardsResponse
- type UnimplementedCardsServer
- type UnimplementedWalletServer
- type WalletClient
- type WalletServer
Constants ¶
This section is empty.
Variables ¶
var File_cards_api_proto protoreflect.FileDescriptor
var File_cards_proto protoreflect.FileDescriptor
var File_wallet_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCardsServer ¶
func RegisterCardsServer(s *grpc.Server, srv CardsServer)
func RegisterWalletServer ¶
func RegisterWalletServer(s *grpc.Server, srv WalletServer)
Types ¶
type AppleRequest ¶
type AppleRequest struct { Fpan string `protobuf:"bytes,1,opt,name=fpan,proto3" json:"fpan,omitempty"` // contains filtered or unexported fields }
func (*AppleRequest) Descriptor
deprecated
func (*AppleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AppleRequest.ProtoReflect.Descriptor instead.
func (*AppleRequest) GetFpan ¶
func (x *AppleRequest) GetFpan() string
func (*AppleRequest) ProtoMessage ¶
func (*AppleRequest) ProtoMessage()
func (*AppleRequest) ProtoReflect ¶ added in v0.81.0
func (x *AppleRequest) ProtoReflect() protoreflect.Message
func (*AppleRequest) Reset ¶
func (x *AppleRequest) Reset()
func (*AppleRequest) String ¶
func (x *AppleRequest) String() string
type AppleResponse ¶
type AppleResponse struct { ActivationData string `protobuf:"bytes,1,opt,name=activation_data,json=activationData,proto3" json:"activation_data,omitempty"` // contains filtered or unexported fields }
func (*AppleResponse) Descriptor
deprecated
func (*AppleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AppleResponse.ProtoReflect.Descriptor instead.
func (*AppleResponse) GetActivationData ¶
func (x *AppleResponse) GetActivationData() string
func (*AppleResponse) ProtoMessage ¶
func (*AppleResponse) ProtoMessage()
func (*AppleResponse) ProtoReflect ¶ added in v0.81.0
func (x *AppleResponse) ProtoReflect() protoreflect.Message
func (*AppleResponse) Reset ¶
func (x *AppleResponse) Reset()
func (*AppleResponse) String ¶
func (x *AppleResponse) String() string
type Card ¶
type Card struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Card is a credit or debit card.
func (*Card) Descriptor
deprecated
func (*Card) ProtoMessage ¶
func (*Card) ProtoMessage()
func (*Card) ProtoReflect ¶ added in v0.81.0
func (x *Card) ProtoReflect() protoreflect.Message
type CardsClient ¶
type CardsClient interface {
GetCards(ctx context.Context, in *GetCardsRequest, opts ...grpc.CallOption) (*GetCardsResponse, error)
}
CardsClient is the client API for Cards service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCardsClient ¶
func NewCardsClient(cc grpc.ClientConnInterface) CardsClient
type CardsServer ¶
type CardsServer interface {
GetCards(context.Context, *GetCardsRequest) (*GetCardsResponse, error)
}
CardsServer is the server API for Cards service.
type GetCardsRequest ¶
type GetCardsRequest struct { PersonaId string `protobuf:"bytes,1,opt,name=persona_id,json=personaId,proto3" json:"persona_id,omitempty"` // contains filtered or unexported fields }
func (*GetCardsRequest) Descriptor
deprecated
func (*GetCardsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCardsRequest.ProtoReflect.Descriptor instead.
func (*GetCardsRequest) GetPersonaId ¶
func (x *GetCardsRequest) GetPersonaId() string
func (*GetCardsRequest) ProtoMessage ¶
func (*GetCardsRequest) ProtoMessage()
func (*GetCardsRequest) ProtoReflect ¶ added in v0.81.0
func (x *GetCardsRequest) ProtoReflect() protoreflect.Message
func (*GetCardsRequest) Reset ¶
func (x *GetCardsRequest) Reset()
func (*GetCardsRequest) String ¶
func (x *GetCardsRequest) String() string
type GetCardsResponse ¶
type GetCardsResponse struct { Cards []*Card `protobuf:"bytes,1,rep,name=cards,proto3" json:"cards,omitempty"` // contains filtered or unexported fields }
func (*GetCardsResponse) Descriptor
deprecated
func (*GetCardsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCardsResponse.ProtoReflect.Descriptor instead.
func (*GetCardsResponse) GetCards ¶
func (x *GetCardsResponse) GetCards() []*Card
func (*GetCardsResponse) ProtoMessage ¶
func (*GetCardsResponse) ProtoMessage()
func (*GetCardsResponse) ProtoReflect ¶ added in v0.81.0
func (x *GetCardsResponse) ProtoReflect() protoreflect.Message
func (*GetCardsResponse) Reset ¶
func (x *GetCardsResponse) Reset()
func (*GetCardsResponse) String ¶
func (x *GetCardsResponse) String() string
type UnimplementedCardsServer ¶
type UnimplementedCardsServer struct { }
UnimplementedCardsServer can be embedded to have forward compatible implementations.
func (*UnimplementedCardsServer) GetCards ¶
func (*UnimplementedCardsServer) GetCards(context.Context, *GetCardsRequest) (*GetCardsResponse, error)
type UnimplementedWalletServer ¶
type UnimplementedWalletServer struct { }
UnimplementedWalletServer can be embedded to have forward compatible implementations.
func (*UnimplementedWalletServer) Apple ¶
func (*UnimplementedWalletServer) Apple(context.Context, *AppleRequest) (*AppleResponse, error)
type WalletClient ¶
type WalletClient interface {
Apple(ctx context.Context, in *AppleRequest, opts ...grpc.CallOption) (*AppleResponse, error)
}
WalletClient is the client API for Wallet service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWalletClient ¶
func NewWalletClient(cc grpc.ClientConnInterface) WalletClient
type WalletServer ¶
type WalletServer interface {
Apple(context.Context, *AppleRequest) (*AppleResponse, error)
}
WalletServer is the server API for Wallet service.