Documentation ¶
Overview ¶
Code generated by Kitex v0.1.4. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler userdemo.UserService, opts ...server.Option) server.Invoker
- func NewServer(handler userdemo.UserService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type CheckUserArgs
- type CheckUserResult
- type Client
- type CreateUserArgs
- type CreateUserResult
- type MGetUserArgs
- type MGetUserResult
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckUserArgs_Req_DEFAULT *userdemo.CheckUserRequest
View Source
var CheckUserResult_Success_DEFAULT *userdemo.CheckUserResponse
View Source
var CreateUserArgs_Req_DEFAULT *userdemo.CreateUserRequest
View Source
var CreateUserResult_Success_DEFAULT *userdemo.CreateUserResponse
View Source
var MGetUserArgs_Req_DEFAULT *userdemo.MGetUserRequest
View Source
var MGetUserResult_Success_DEFAULT *userdemo.MGetUserResponse
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
Types ¶
type CheckUserArgs ¶
type CheckUserArgs struct {
Req *userdemo.CheckUserRequest
}
func (*CheckUserArgs) GetReq ¶
func (p *CheckUserArgs) GetReq() *userdemo.CheckUserRequest
func (*CheckUserArgs) IsSetReq ¶
func (p *CheckUserArgs) IsSetReq() bool
func (*CheckUserArgs) Unmarshal ¶
func (p *CheckUserArgs) Unmarshal(in []byte) error
type CheckUserResult ¶
type CheckUserResult struct {
Success *userdemo.CheckUserResponse
}
func (*CheckUserResult) GetSuccess ¶
func (p *CheckUserResult) GetSuccess() *userdemo.CheckUserResponse
func (*CheckUserResult) IsSetSuccess ¶
func (p *CheckUserResult) IsSetSuccess() bool
func (*CheckUserResult) SetSuccess ¶
func (p *CheckUserResult) SetSuccess(x interface{})
func (*CheckUserResult) Unmarshal ¶
func (p *CheckUserResult) Unmarshal(in []byte) error
type Client ¶
type Client interface { CreateUser(ctx context.Context, Req *userdemo.CreateUserRequest, callOptions ...callopt.Option) (r *userdemo.CreateUserResponse, err error) MGetUser(ctx context.Context, Req *userdemo.MGetUserRequest, callOptions ...callopt.Option) (r *userdemo.MGetUserResponse, err error) CheckUser(ctx context.Context, Req *userdemo.CheckUserRequest, callOptions ...callopt.Option) (r *userdemo.CheckUserResponse, 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 CreateUserArgs ¶
type CreateUserArgs struct {
Req *userdemo.CreateUserRequest
}
func (*CreateUserArgs) GetReq ¶
func (p *CreateUserArgs) GetReq() *userdemo.CreateUserRequest
func (*CreateUserArgs) IsSetReq ¶
func (p *CreateUserArgs) IsSetReq() bool
func (*CreateUserArgs) Unmarshal ¶
func (p *CreateUserArgs) Unmarshal(in []byte) error
type CreateUserResult ¶
type CreateUserResult struct {
Success *userdemo.CreateUserResponse
}
func (*CreateUserResult) GetSuccess ¶
func (p *CreateUserResult) GetSuccess() *userdemo.CreateUserResponse
func (*CreateUserResult) IsSetSuccess ¶
func (p *CreateUserResult) IsSetSuccess() bool
func (*CreateUserResult) SetSuccess ¶
func (p *CreateUserResult) SetSuccess(x interface{})
func (*CreateUserResult) Unmarshal ¶
func (p *CreateUserResult) Unmarshal(in []byte) error
type MGetUserArgs ¶
type MGetUserArgs struct {
Req *userdemo.MGetUserRequest
}
func (*MGetUserArgs) GetReq ¶
func (p *MGetUserArgs) GetReq() *userdemo.MGetUserRequest
func (*MGetUserArgs) IsSetReq ¶
func (p *MGetUserArgs) IsSetReq() bool
func (*MGetUserArgs) Unmarshal ¶
func (p *MGetUserArgs) Unmarshal(in []byte) error
type MGetUserResult ¶
type MGetUserResult struct {
Success *userdemo.MGetUserResponse
}
func (*MGetUserResult) GetSuccess ¶
func (p *MGetUserResult) GetSuccess() *userdemo.MGetUserResponse
func (*MGetUserResult) IsSetSuccess ¶
func (p *MGetUserResult) IsSetSuccess() bool
func (*MGetUserResult) SetSuccess ¶
func (p *MGetUserResult) SetSuccess(x interface{})
func (*MGetUserResult) Unmarshal ¶
func (p *MGetUserResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.