Documentation ¶
Index ¶
- Variables
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func IsUnknownError(err error) bool
- func RegisterPaymentServer(s grpc.ServiceRegistrar, srv PaymentServer)
- type PaymentAuthReply
- type PaymentAuthReq
- type PaymentClient
- type PaymentServer
- type PaymentServiceErrorReason
- func (PaymentServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x PaymentServiceErrorReason) Enum() *PaymentServiceErrorReason
- func (PaymentServiceErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x PaymentServiceErrorReason) Number() protoreflect.EnumNumber
- func (x PaymentServiceErrorReason) String() string
- func (PaymentServiceErrorReason) Type() protoreflect.EnumType
- type UnimplementedPaymentServer
- type UnsafePaymentServer
Constants ¶
This section is empty.
Variables ¶
var ( PaymentServiceErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", } PaymentServiceErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, } )
Enum value maps for PaymentServiceErrorReason.
var File_v1_payment_error_proto protoreflect.FileDescriptor
var File_v1_payment_proto protoreflect.FileDescriptor
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 IsUnknownError ¶
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) Descriptor() protoreflect.EnumDescriptor
func (PaymentServiceErrorReason) Enum ¶
func (x PaymentServiceErrorReason) Enum() *PaymentServiceErrorReason
func (PaymentServiceErrorReason) EnumDescriptor
deprecated
func (PaymentServiceErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use PaymentServiceErrorReason.Descriptor instead.
func (PaymentServiceErrorReason) Number ¶
func (x PaymentServiceErrorReason) Number() protoreflect.EnumNumber
func (PaymentServiceErrorReason) String ¶
func (x PaymentServiceErrorReason) String() string
func (PaymentServiceErrorReason) Type ¶
func (PaymentServiceErrorReason) Type() protoreflect.EnumType
type UnimplementedPaymentServer ¶
type UnimplementedPaymentServer struct { }
UnimplementedPaymentServer must be embedded to have forward compatible implementations.
func (UnimplementedPaymentServer) PaymentAuth ¶
func (UnimplementedPaymentServer) PaymentAuth(context.Context, *PaymentAuthReq) (*PaymentAuthReply, error)
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.