v1

package
v0.0.0-...-b12402e Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PaymentServiceErrorReason_name = map[int32]string{
		0: "UNKNOWN_ERROR",
	}
	PaymentServiceErrorReason_value = map[string]int32{
		"UNKNOWN_ERROR": 0,
	}
)

Enum value maps for PaymentServiceErrorReason.

View Source
var File_v1_payment_error_proto protoreflect.FileDescriptor
View Source
var File_v1_payment_proto protoreflect.FileDescriptor
View Source
var Payment_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "payment.service.v1.Payment",
	HandlerType: (*PaymentServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PaymentAuth",
			Handler:    _Payment_PaymentAuth_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/payment.proto",
}

Payment_ServiceDesc is the grpc.ServiceDesc for Payment service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func ErrorUnknownError

func ErrorUnknownError(format string, args ...interface{}) *errors.Error

func IsUnknownError

func IsUnknownError(err error) bool

func RegisterPaymentServer

func RegisterPaymentServer(s grpc.ServiceRegistrar, srv PaymentServer)

Types

type PaymentAuthReply

type PaymentAuthReply struct {
	// contains filtered or unexported fields
}

func (*PaymentAuthReply) Descriptor deprecated

func (*PaymentAuthReply) Descriptor() ([]byte, []int)

Deprecated: Use PaymentAuthReply.ProtoReflect.Descriptor instead.

func (*PaymentAuthReply) ProtoMessage

func (*PaymentAuthReply) ProtoMessage()

func (*PaymentAuthReply) ProtoReflect

func (x *PaymentAuthReply) ProtoReflect() protoreflect.Message

func (*PaymentAuthReply) Reset

func (x *PaymentAuthReply) Reset()

func (*PaymentAuthReply) String

func (x *PaymentAuthReply) String() string

type PaymentAuthReq

type PaymentAuthReq struct {
	// contains filtered or unexported fields
}

func (*PaymentAuthReq) Descriptor deprecated

func (*PaymentAuthReq) Descriptor() ([]byte, []int)

Deprecated: Use PaymentAuthReq.ProtoReflect.Descriptor instead.

func (*PaymentAuthReq) ProtoMessage

func (*PaymentAuthReq) ProtoMessage()

func (*PaymentAuthReq) ProtoReflect

func (x *PaymentAuthReq) ProtoReflect() protoreflect.Message

func (*PaymentAuthReq) Reset

func (x *PaymentAuthReq) Reset()

func (*PaymentAuthReq) String

func (x *PaymentAuthReq) String() string

type PaymentClient

type PaymentClient interface {
	PaymentAuth(ctx context.Context, in *PaymentAuthReq, opts ...grpc.CallOption) (*PaymentAuthReply, error)
}

PaymentClient is the client API for Payment 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 NewPaymentClient

func NewPaymentClient(cc grpc.ClientConnInterface) PaymentClient

type PaymentServer

type PaymentServer interface {
	PaymentAuth(context.Context, *PaymentAuthReq) (*PaymentAuthReply, error)
	// contains filtered or unexported methods
}

PaymentServer is the server API for Payment service. All implementations must embed UnimplementedPaymentServer for forward compatibility

type PaymentServiceErrorReason

type PaymentServiceErrorReason int32
const (
	PaymentServiceErrorReason_UNKNOWN_ERROR PaymentServiceErrorReason = 0
)

func (PaymentServiceErrorReason) Descriptor

func (PaymentServiceErrorReason) Enum

func (PaymentServiceErrorReason) EnumDescriptor deprecated

func (PaymentServiceErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use PaymentServiceErrorReason.Descriptor instead.

func (PaymentServiceErrorReason) Number

func (PaymentServiceErrorReason) String

func (x PaymentServiceErrorReason) String() string

func (PaymentServiceErrorReason) Type

type UnimplementedPaymentServer

type UnimplementedPaymentServer struct {
}

UnimplementedPaymentServer must be embedded to have forward compatible implementations.

func (UnimplementedPaymentServer) PaymentAuth

type UnsafePaymentServer

type UnsafePaymentServer interface {
	// contains filtered or unexported methods
}

UnsafePaymentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PaymentServer will result in compilation errors.

Jump to

Keyboard shortcuts

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