v1

package
v0.3.50 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_basket_pay_service_v1_pay_proto protoreflect.FileDescriptor
View Source
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) 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

type UnimplementedPayServiceServer

type UnimplementedPayServiceServer struct {
}

UnimplementedPayServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPayServiceServer) BuyCurrency

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.

Jump to

Keyboard shortcuts

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