Documentation ¶
Index ¶
- func RegisterPaymentHandler(s server.Server, hdlr PaymentHandler, opts ...server.HandlerOption) error
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetCode() int32
- func (m *Error) GetDetail() string
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) String() string
- func (m *Error) XXX_DiscardUnknown()
- func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Error) XXX_Merge(src proto.Message)
- func (m *Error) XXX_Size() int
- func (m *Error) XXX_Unmarshal(b []byte) error
- type PayEvent
- func (*PayEvent) Descriptor() ([]byte, []int)
- func (m *PayEvent) GetId() string
- func (m *PayEvent) GetOrderId() int64
- func (m *PayEvent) GetSentTime() int64
- func (m *PayEvent) GetState() int32
- func (*PayEvent) ProtoMessage()
- func (m *PayEvent) Reset()
- func (m *PayEvent) String() string
- func (m *PayEvent) XXX_DiscardUnknown()
- func (m *PayEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayEvent) XXX_Merge(src proto.Message)
- func (m *PayEvent) XXX_Size() int
- func (m *PayEvent) XXX_Unmarshal(b []byte) error
- type PaymentHandler
- type PaymentService
- type Payments
- func (*Payments) Descriptor() ([]byte, []int)
- func (m *Payments) GetBookId() int64
- func (m *Payments) GetCreatedTime() int64
- func (m *Payments) GetId() int64
- func (m *Payments) GetInvHistoryId() int64
- func (m *Payments) GetOrderId() int64
- func (m *Payments) GetState() int32
- func (m *Payments) GetUpdatedTime() int64
- func (m *Payments) GetUserId() int64
- func (*Payments) ProtoMessage()
- func (m *Payments) Reset()
- func (m *Payments) String() string
- func (m *Payments) XXX_DiscardUnknown()
- func (m *Payments) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payments) XXX_Merge(src proto.Message)
- func (m *Payments) XXX_Size() int
- func (m *Payments) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetOrderId() int64
- func (m *Request) GetPrice() int64
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetError() *Error
- func (m *Response) GetSuccess() bool
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPaymentHandler ¶
func RegisterPaymentHandler(s server.Server, hdlr PaymentHandler, opts ...server.HandlerOption) error
Types ¶
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Error) Descriptor ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_Unmarshal ¶
type PayEvent ¶
type PayEvent struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SentTime int64 `protobuf:"varint,2,opt,name=sentTime,proto3" json:"sentTime,omitempty"` OrderId int64 `protobuf:"varint,3,opt,name=orderId,proto3" json:"orderId,omitempty"` State int32 `protobuf:"varint,4,opt,name=state,proto3" json:"state,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
PayEvent
func (*PayEvent) Descriptor ¶
func (*PayEvent) GetOrderId ¶
func (*PayEvent) GetSentTime ¶
func (*PayEvent) ProtoMessage ¶
func (*PayEvent) ProtoMessage()
func (*PayEvent) XXX_DiscardUnknown ¶
func (m *PayEvent) XXX_DiscardUnknown()
func (*PayEvent) XXX_Marshal ¶
func (*PayEvent) XXX_Unmarshal ¶
type PaymentHandler ¶
type PaymentService ¶
type PaymentService interface {
PayOrder(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewPaymentService ¶
func NewPaymentService(name string, c client.Client) PaymentService
type Payments ¶
type Payments struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` BookId int64 `protobuf:"varint,3,opt,name=bookId,proto3" json:"bookId,omitempty"` OrderId int64 `protobuf:"varint,4,opt,name=orderId,proto3" json:"orderId,omitempty"` InvHistoryId int64 `protobuf:"varint,5,opt,name=invHistoryId,proto3" json:"invHistoryId,omitempty"` State int32 `protobuf:"varint,6,opt,name=state,proto3" json:"state,omitempty"` CreatedTime int64 `protobuf:"varint,7,opt,name=createdTime,proto3" json:"createdTime,omitempty"` UpdatedTime int64 `protobuf:"varint,8,opt,name=updatedTime,proto3" json:"updatedTime,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Payments) Descriptor ¶
func (*Payments) GetCreatedTime ¶
func (*Payments) GetInvHistoryId ¶
func (*Payments) GetOrderId ¶
func (*Payments) GetUpdatedTime ¶
func (*Payments) ProtoMessage ¶
func (*Payments) ProtoMessage()
func (*Payments) XXX_DiscardUnknown ¶
func (m *Payments) XXX_DiscardUnknown()
func (*Payments) XXX_Marshal ¶
func (*Payments) XXX_Unmarshal ¶
type Request ¶
type Request struct { OrderId int64 `protobuf:"varint,1,opt,name=orderId,proto3" json:"orderId,omitempty"` Price int64 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetOrderId ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetSuccess ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.