Documentation ¶
Index ¶
- Variables
- func NewPaymentEndpoints() []*api.Endpoint
- func RegisterPaymentHandler(s server.Server, hdlr PaymentHandler, opts ...server.HandlerOption) error
- type All
- type PaymentAll
- type PaymentHandler
- type PaymentID
- type PaymentInfo
- func (*PaymentInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentInfo) GetId() int64
- func (x *PaymentInfo) GetPaymentImage() string
- func (x *PaymentInfo) GetPaymentName() string
- func (x *PaymentInfo) GetPaymentSid() string
- func (x *PaymentInfo) GetPaymentStatus() bool
- func (*PaymentInfo) ProtoMessage()
- func (x *PaymentInfo) ProtoReflect() protoreflect.Message
- func (x *PaymentInfo) Reset()
- func (x *PaymentInfo) String() string
- type PaymentService
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_payment_payment_proto protoreflect.FileDescriptor
Functions ¶
func NewPaymentEndpoints ¶
func RegisterPaymentHandler ¶
func RegisterPaymentHandler(s server.Server, hdlr PaymentHandler, opts ...server.HandlerOption) error
Types ¶
type All ¶
type All struct {
// contains filtered or unexported fields
}
func (*All) Descriptor
deprecated
func (*All) ProtoMessage ¶
func (*All) ProtoMessage()
func (*All) ProtoReflect ¶
func (x *All) ProtoReflect() protoreflect.Message
type PaymentAll ¶
type PaymentAll struct { PaymentInfo []*PaymentInfo `protobuf:"bytes,1,rep,name=payment_info,json=paymentInfo,proto3" json:"payment_info,omitempty"` // contains filtered or unexported fields }
func (*PaymentAll) Descriptor
deprecated
func (*PaymentAll) Descriptor() ([]byte, []int)
Deprecated: Use PaymentAll.ProtoReflect.Descriptor instead.
func (*PaymentAll) GetPaymentInfo ¶
func (x *PaymentAll) GetPaymentInfo() []*PaymentInfo
func (*PaymentAll) ProtoMessage ¶
func (*PaymentAll) ProtoMessage()
func (*PaymentAll) ProtoReflect ¶
func (x *PaymentAll) ProtoReflect() protoreflect.Message
func (*PaymentAll) Reset ¶
func (x *PaymentAll) Reset()
func (*PaymentAll) String ¶
func (x *PaymentAll) String() string
type PaymentHandler ¶
type PaymentHandler interface { AddPayment(context.Context, *PaymentInfo, *PaymentID) error UpdatePayment(context.Context, *PaymentInfo, *Response) error DeletePaymentByID(context.Context, *PaymentID, *Response) error FindPaymentByID(context.Context, *PaymentID, *PaymentInfo) error FindAllPayment(context.Context, *All, *PaymentAll) error }
type PaymentID ¶
type PaymentID struct { PaymentId int64 `protobuf:"varint,1,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"` // contains filtered or unexported fields }
func (*PaymentID) Descriptor
deprecated
func (*PaymentID) GetPaymentId ¶
func (*PaymentID) ProtoMessage ¶
func (*PaymentID) ProtoMessage()
func (*PaymentID) ProtoReflect ¶
func (x *PaymentID) ProtoReflect() protoreflect.Message
type PaymentInfo ¶
type PaymentInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PaymentName string `protobuf:"bytes,2,opt,name=payment_name,json=paymentName,proto3" json:"payment_name,omitempty"` PaymentSid string `protobuf:"bytes,3,opt,name=payment_sid,json=paymentSid,proto3" json:"payment_sid,omitempty"` PaymentStatus bool `protobuf:"varint,4,opt,name=payment_status,json=paymentStatus,proto3" json:"payment_status,omitempty"` PaymentImage string `protobuf:"bytes,5,opt,name=Payment_image,json=PaymentImage,proto3" json:"Payment_image,omitempty"` // contains filtered or unexported fields }
func (*PaymentInfo) Descriptor
deprecated
func (*PaymentInfo) Descriptor() ([]byte, []int)
Deprecated: Use PaymentInfo.ProtoReflect.Descriptor instead.
func (*PaymentInfo) GetId ¶
func (x *PaymentInfo) GetId() int64
func (*PaymentInfo) GetPaymentImage ¶
func (x *PaymentInfo) GetPaymentImage() string
func (*PaymentInfo) GetPaymentName ¶
func (x *PaymentInfo) GetPaymentName() string
func (*PaymentInfo) GetPaymentSid ¶
func (x *PaymentInfo) GetPaymentSid() string
func (*PaymentInfo) GetPaymentStatus ¶
func (x *PaymentInfo) GetPaymentStatus() bool
func (*PaymentInfo) ProtoMessage ¶
func (*PaymentInfo) ProtoMessage()
func (*PaymentInfo) ProtoReflect ¶
func (x *PaymentInfo) ProtoReflect() protoreflect.Message
func (*PaymentInfo) Reset ¶
func (x *PaymentInfo) Reset()
func (*PaymentInfo) String ¶
func (x *PaymentInfo) String() string
type PaymentService ¶
type PaymentService interface { AddPayment(ctx context.Context, in *PaymentInfo, opts ...client.CallOption) (*PaymentID, error) UpdatePayment(ctx context.Context, in *PaymentInfo, opts ...client.CallOption) (*Response, error) DeletePaymentByID(ctx context.Context, in *PaymentID, opts ...client.CallOption) (*Response, error) FindPaymentByID(ctx context.Context, in *PaymentID, opts ...client.CallOption) (*PaymentInfo, error) FindAllPayment(ctx context.Context, in *All, opts ...client.CallOption) (*PaymentAll, error) }
func NewPaymentService ¶
func NewPaymentService(name string, c client.Client) PaymentService
type Response ¶
type Response struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.