Documentation ¶
Overview ¶
Code generated by Kitex v0.1.0. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler grpcConfig.GrpcConfig, opts ...server.Option) server.Invoker
- func NewServer(handler grpcConfig.GrpcConfig, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type DelArgs
- type DelResult
- type GetArgs
- type GetResult
- type PutArgs
- type PutResult
Constants ¶
This section is empty.
Variables ¶
View Source
var DelArgs_Req_DEFAULT *grpcConfig.DelRequest
View Source
var DelResult_Success_DEFAULT *grpcConfig.DelResponse
View Source
var GetArgs_Req_DEFAULT *grpcConfig.Request
View Source
var GetResult_Success_DEFAULT *grpcConfig.Response
View Source
var PutArgs_Req_DEFAULT *grpcConfig.PutRequest
View Source
var PutResult_Success_DEFAULT *grpcConfig.PutResponse
Functions ¶
func NewInvoker ¶
func NewInvoker(handler grpcConfig.GrpcConfig, opts ...server.Option) server.Invoker
NewInvoker creates a server.Invoker with the given handler and options.
func NewServer ¶
func NewServer(handler grpcConfig.GrpcConfig, opts ...server.Option) server.Server
NewServer creates a server.Server with the given handler and options.
func NewServiceInfo ¶ added in v1.1.8
func NewServiceInfo() *kitex.ServiceInfo
Types ¶
type Client ¶
type Client interface { Get(ctx context.Context, Req *grpcConfig.Request, callOptions ...callopt.Option) (r *grpcConfig.Response, err error) Put(ctx context.Context, Req *grpcConfig.PutRequest, callOptions ...callopt.Option) (r *grpcConfig.PutResponse, err error) Del(ctx context.Context, Req *grpcConfig.DelRequest, callOptions ...callopt.Option) (r *grpcConfig.DelResponse, 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 DelArgs ¶ added in v1.1.0
type DelArgs struct {
Req *grpcConfig.DelRequest
}
func (*DelArgs) GetReq ¶ added in v1.1.0
func (p *DelArgs) GetReq() *grpcConfig.DelRequest
type DelResult ¶ added in v1.1.0
type DelResult struct {
Success *grpcConfig.DelResponse
}
func (*DelResult) GetSuccess ¶ added in v1.1.0
func (p *DelResult) GetSuccess() *grpcConfig.DelResponse
func (*DelResult) IsSetSuccess ¶ added in v1.1.0
func (*DelResult) SetSuccess ¶ added in v1.1.0
func (p *DelResult) SetSuccess(x interface{})
type GetArgs ¶
type GetArgs struct {
Req *grpcConfig.Request
}
func (*GetArgs) GetReq ¶
func (p *GetArgs) GetReq() *grpcConfig.Request
type GetResult ¶
type GetResult struct {
Success *grpcConfig.Response
}
func (*GetResult) GetSuccess ¶
func (p *GetResult) GetSuccess() *grpcConfig.Response
func (*GetResult) IsSetSuccess ¶
func (*GetResult) SetSuccess ¶
func (p *GetResult) SetSuccess(x interface{})
type PutArgs ¶
type PutArgs struct {
Req *grpcConfig.PutRequest
}
func (*PutArgs) GetReq ¶
func (p *PutArgs) GetReq() *grpcConfig.PutRequest
type PutResult ¶
type PutResult struct {
Success *grpcConfig.PutResponse
}
func (*PutResult) GetSuccess ¶
func (p *PutResult) GetSuccess() *grpcConfig.PutResponse
func (*PutResult) IsSetSuccess ¶
func (*PutResult) SetSuccess ¶
func (p *PutResult) SetSuccess(x interface{})
Click to show internal directories.
Click to hide internal directories.