Documentation ¶
Overview ¶
Code generated by Kitex v0.8.0. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler payment.PaymentService, opts ...server.Option) server.Invoker
- func NewServer(handler payment.PaymentService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type ChargeArgs
- func (p *ChargeArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *ChargeArgs) FastWrite(buf []byte) (n int)
- func (p *ChargeArgs) GetFirstArgument() interface{}
- func (p *ChargeArgs) GetReq() *payment.ChargeReq
- func (p *ChargeArgs) IsSetReq() bool
- func (p *ChargeArgs) Marshal(out []byte) ([]byte, error)
- func (p *ChargeArgs) Size() (n int)
- func (p *ChargeArgs) Unmarshal(in []byte) error
- type ChargeResult
- func (p *ChargeResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *ChargeResult) FastWrite(buf []byte) (n int)
- func (p *ChargeResult) GetResult() interface{}
- func (p *ChargeResult) GetSuccess() *payment.ChargeResp
- func (p *ChargeResult) IsSetSuccess() bool
- func (p *ChargeResult) Marshal(out []byte) ([]byte, error)
- func (p *ChargeResult) SetSuccess(x interface{})
- func (p *ChargeResult) Size() (n int)
- func (p *ChargeResult) Unmarshal(in []byte) error
- type Client
Constants ¶
This section is empty.
Variables ¶
View Source
var ChargeArgs_Req_DEFAULT *payment.ChargeReq
View Source
var ChargeResult_Success_DEFAULT *payment.ChargeResp
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
Types ¶
type ChargeArgs ¶
func (*ChargeArgs) FastWrite ¶
func (p *ChargeArgs) FastWrite(buf []byte) (n int)
func (*ChargeArgs) GetFirstArgument ¶
func (p *ChargeArgs) GetFirstArgument() interface{}
func (*ChargeArgs) GetReq ¶
func (p *ChargeArgs) GetReq() *payment.ChargeReq
func (*ChargeArgs) IsSetReq ¶
func (p *ChargeArgs) IsSetReq() bool
func (*ChargeArgs) Size ¶
func (p *ChargeArgs) Size() (n int)
func (*ChargeArgs) Unmarshal ¶
func (p *ChargeArgs) Unmarshal(in []byte) error
type ChargeResult ¶
type ChargeResult struct {
Success *payment.ChargeResp
}
func (*ChargeResult) FastWrite ¶
func (p *ChargeResult) FastWrite(buf []byte) (n int)
func (*ChargeResult) GetResult ¶
func (p *ChargeResult) GetResult() interface{}
func (*ChargeResult) GetSuccess ¶
func (p *ChargeResult) GetSuccess() *payment.ChargeResp
func (*ChargeResult) IsSetSuccess ¶
func (p *ChargeResult) IsSetSuccess() bool
func (*ChargeResult) SetSuccess ¶
func (p *ChargeResult) SetSuccess(x interface{})
func (*ChargeResult) Size ¶
func (p *ChargeResult) Size() (n int)
func (*ChargeResult) Unmarshal ¶
func (p *ChargeResult) Unmarshal(in []byte) error
type Client ¶
type Client interface {
Charge(ctx context.Context, Req *payment.ChargeReq, callOptions ...callopt.Option) (r *payment.ChargeResp, err error)
}
Client is designed to provide IDL-compatible methods with call-option parameter for kitex framework.
func MustNewClient ¶
MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.
Click to show internal directories.
Click to hide internal directories.