Documentation ¶
Index ¶
- Variables
- func RegisterPaymentServiceServer(s *grpc.Server, srv PaymentServiceServer)
- type ChargeRequest
- func (*ChargeRequest) Descriptor() ([]byte, []int)
- func (this *ChargeRequest) Equal(that interface{}) bool
- func (m *ChargeRequest) GetAmount() *Money
- func (m *ChargeRequest) GetCreditCard() *CreditCardInfo
- func (this *ChargeRequest) GoString() string
- func (m *ChargeRequest) Marshal() (dAtA []byte, err error)
- func (m *ChargeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ChargeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChargeRequest) ProtoMessage()
- func (m *ChargeRequest) Reset()
- func (m *ChargeRequest) Size() (n int)
- func (this *ChargeRequest) String() string
- func (m *ChargeRequest) Unmarshal(dAtA []byte) error
- func (m *ChargeRequest) XXX_DiscardUnknown()
- func (m *ChargeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChargeRequest) XXX_Merge(src proto.Message)
- func (m *ChargeRequest) XXX_Size() int
- func (m *ChargeRequest) XXX_Unmarshal(b []byte) error
- type ChargeResponse
- func (*ChargeResponse) Descriptor() ([]byte, []int)
- func (this *ChargeResponse) Equal(that interface{}) bool
- func (m *ChargeResponse) GetTransactionId() string
- func (this *ChargeResponse) GoString() string
- func (m *ChargeResponse) Marshal() (dAtA []byte, err error)
- func (m *ChargeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ChargeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChargeResponse) ProtoMessage()
- func (m *ChargeResponse) Reset()
- func (m *ChargeResponse) Size() (n int)
- func (this *ChargeResponse) String() string
- func (m *ChargeResponse) Unmarshal(dAtA []byte) error
- func (m *ChargeResponse) XXX_DiscardUnknown()
- func (m *ChargeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChargeResponse) XXX_Merge(src proto.Message)
- func (m *ChargeResponse) XXX_Size() int
- func (m *ChargeResponse) XXX_Unmarshal(b []byte) error
- type CreditCardInfo
- func (*CreditCardInfo) Descriptor() ([]byte, []int)
- func (this *CreditCardInfo) Equal(that interface{}) bool
- func (m *CreditCardInfo) GetCreditCardCvv() int32
- func (m *CreditCardInfo) GetCreditCardExpirationMonth() int32
- func (m *CreditCardInfo) GetCreditCardExpirationYear() int32
- func (m *CreditCardInfo) GetCreditCardNumber() string
- func (this *CreditCardInfo) GoString() string
- func (m *CreditCardInfo) Marshal() (dAtA []byte, err error)
- func (m *CreditCardInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *CreditCardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreditCardInfo) ProtoMessage()
- func (m *CreditCardInfo) Reset()
- func (m *CreditCardInfo) Size() (n int)
- func (this *CreditCardInfo) String() string
- func (m *CreditCardInfo) Unmarshal(dAtA []byte) error
- func (m *CreditCardInfo) XXX_DiscardUnknown()
- func (m *CreditCardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreditCardInfo) XXX_Merge(src proto.Message)
- func (m *CreditCardInfo) XXX_Size() int
- func (m *CreditCardInfo) XXX_Unmarshal(b []byte) error
- type Money
- func (*Money) Descriptor() ([]byte, []int)
- func (this *Money) Equal(that interface{}) bool
- func (m *Money) GetCurrencyCode() string
- func (m *Money) GetNanos() int32
- func (m *Money) GetUnits() int64
- func (this *Money) GoString() string
- func (m *Money) Marshal() (dAtA []byte, err error)
- func (m *Money) MarshalTo(dAtA []byte) (int, error)
- func (m *Money) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Money) ProtoMessage()
- func (m *Money) Reset()
- func (m *Money) Size() (n int)
- func (this *Money) String() string
- func (m *Money) Unmarshal(dAtA []byte) error
- func (m *Money) XXX_DiscardUnknown()
- func (m *Money) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Money) XXX_Merge(src proto.Message)
- func (m *Money) XXX_Size() int
- func (m *Money) XXX_Unmarshal(b []byte) error
- type PaymentServiceClient
- type PaymentServiceServer
- type UnimplementedPaymentServiceServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterPaymentServiceServer ¶
func RegisterPaymentServiceServer(s *grpc.Server, srv PaymentServiceServer)
Types ¶
type ChargeRequest ¶
type ChargeRequest struct { Amount *Money `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` CreditCard *CreditCardInfo `protobuf:"bytes,2,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"` }
func (*ChargeRequest) Descriptor ¶
func (*ChargeRequest) Descriptor() ([]byte, []int)
func (*ChargeRequest) Equal ¶
func (this *ChargeRequest) Equal(that interface{}) bool
func (*ChargeRequest) GetAmount ¶
func (m *ChargeRequest) GetAmount() *Money
func (*ChargeRequest) GetCreditCard ¶
func (m *ChargeRequest) GetCreditCard() *CreditCardInfo
func (*ChargeRequest) GoString ¶
func (this *ChargeRequest) GoString() string
func (*ChargeRequest) Marshal ¶
func (m *ChargeRequest) Marshal() (dAtA []byte, err error)
func (*ChargeRequest) MarshalToSizedBuffer ¶
func (m *ChargeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChargeRequest) ProtoMessage ¶
func (*ChargeRequest) ProtoMessage()
func (*ChargeRequest) Reset ¶
func (m *ChargeRequest) Reset()
func (*ChargeRequest) Size ¶
func (m *ChargeRequest) Size() (n int)
func (*ChargeRequest) String ¶
func (this *ChargeRequest) String() string
func (*ChargeRequest) Unmarshal ¶
func (m *ChargeRequest) Unmarshal(dAtA []byte) error
func (*ChargeRequest) XXX_DiscardUnknown ¶
func (m *ChargeRequest) XXX_DiscardUnknown()
func (*ChargeRequest) XXX_Marshal ¶
func (m *ChargeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChargeRequest) XXX_Merge ¶
func (m *ChargeRequest) XXX_Merge(src proto.Message)
func (*ChargeRequest) XXX_Size ¶
func (m *ChargeRequest) XXX_Size() int
func (*ChargeRequest) XXX_Unmarshal ¶
func (m *ChargeRequest) XXX_Unmarshal(b []byte) error
type ChargeResponse ¶
type ChargeResponse struct {
TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
}
func (*ChargeResponse) Descriptor ¶
func (*ChargeResponse) Descriptor() ([]byte, []int)
func (*ChargeResponse) Equal ¶
func (this *ChargeResponse) Equal(that interface{}) bool
func (*ChargeResponse) GetTransactionId ¶
func (m *ChargeResponse) GetTransactionId() string
func (*ChargeResponse) GoString ¶
func (this *ChargeResponse) GoString() string
func (*ChargeResponse) Marshal ¶
func (m *ChargeResponse) Marshal() (dAtA []byte, err error)
func (*ChargeResponse) MarshalToSizedBuffer ¶
func (m *ChargeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChargeResponse) ProtoMessage ¶
func (*ChargeResponse) ProtoMessage()
func (*ChargeResponse) Reset ¶
func (m *ChargeResponse) Reset()
func (*ChargeResponse) Size ¶
func (m *ChargeResponse) Size() (n int)
func (*ChargeResponse) String ¶
func (this *ChargeResponse) String() string
func (*ChargeResponse) Unmarshal ¶
func (m *ChargeResponse) Unmarshal(dAtA []byte) error
func (*ChargeResponse) XXX_DiscardUnknown ¶
func (m *ChargeResponse) XXX_DiscardUnknown()
func (*ChargeResponse) XXX_Marshal ¶
func (m *ChargeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChargeResponse) XXX_Merge ¶
func (m *ChargeResponse) XXX_Merge(src proto.Message)
func (*ChargeResponse) XXX_Size ¶
func (m *ChargeResponse) XXX_Size() int
func (*ChargeResponse) XXX_Unmarshal ¶
func (m *ChargeResponse) XXX_Unmarshal(b []byte) error
type CreditCardInfo ¶
type CreditCardInfo struct { CreditCardNumber string `protobuf:"bytes,1,opt,name=credit_card_number,json=creditCardNumber,proto3" json:"credit_card_number,omitempty"` CreditCardCvv int32 `protobuf:"varint,2,opt,name=credit_card_cvv,json=creditCardCvv,proto3" json:"credit_card_cvv,omitempty"` CreditCardExpirationYear int32 `` /* 138-byte string literal not displayed */ CreditCardExpirationMonth int32 `` /* 141-byte string literal not displayed */ }
func (*CreditCardInfo) Descriptor ¶
func (*CreditCardInfo) Descriptor() ([]byte, []int)
func (*CreditCardInfo) Equal ¶
func (this *CreditCardInfo) Equal(that interface{}) bool
func (*CreditCardInfo) GetCreditCardCvv ¶
func (m *CreditCardInfo) GetCreditCardCvv() int32
func (*CreditCardInfo) GetCreditCardExpirationMonth ¶
func (m *CreditCardInfo) GetCreditCardExpirationMonth() int32
func (*CreditCardInfo) GetCreditCardExpirationYear ¶
func (m *CreditCardInfo) GetCreditCardExpirationYear() int32
func (*CreditCardInfo) GetCreditCardNumber ¶
func (m *CreditCardInfo) GetCreditCardNumber() string
func (*CreditCardInfo) GoString ¶
func (this *CreditCardInfo) GoString() string
func (*CreditCardInfo) Marshal ¶
func (m *CreditCardInfo) Marshal() (dAtA []byte, err error)
func (*CreditCardInfo) MarshalToSizedBuffer ¶
func (m *CreditCardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreditCardInfo) ProtoMessage ¶
func (*CreditCardInfo) ProtoMessage()
func (*CreditCardInfo) Reset ¶
func (m *CreditCardInfo) Reset()
func (*CreditCardInfo) Size ¶
func (m *CreditCardInfo) Size() (n int)
func (*CreditCardInfo) String ¶
func (this *CreditCardInfo) String() string
func (*CreditCardInfo) Unmarshal ¶
func (m *CreditCardInfo) Unmarshal(dAtA []byte) error
func (*CreditCardInfo) XXX_DiscardUnknown ¶
func (m *CreditCardInfo) XXX_DiscardUnknown()
func (*CreditCardInfo) XXX_Marshal ¶
func (m *CreditCardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreditCardInfo) XXX_Merge ¶
func (m *CreditCardInfo) XXX_Merge(src proto.Message)
func (*CreditCardInfo) XXX_Size ¶
func (m *CreditCardInfo) XXX_Size() int
func (*CreditCardInfo) XXX_Unmarshal ¶
func (m *CreditCardInfo) XXX_Unmarshal(b []byte) error
type Money ¶
type Money struct { CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"` Units int64 `protobuf:"varint,2,opt,name=units,proto3" json:"units,omitempty"` Nanos int32 `protobuf:"varint,3,opt,name=nanos,proto3" json:"nanos,omitempty"` }
func (*Money) Descriptor ¶
func (*Money) GetCurrencyCode ¶
func (*Money) ProtoMessage ¶
func (*Money) ProtoMessage()
func (*Money) XXX_DiscardUnknown ¶
func (m *Money) XXX_DiscardUnknown()
func (*Money) XXX_Marshal ¶
func (*Money) XXX_Unmarshal ¶
type PaymentServiceClient ¶
type PaymentServiceClient interface {
Charge(ctx context.Context, in *ChargeRequest, opts ...grpc.CallOption) (*ChargeResponse, error)
}
PaymentServiceClient is the client API for PaymentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPaymentServiceClient ¶
func NewPaymentServiceClient(cc *grpc.ClientConn) PaymentServiceClient
type PaymentServiceServer ¶
type PaymentServiceServer interface {
Charge(context.Context, *ChargeRequest) (*ChargeResponse, error)
}
PaymentServiceServer is the server API for PaymentService service.
type UnimplementedPaymentServiceServer ¶
type UnimplementedPaymentServiceServer struct { }
UnimplementedPaymentServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedPaymentServiceServer) Charge ¶
func (*UnimplementedPaymentServiceServer) Charge(ctx context.Context, req *ChargeRequest) (*ChargeResponse, error)
Click to show internal directories.
Click to hide internal directories.