Documentation
¶
Overview ¶
Code generated by Kitex v0.9.1. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler order.OrderService, opts ...server.Option) server.Invoker
- func NewServer(handler order.OrderService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler order.OrderService, opts ...server.RegisterOption) error
- type Client
- type ListOrderArgs
- func (p *ListOrderArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *ListOrderArgs) FastWrite(buf []byte) (n int)
- func (p *ListOrderArgs) GetFirstArgument() interface{}
- func (p *ListOrderArgs) GetReq() *order.ListOrderReq
- func (p *ListOrderArgs) IsSetReq() bool
- func (p *ListOrderArgs) Marshal(out []byte) ([]byte, error)
- func (p *ListOrderArgs) Size() (n int)
- func (p *ListOrderArgs) Unmarshal(in []byte) error
- type ListOrderResult
- func (p *ListOrderResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *ListOrderResult) FastWrite(buf []byte) (n int)
- func (p *ListOrderResult) GetResult() interface{}
- func (p *ListOrderResult) GetSuccess() *order.ListOrderResp
- func (p *ListOrderResult) IsSetSuccess() bool
- func (p *ListOrderResult) Marshal(out []byte) ([]byte, error)
- func (p *ListOrderResult) SetSuccess(x interface{})
- func (p *ListOrderResult) Size() (n int)
- func (p *ListOrderResult) Unmarshal(in []byte) error
- type PlaceOrderArgs
- func (p *PlaceOrderArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *PlaceOrderArgs) FastWrite(buf []byte) (n int)
- func (p *PlaceOrderArgs) GetFirstArgument() interface{}
- func (p *PlaceOrderArgs) GetReq() *order.PlaceOrderReq
- func (p *PlaceOrderArgs) IsSetReq() bool
- func (p *PlaceOrderArgs) Marshal(out []byte) ([]byte, error)
- func (p *PlaceOrderArgs) Size() (n int)
- func (p *PlaceOrderArgs) Unmarshal(in []byte) error
- type PlaceOrderResult
- func (p *PlaceOrderResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *PlaceOrderResult) FastWrite(buf []byte) (n int)
- func (p *PlaceOrderResult) GetResult() interface{}
- func (p *PlaceOrderResult) GetSuccess() *order.PlaceOrderResp
- func (p *PlaceOrderResult) IsSetSuccess() bool
- func (p *PlaceOrderResult) Marshal(out []byte) ([]byte, error)
- func (p *PlaceOrderResult) SetSuccess(x interface{})
- func (p *PlaceOrderResult) Size() (n int)
- func (p *PlaceOrderResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ListOrderArgs_Req_DEFAULT *order.ListOrderReq
View Source
var ListOrderResult_Success_DEFAULT *order.ListOrderResp
View Source
var PlaceOrderArgs_Req_DEFAULT *order.PlaceOrderReq
View Source
var PlaceOrderResult_Success_DEFAULT *order.PlaceOrderResp
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServer ¶
NewServer creates a server.Server with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing all methods
func NewServiceInfoForClient ¶
func NewServiceInfoForClient() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing non-streaming methods
func NewServiceInfoForStreamClient ¶
func NewServiceInfoForStreamClient() *kitex.ServiceInfo
func RegisterService ¶
func RegisterService(svr server.Server, handler order.OrderService, opts ...server.RegisterOption) error
Types ¶
type Client ¶
type Client interface { PlaceOrder(ctx context.Context, Req *order.PlaceOrderReq, callOptions ...callopt.Option) (r *order.PlaceOrderResp, err error) ListOrder(ctx context.Context, Req *order.ListOrderReq, callOptions ...callopt.Option) (r *order.ListOrderResp, 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.
type ListOrderArgs ¶
type ListOrderArgs struct {
Req *order.ListOrderReq
}
func (*ListOrderArgs) FastRead ¶
func (*ListOrderArgs) FastWrite ¶
func (p *ListOrderArgs) FastWrite(buf []byte) (n int)
func (*ListOrderArgs) GetFirstArgument ¶
func (p *ListOrderArgs) GetFirstArgument() interface{}
func (*ListOrderArgs) GetReq ¶
func (p *ListOrderArgs) GetReq() *order.ListOrderReq
func (*ListOrderArgs) IsSetReq ¶
func (p *ListOrderArgs) IsSetReq() bool
func (*ListOrderArgs) Marshal ¶
func (p *ListOrderArgs) Marshal(out []byte) ([]byte, error)
func (*ListOrderArgs) Size ¶
func (p *ListOrderArgs) Size() (n int)
func (*ListOrderArgs) Unmarshal ¶
func (p *ListOrderArgs) Unmarshal(in []byte) error
type ListOrderResult ¶
type ListOrderResult struct {
Success *order.ListOrderResp
}
func (*ListOrderResult) FastRead ¶
func (*ListOrderResult) FastWrite ¶
func (p *ListOrderResult) FastWrite(buf []byte) (n int)
func (*ListOrderResult) GetResult ¶
func (p *ListOrderResult) GetResult() interface{}
func (*ListOrderResult) GetSuccess ¶
func (p *ListOrderResult) GetSuccess() *order.ListOrderResp
func (*ListOrderResult) IsSetSuccess ¶
func (p *ListOrderResult) IsSetSuccess() bool
func (*ListOrderResult) Marshal ¶
func (p *ListOrderResult) Marshal(out []byte) ([]byte, error)
func (*ListOrderResult) SetSuccess ¶
func (p *ListOrderResult) SetSuccess(x interface{})
func (*ListOrderResult) Size ¶
func (p *ListOrderResult) Size() (n int)
func (*ListOrderResult) Unmarshal ¶
func (p *ListOrderResult) Unmarshal(in []byte) error
type PlaceOrderArgs ¶
type PlaceOrderArgs struct {
Req *order.PlaceOrderReq
}
func (*PlaceOrderArgs) FastRead ¶
func (*PlaceOrderArgs) FastWrite ¶
func (p *PlaceOrderArgs) FastWrite(buf []byte) (n int)
func (*PlaceOrderArgs) GetFirstArgument ¶
func (p *PlaceOrderArgs) GetFirstArgument() interface{}
func (*PlaceOrderArgs) GetReq ¶
func (p *PlaceOrderArgs) GetReq() *order.PlaceOrderReq
func (*PlaceOrderArgs) IsSetReq ¶
func (p *PlaceOrderArgs) IsSetReq() bool
func (*PlaceOrderArgs) Marshal ¶
func (p *PlaceOrderArgs) Marshal(out []byte) ([]byte, error)
func (*PlaceOrderArgs) Size ¶
func (p *PlaceOrderArgs) Size() (n int)
func (*PlaceOrderArgs) Unmarshal ¶
func (p *PlaceOrderArgs) Unmarshal(in []byte) error
type PlaceOrderResult ¶
type PlaceOrderResult struct {
Success *order.PlaceOrderResp
}
func (*PlaceOrderResult) FastRead ¶
func (*PlaceOrderResult) FastWrite ¶
func (p *PlaceOrderResult) FastWrite(buf []byte) (n int)
func (*PlaceOrderResult) GetResult ¶
func (p *PlaceOrderResult) GetResult() interface{}
func (*PlaceOrderResult) GetSuccess ¶
func (p *PlaceOrderResult) GetSuccess() *order.PlaceOrderResp
func (*PlaceOrderResult) IsSetSuccess ¶
func (p *PlaceOrderResult) IsSetSuccess() bool
func (*PlaceOrderResult) Marshal ¶
func (p *PlaceOrderResult) Marshal(out []byte) ([]byte, error)
func (*PlaceOrderResult) SetSuccess ¶
func (p *PlaceOrderResult) SetSuccess(x interface{})
func (*PlaceOrderResult) Size ¶
func (p *PlaceOrderResult) Size() (n int)
func (*PlaceOrderResult) Unmarshal ¶
func (p *PlaceOrderResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.