Documentation ¶
Index ¶
- Variables
- func RegisterPayServiceServer(s grpc.ServiceRegistrar, srv PayServiceServer)
- type BuyCurrencyRequest
- func (*BuyCurrencyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BuyCurrencyRequest) GetPaymentType() PaymentType
- func (x *BuyCurrencyRequest) GetTransactionId() string
- func (*BuyCurrencyRequest) ProtoMessage()
- func (x *BuyCurrencyRequest) ProtoReflect() protoreflect.Message
- func (x *BuyCurrencyRequest) Reset()
- func (x *BuyCurrencyRequest) String() string
- type BuyCurrencyResponse
- type PayServiceClient
- type PayServiceServer
- type PaymentType
- func (PaymentType) Descriptor() protoreflect.EnumDescriptor
- func (x PaymentType) Enum() *PaymentType
- func (PaymentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PaymentType) Number() protoreflect.EnumNumber
- func (x PaymentType) String() string
- func (PaymentType) Type() protoreflect.EnumType
- type UnimplementedPayServiceServer
- type UnsafePayServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( PaymentType_name = map[int32]string{ 0: "PAYMENT_TYPE_UNSPECIFIED", 1: "PAYMENT_TYPE_APPLE_IN_APP_PAY", } PaymentType_value = map[string]int32{ "PAYMENT_TYPE_UNSPECIFIED": 0, "PAYMENT_TYPE_APPLE_IN_APP_PAY": 1, } )
Enum value maps for PaymentType.
var File_basket_pay_service_v1_pay_proto protoreflect.FileDescriptor
var PayService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "basket.pay_service.v1.PayService", HandlerType: (*PayServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "BuyCurrency", Handler: _PayService_BuyCurrency_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "basket/pay-service/v1/pay.proto", }
PayService_ServiceDesc is the grpc.ServiceDesc for PayService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPayServiceServer ¶
func RegisterPayServiceServer(s grpc.ServiceRegistrar, srv PayServiceServer)
Types ¶
type BuyCurrencyRequest ¶
type BuyCurrencyRequest struct { TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` PaymentType PaymentType `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
func (*BuyCurrencyRequest) Descriptor
deprecated
func (*BuyCurrencyRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuyCurrencyRequest.ProtoReflect.Descriptor instead.
func (*BuyCurrencyRequest) GetPaymentType ¶
func (x *BuyCurrencyRequest) GetPaymentType() PaymentType
func (*BuyCurrencyRequest) GetTransactionId ¶
func (x *BuyCurrencyRequest) GetTransactionId() string
func (*BuyCurrencyRequest) ProtoMessage ¶
func (*BuyCurrencyRequest) ProtoMessage()
func (*BuyCurrencyRequest) ProtoReflect ¶
func (x *BuyCurrencyRequest) ProtoReflect() protoreflect.Message
func (*BuyCurrencyRequest) Reset ¶
func (x *BuyCurrencyRequest) Reset()
func (*BuyCurrencyRequest) String ¶
func (x *BuyCurrencyRequest) String() string
type BuyCurrencyResponse ¶
type BuyCurrencyResponse struct {
// contains filtered or unexported fields
}
func (*BuyCurrencyResponse) Descriptor
deprecated
func (*BuyCurrencyResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuyCurrencyResponse.ProtoReflect.Descriptor instead.
func (*BuyCurrencyResponse) ProtoMessage ¶
func (*BuyCurrencyResponse) ProtoMessage()
func (*BuyCurrencyResponse) ProtoReflect ¶
func (x *BuyCurrencyResponse) ProtoReflect() protoreflect.Message
func (*BuyCurrencyResponse) Reset ¶
func (x *BuyCurrencyResponse) Reset()
func (*BuyCurrencyResponse) String ¶
func (x *BuyCurrencyResponse) String() string
type PayServiceClient ¶
type PayServiceClient interface {
BuyCurrency(ctx context.Context, in *BuyCurrencyRequest, opts ...grpc.CallOption) (*BuyCurrencyResponse, error)
}
PayServiceClient is the client API for PayService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPayServiceClient ¶
func NewPayServiceClient(cc grpc.ClientConnInterface) PayServiceClient
type PayServiceServer ¶
type PayServiceServer interface { BuyCurrency(context.Context, *BuyCurrencyRequest) (*BuyCurrencyResponse, error) // contains filtered or unexported methods }
PayServiceServer is the server API for PayService service. All implementations must embed UnimplementedPayServiceServer for forward compatibility
type PaymentType ¶
type PaymentType int32
const ( PaymentType_PAYMENT_TYPE_UNSPECIFIED PaymentType = 0 PaymentType_PAYMENT_TYPE_APPLE_IN_APP_PAY PaymentType = 1 )
func (PaymentType) Descriptor ¶
func (PaymentType) Descriptor() protoreflect.EnumDescriptor
func (PaymentType) Enum ¶
func (x PaymentType) Enum() *PaymentType
func (PaymentType) EnumDescriptor
deprecated
func (PaymentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PaymentType.Descriptor instead.
func (PaymentType) Number ¶
func (x PaymentType) Number() protoreflect.EnumNumber
func (PaymentType) String ¶
func (x PaymentType) String() string
func (PaymentType) Type ¶
func (PaymentType) Type() protoreflect.EnumType
type UnimplementedPayServiceServer ¶
type UnimplementedPayServiceServer struct { }
UnimplementedPayServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPayServiceServer) BuyCurrency ¶
func (UnimplementedPayServiceServer) BuyCurrency(context.Context, *BuyCurrencyRequest) (*BuyCurrencyResponse, error)
type UnsafePayServiceServer ¶
type UnsafePayServiceServer interface {
// contains filtered or unexported methods
}
UnsafePayServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PayServiceServer will result in compilation errors.