Documentation
¶
Overview ¶
Code generated by Kitex v0.12.1. DO NOT EDIT.
Index ¶
- Variables
- func NewServer(handler data.DataService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler data.DataService, opts ...server.RegisterOption) error
- type Client
- type InsertArgs
- func (p *InsertArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *InsertArgs) FastWrite(buf []byte) (n int)
- func (p *InsertArgs) GetFirstArgument() interface{}
- func (p *InsertArgs) GetReq() *data.InsertReq
- func (p *InsertArgs) IsSetReq() bool
- func (p *InsertArgs) Marshal(out []byte) ([]byte, error)
- func (p *InsertArgs) Size() (n int)
- func (p *InsertArgs) Unmarshal(in []byte) error
- type InsertResult
- func (p *InsertResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *InsertResult) FastWrite(buf []byte) (n int)
- func (p *InsertResult) GetResult() interface{}
- func (p *InsertResult) GetSuccess() *data.InsertResp
- func (p *InsertResult) IsSetSuccess() bool
- func (p *InsertResult) Marshal(out []byte) ([]byte, error)
- func (p *InsertResult) SetSuccess(x interface{})
- func (p *InsertResult) Size() (n int)
- func (p *InsertResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var InsertArgs_Req_DEFAULT *data.InsertReq
View Source
var InsertResult_Success_DEFAULT *data.InsertResp
Functions ¶
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 data.DataService, opts ...server.RegisterOption) error
Types ¶
type Client ¶
type Client interface {
Insert(ctx context.Context, Req *data.InsertReq, callOptions ...callopt.Option) (r *data.InsertResp, 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 InsertArgs ¶
func (*InsertArgs) FastWrite ¶
func (p *InsertArgs) FastWrite(buf []byte) (n int)
func (*InsertArgs) GetFirstArgument ¶
func (p *InsertArgs) GetFirstArgument() interface{}
func (*InsertArgs) GetReq ¶
func (p *InsertArgs) GetReq() *data.InsertReq
func (*InsertArgs) IsSetReq ¶
func (p *InsertArgs) IsSetReq() bool
func (*InsertArgs) Size ¶
func (p *InsertArgs) Size() (n int)
func (*InsertArgs) Unmarshal ¶
func (p *InsertArgs) Unmarshal(in []byte) error
type InsertResult ¶
type InsertResult struct {
Success *data.InsertResp
}
func (*InsertResult) FastWrite ¶
func (p *InsertResult) FastWrite(buf []byte) (n int)
func (*InsertResult) GetResult ¶
func (p *InsertResult) GetResult() interface{}
func (*InsertResult) GetSuccess ¶
func (p *InsertResult) GetSuccess() *data.InsertResp
func (*InsertResult) IsSetSuccess ¶
func (p *InsertResult) IsSetSuccess() bool
func (*InsertResult) SetSuccess ¶
func (p *InsertResult) SetSuccess(x interface{})
func (*InsertResult) Size ¶
func (p *InsertResult) Size() (n int)
func (*InsertResult) Unmarshal ¶
func (p *InsertResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.