Documentation ¶
Overview ¶
Code generated by Kitex v0.9.1. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler cart.CartService, opts ...server.Option) server.Invoker
- func NewServer(handler cart.CartService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler cart.CartService, opts ...server.RegisterOption) error
- type AddItemArgs
- func (p *AddItemArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *AddItemArgs) FastWrite(buf []byte) (n int)
- func (p *AddItemArgs) GetFirstArgument() interface{}
- func (p *AddItemArgs) GetReq() *cart.AddItemReq
- func (p *AddItemArgs) IsSetReq() bool
- func (p *AddItemArgs) Marshal(out []byte) ([]byte, error)
- func (p *AddItemArgs) Size() (n int)
- func (p *AddItemArgs) Unmarshal(in []byte) error
- type AddItemResult
- func (p *AddItemResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *AddItemResult) FastWrite(buf []byte) (n int)
- func (p *AddItemResult) GetResult() interface{}
- func (p *AddItemResult) GetSuccess() *cart.AddItemResp
- func (p *AddItemResult) IsSetSuccess() bool
- func (p *AddItemResult) Marshal(out []byte) ([]byte, error)
- func (p *AddItemResult) SetSuccess(x interface{})
- func (p *AddItemResult) Size() (n int)
- func (p *AddItemResult) Unmarshal(in []byte) error
- type Client
- type EmptyCartArgs
- func (p *EmptyCartArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *EmptyCartArgs) FastWrite(buf []byte) (n int)
- func (p *EmptyCartArgs) GetFirstArgument() interface{}
- func (p *EmptyCartArgs) GetReq() *cart.EmptyCartReq
- func (p *EmptyCartArgs) IsSetReq() bool
- func (p *EmptyCartArgs) Marshal(out []byte) ([]byte, error)
- func (p *EmptyCartArgs) Size() (n int)
- func (p *EmptyCartArgs) Unmarshal(in []byte) error
- type EmptyCartResult
- func (p *EmptyCartResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *EmptyCartResult) FastWrite(buf []byte) (n int)
- func (p *EmptyCartResult) GetResult() interface{}
- func (p *EmptyCartResult) GetSuccess() *cart.EmptyCartResp
- func (p *EmptyCartResult) IsSetSuccess() bool
- func (p *EmptyCartResult) Marshal(out []byte) ([]byte, error)
- func (p *EmptyCartResult) SetSuccess(x interface{})
- func (p *EmptyCartResult) Size() (n int)
- func (p *EmptyCartResult) Unmarshal(in []byte) error
- type GetCartArgs
- func (p *GetCartArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetCartArgs) FastWrite(buf []byte) (n int)
- func (p *GetCartArgs) GetFirstArgument() interface{}
- func (p *GetCartArgs) GetReq() *cart.GetCartReq
- func (p *GetCartArgs) IsSetReq() bool
- func (p *GetCartArgs) Marshal(out []byte) ([]byte, error)
- func (p *GetCartArgs) Size() (n int)
- func (p *GetCartArgs) Unmarshal(in []byte) error
- type GetCartResult
- func (p *GetCartResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetCartResult) FastWrite(buf []byte) (n int)
- func (p *GetCartResult) GetResult() interface{}
- func (p *GetCartResult) GetSuccess() *cart.GetCartResp
- func (p *GetCartResult) IsSetSuccess() bool
- func (p *GetCartResult) Marshal(out []byte) ([]byte, error)
- func (p *GetCartResult) SetSuccess(x interface{})
- func (p *GetCartResult) Size() (n int)
- func (p *GetCartResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var AddItemArgs_Req_DEFAULT *cart.AddItemReq
View Source
var AddItemResult_Success_DEFAULT *cart.AddItemResp
View Source
var EmptyCartArgs_Req_DEFAULT *cart.EmptyCartReq
View Source
var EmptyCartResult_Success_DEFAULT *cart.EmptyCartResp
View Source
var GetCartArgs_Req_DEFAULT *cart.GetCartReq
View Source
var GetCartResult_Success_DEFAULT *cart.GetCartResp
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 cart.CartService, opts ...server.RegisterOption) error
Types ¶
type AddItemArgs ¶
type AddItemArgs struct {
Req *cart.AddItemReq
}
func (*AddItemArgs) FastWrite ¶
func (p *AddItemArgs) FastWrite(buf []byte) (n int)
func (*AddItemArgs) GetFirstArgument ¶
func (p *AddItemArgs) GetFirstArgument() interface{}
func (*AddItemArgs) GetReq ¶
func (p *AddItemArgs) GetReq() *cart.AddItemReq
func (*AddItemArgs) IsSetReq ¶
func (p *AddItemArgs) IsSetReq() bool
func (*AddItemArgs) Size ¶
func (p *AddItemArgs) Size() (n int)
func (*AddItemArgs) Unmarshal ¶
func (p *AddItemArgs) Unmarshal(in []byte) error
type AddItemResult ¶
type AddItemResult struct {
Success *cart.AddItemResp
}
func (*AddItemResult) FastWrite ¶
func (p *AddItemResult) FastWrite(buf []byte) (n int)
func (*AddItemResult) GetResult ¶
func (p *AddItemResult) GetResult() interface{}
func (*AddItemResult) GetSuccess ¶
func (p *AddItemResult) GetSuccess() *cart.AddItemResp
func (*AddItemResult) IsSetSuccess ¶
func (p *AddItemResult) IsSetSuccess() bool
func (*AddItemResult) SetSuccess ¶
func (p *AddItemResult) SetSuccess(x interface{})
func (*AddItemResult) Size ¶
func (p *AddItemResult) Size() (n int)
func (*AddItemResult) Unmarshal ¶
func (p *AddItemResult) Unmarshal(in []byte) error
type Client ¶
type Client interface { AddItem(ctx context.Context, Req *cart.AddItemReq, callOptions ...callopt.Option) (r *cart.AddItemResp, err error) GetCart(ctx context.Context, Req *cart.GetCartReq, callOptions ...callopt.Option) (r *cart.GetCartResp, err error) EmptyCart(ctx context.Context, Req *cart.EmptyCartReq, callOptions ...callopt.Option) (r *cart.EmptyCartResp, 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 EmptyCartArgs ¶
type EmptyCartArgs struct {
Req *cart.EmptyCartReq
}
func (*EmptyCartArgs) FastWrite ¶
func (p *EmptyCartArgs) FastWrite(buf []byte) (n int)
func (*EmptyCartArgs) GetFirstArgument ¶
func (p *EmptyCartArgs) GetFirstArgument() interface{}
func (*EmptyCartArgs) GetReq ¶
func (p *EmptyCartArgs) GetReq() *cart.EmptyCartReq
func (*EmptyCartArgs) IsSetReq ¶
func (p *EmptyCartArgs) IsSetReq() bool
func (*EmptyCartArgs) Size ¶
func (p *EmptyCartArgs) Size() (n int)
func (*EmptyCartArgs) Unmarshal ¶
func (p *EmptyCartArgs) Unmarshal(in []byte) error
type EmptyCartResult ¶
type EmptyCartResult struct {
Success *cart.EmptyCartResp
}
func (*EmptyCartResult) FastWrite ¶
func (p *EmptyCartResult) FastWrite(buf []byte) (n int)
func (*EmptyCartResult) GetResult ¶
func (p *EmptyCartResult) GetResult() interface{}
func (*EmptyCartResult) GetSuccess ¶
func (p *EmptyCartResult) GetSuccess() *cart.EmptyCartResp
func (*EmptyCartResult) IsSetSuccess ¶
func (p *EmptyCartResult) IsSetSuccess() bool
func (*EmptyCartResult) SetSuccess ¶
func (p *EmptyCartResult) SetSuccess(x interface{})
func (*EmptyCartResult) Size ¶
func (p *EmptyCartResult) Size() (n int)
func (*EmptyCartResult) Unmarshal ¶
func (p *EmptyCartResult) Unmarshal(in []byte) error
type GetCartArgs ¶
type GetCartArgs struct {
Req *cart.GetCartReq
}
func (*GetCartArgs) FastWrite ¶
func (p *GetCartArgs) FastWrite(buf []byte) (n int)
func (*GetCartArgs) GetFirstArgument ¶
func (p *GetCartArgs) GetFirstArgument() interface{}
func (*GetCartArgs) GetReq ¶
func (p *GetCartArgs) GetReq() *cart.GetCartReq
func (*GetCartArgs) IsSetReq ¶
func (p *GetCartArgs) IsSetReq() bool
func (*GetCartArgs) Size ¶
func (p *GetCartArgs) Size() (n int)
func (*GetCartArgs) Unmarshal ¶
func (p *GetCartArgs) Unmarshal(in []byte) error
type GetCartResult ¶
type GetCartResult struct {
Success *cart.GetCartResp
}
func (*GetCartResult) FastWrite ¶
func (p *GetCartResult) FastWrite(buf []byte) (n int)
func (*GetCartResult) GetResult ¶
func (p *GetCartResult) GetResult() interface{}
func (*GetCartResult) GetSuccess ¶
func (p *GetCartResult) GetSuccess() *cart.GetCartResp
func (*GetCartResult) IsSetSuccess ¶
func (p *GetCartResult) IsSetSuccess() bool
func (*GetCartResult) SetSuccess ¶
func (p *GetCartResult) SetSuccess(x interface{})
func (*GetCartResult) Size ¶
func (p *GetCartResult) Size() (n int)
func (*GetCartResult) Unmarshal ¶
func (p *GetCartResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.