pay

package
v0.0.0-...-0872ad6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Pay_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pay.Pay",
	HandlerType: (*PayServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Pay_Create_Handler,
		},
		{
			MethodName: "Detail",
			Handler:    _Pay_Detail_Handler,
		},
		{
			MethodName: "Callback",
			Handler:    _Pay_Callback_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pay.proto",
}

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

Functions

func RegisterPayServer

func RegisterPayServer(s grpc.ServiceRegistrar, srv PayServer)

Types

type CallbackRequest

type CallbackRequest struct {
	Id     int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Uid    int64 `protobuf:"varint,2,opt,name=Uid,proto3" json:"Uid,omitempty"`
	Oid    int64 `protobuf:"varint,3,opt,name=Oid,proto3" json:"Oid,omitempty"`
	Amount int64 `protobuf:"varint,4,opt,name=Amount,proto3" json:"Amount,omitempty"`
	Source int64 `protobuf:"varint,5,opt,name=Source,proto3" json:"Source,omitempty"`
	Status int64 `protobuf:"varint,6,opt,name=Status,proto3" json:"Status,omitempty"`
	// contains filtered or unexported fields
}

支付详情

func (*CallbackRequest) Descriptor deprecated

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

Deprecated: Use CallbackRequest.ProtoReflect.Descriptor instead.

func (*CallbackRequest) GetAmount

func (x *CallbackRequest) GetAmount() int64

func (*CallbackRequest) GetId

func (x *CallbackRequest) GetId() int64

func (*CallbackRequest) GetOid

func (x *CallbackRequest) GetOid() int64

func (*CallbackRequest) GetSource

func (x *CallbackRequest) GetSource() int64

func (*CallbackRequest) GetStatus

func (x *CallbackRequest) GetStatus() int64

func (*CallbackRequest) GetUid

func (x *CallbackRequest) GetUid() int64

func (*CallbackRequest) ProtoMessage

func (*CallbackRequest) ProtoMessage()

func (*CallbackRequest) ProtoReflect

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

func (*CallbackRequest) Reset

func (x *CallbackRequest) Reset()

func (*CallbackRequest) String

func (x *CallbackRequest) String() string

type CallbackResponse

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

func (*CallbackResponse) Descriptor deprecated

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

Deprecated: Use CallbackResponse.ProtoReflect.Descriptor instead.

func (*CallbackResponse) ProtoMessage

func (*CallbackResponse) ProtoMessage()

func (*CallbackResponse) ProtoReflect

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

func (*CallbackResponse) Reset

func (x *CallbackResponse) Reset()

func (*CallbackResponse) String

func (x *CallbackResponse) String() string

type CreateRequest

type CreateRequest struct {
	Uid    int64 `protobuf:"varint,1,opt,name=Uid,proto3" json:"Uid,omitempty"`
	Oid    int64 `protobuf:"varint,2,opt,name=Oid,proto3" json:"Oid,omitempty"`
	Amount int64 `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount,omitempty"`
	// contains filtered or unexported fields
}

支付创建

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetAmount

func (x *CreateRequest) GetAmount() int64

func (*CreateRequest) GetOid

func (x *CreateRequest) GetOid() int64

func (*CreateRequest) GetUid

func (x *CreateRequest) GetUid() int64

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetId

func (x *CreateResponse) GetId() int64

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type DetailRequest

type DetailRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

支付详情

func (*DetailRequest) Descriptor deprecated

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

Deprecated: Use DetailRequest.ProtoReflect.Descriptor instead.

func (*DetailRequest) GetId

func (x *DetailRequest) GetId() int64

func (*DetailRequest) ProtoMessage

func (*DetailRequest) ProtoMessage()

func (*DetailRequest) ProtoReflect

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

func (*DetailRequest) Reset

func (x *DetailRequest) Reset()

func (*DetailRequest) String

func (x *DetailRequest) String() string

type DetailResponse

type DetailResponse struct {
	Id     int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Uid    int64 `protobuf:"varint,2,opt,name=Uid,proto3" json:"Uid,omitempty"`
	Oid    int64 `protobuf:"varint,3,opt,name=Oid,proto3" json:"Oid,omitempty"`
	Amount int64 `protobuf:"varint,4,opt,name=Amount,proto3" json:"Amount,omitempty"`
	Source int64 `protobuf:"varint,5,opt,name=Source,proto3" json:"Source,omitempty"`
	Status int64 `protobuf:"varint,6,opt,name=Status,proto3" json:"Status,omitempty"`
	// contains filtered or unexported fields
}

func (*DetailResponse) Descriptor deprecated

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

Deprecated: Use DetailResponse.ProtoReflect.Descriptor instead.

func (*DetailResponse) GetAmount

func (x *DetailResponse) GetAmount() int64

func (*DetailResponse) GetId

func (x *DetailResponse) GetId() int64

func (*DetailResponse) GetOid

func (x *DetailResponse) GetOid() int64

func (*DetailResponse) GetSource

func (x *DetailResponse) GetSource() int64

func (*DetailResponse) GetStatus

func (x *DetailResponse) GetStatus() int64

func (*DetailResponse) GetUid

func (x *DetailResponse) GetUid() int64

func (*DetailResponse) ProtoMessage

func (*DetailResponse) ProtoMessage()

func (*DetailResponse) ProtoReflect

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

func (*DetailResponse) Reset

func (x *DetailResponse) Reset()

func (*DetailResponse) String

func (x *DetailResponse) String() string

type Pay

type Pay interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	Detail(ctx context.Context, in *DetailRequest, opts ...grpc.CallOption) (*DetailResponse, error)
	Callback(ctx context.Context, in *CallbackRequest, opts ...grpc.CallOption) (*CallbackResponse, error)
}

func NewPay

func NewPay(cli zrpc.Client) Pay

type PayClient

type PayClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	Detail(ctx context.Context, in *DetailRequest, opts ...grpc.CallOption) (*DetailResponse, error)
	Callback(ctx context.Context, in *CallbackRequest, opts ...grpc.CallOption) (*CallbackResponse, error)
}

PayClient is the client API for Pay 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 NewPayClient

func NewPayClient(cc grpc.ClientConnInterface) PayClient

type PayServer

type PayServer interface {
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	Detail(context.Context, *DetailRequest) (*DetailResponse, error)
	Callback(context.Context, *CallbackRequest) (*CallbackResponse, error)
	// contains filtered or unexported methods
}

PayServer is the server API for Pay service. All implementations must embed UnimplementedPayServer for forward compatibility

type UnimplementedPayServer

type UnimplementedPayServer struct {
}

UnimplementedPayServer must be embedded to have forward compatible implementations.

func (UnimplementedPayServer) Callback

func (UnimplementedPayServer) Create

func (UnimplementedPayServer) Detail

type UnsafePayServer

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

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

Jump to

Keyboard shortcuts

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