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 ListOrdersArgs
- func (p *ListOrdersArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *ListOrdersArgs) FastWrite(buf []byte) (n int)
- func (p *ListOrdersArgs) GetFirstArgument() interface{}
- func (p *ListOrdersArgs) GetReq() *order.ListOrdersReq
- func (p *ListOrdersArgs) IsSetReq() bool
- func (p *ListOrdersArgs) Marshal(out []byte) ([]byte, error)
- func (p *ListOrdersArgs) Size() (n int)
- func (p *ListOrdersArgs) Unmarshal(in []byte) error
- type ListOrdersResult
- func (p *ListOrdersResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *ListOrdersResult) FastWrite(buf []byte) (n int)
- func (p *ListOrdersResult) GetResult() interface{}
- func (p *ListOrdersResult) GetSuccess() *order.ListOrdersResp
- func (p *ListOrdersResult) IsSetSuccess() bool
- func (p *ListOrdersResult) Marshal(out []byte) ([]byte, error)
- func (p *ListOrdersResult) SetSuccess(x interface{})
- func (p *ListOrdersResult) Size() (n int)
- func (p *ListOrdersResult) 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 ListOrdersArgs_Req_DEFAULT *order.ListOrdersReq
View Source
var ListOrdersResult_Success_DEFAULT *order.ListOrdersResp
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 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) ListOrders(ctx context.Context, Req *order.ListOrdersReq, callOptions ...callopt.Option) (r *order.ListOrdersResp, 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 ListOrdersArgs ¶
type ListOrdersArgs struct {
Req *order.ListOrdersReq
}
func (*ListOrdersArgs) FastWrite ¶
func (p *ListOrdersArgs) FastWrite(buf []byte) (n int)
func (*ListOrdersArgs) GetFirstArgument ¶
func (p *ListOrdersArgs) GetFirstArgument() interface{}
func (*ListOrdersArgs) GetReq ¶
func (p *ListOrdersArgs) GetReq() *order.ListOrdersReq
func (*ListOrdersArgs) IsSetReq ¶
func (p *ListOrdersArgs) IsSetReq() bool
func (*ListOrdersArgs) Size ¶
func (p *ListOrdersArgs) Size() (n int)
func (*ListOrdersArgs) Unmarshal ¶
func (p *ListOrdersArgs) Unmarshal(in []byte) error
type ListOrdersResult ¶
type ListOrdersResult struct {
Success *order.ListOrdersResp
}
func (*ListOrdersResult) FastWrite ¶
func (p *ListOrdersResult) FastWrite(buf []byte) (n int)
func (*ListOrdersResult) GetResult ¶
func (p *ListOrdersResult) GetResult() interface{}
func (*ListOrdersResult) GetSuccess ¶
func (p *ListOrdersResult) GetSuccess() *order.ListOrdersResp
func (*ListOrdersResult) IsSetSuccess ¶
func (p *ListOrdersResult) IsSetSuccess() bool
func (*ListOrdersResult) SetSuccess ¶
func (p *ListOrdersResult) SetSuccess(x interface{})
func (*ListOrdersResult) Size ¶
func (p *ListOrdersResult) Size() (n int)
func (*ListOrdersResult) Unmarshal ¶
func (p *ListOrdersResult) Unmarshal(in []byte) error
type PlaceOrderArgs ¶
type PlaceOrderArgs struct {
Req *order.PlaceOrderReq
}
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) 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) 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) 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.