benchmarkpb

package
v0.0.0-...-9c6803e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthBenchmark        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBenchmark          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBenchmark = fmt.Errorf("proto: unexpected end of group")
)

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) MarshalTo

func (m *ChargeRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *ChargeResponse) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *CreditCardInfo) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Money) Equal

func (this *Money) Equal(that interface{}) bool

func (*Money) GetCurrencyCode

func (m *Money) GetCurrencyCode() string

func (*Money) GetNanos

func (m *Money) GetNanos() int32

func (*Money) GetUnits

func (m *Money) GetUnits() int64

func (*Money) GoString

func (this *Money) GoString() string

func (*Money) Marshal

func (m *Money) Marshal() (dAtA []byte, err error)

func (*Money) MarshalTo

func (m *Money) MarshalTo(dAtA []byte) (int, error)

func (*Money) MarshalToSizedBuffer

func (m *Money) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Money) ProtoMessage

func (*Money) ProtoMessage()

func (*Money) Reset

func (m *Money) Reset()

func (*Money) Size

func (m *Money) Size() (n int)

func (*Money) String

func (this *Money) String() string

func (*Money) Unmarshal

func (m *Money) Unmarshal(dAtA []byte) error

func (*Money) XXX_DiscardUnknown

func (m *Money) XXX_DiscardUnknown()

func (*Money) XXX_Marshal

func (m *Money) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Money) XXX_Merge

func (m *Money) XXX_Merge(src proto.Message)

func (*Money) XXX_Size

func (m *Money) XXX_Size() int

func (*Money) XXX_Unmarshal

func (m *Money) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL