Documentation ¶
Overview ¶
Code generated by Kitex v0.4.4. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler user_rpc.UserService, opts ...server.Option) server.Invoker
- func NewServer(handler user_rpc.UserService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type CheckUserArgs
- func (p *CheckUserArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *CheckUserArgs) FastWrite(buf []byte) (n int)
- func (p *CheckUserArgs) GetReq() *user_rpc.RPCCheckUserReq
- func (p *CheckUserArgs) IsSetReq() bool
- func (p *CheckUserArgs) Marshal(out []byte) ([]byte, error)
- func (p *CheckUserArgs) Size() (n int)
- func (p *CheckUserArgs) Unmarshal(in []byte) error
- type CheckUserResult
- func (p *CheckUserResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *CheckUserResult) FastWrite(buf []byte) (n int)
- func (p *CheckUserResult) GetSuccess() *user_rpc.RPCCheckUserResp
- func (p *CheckUserResult) IsSetSuccess() bool
- func (p *CheckUserResult) Marshal(out []byte) ([]byte, error)
- func (p *CheckUserResult) SetSuccess(x interface{})
- func (p *CheckUserResult) Size() (n int)
- func (p *CheckUserResult) Unmarshal(in []byte) error
- type Client
- type CreateUserArgs
- func (p *CreateUserArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *CreateUserArgs) FastWrite(buf []byte) (n int)
- func (p *CreateUserArgs) GetReq() *user_rpc.RPCCreateUserReq
- func (p *CreateUserArgs) IsSetReq() bool
- func (p *CreateUserArgs) Marshal(out []byte) ([]byte, error)
- func (p *CreateUserArgs) Size() (n int)
- func (p *CreateUserArgs) Unmarshal(in []byte) error
- type CreateUserResult
- func (p *CreateUserResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *CreateUserResult) FastWrite(buf []byte) (n int)
- func (p *CreateUserResult) GetSuccess() *user_rpc.RPCCreateUserResp
- func (p *CreateUserResult) IsSetSuccess() bool
- func (p *CreateUserResult) Marshal(out []byte) ([]byte, error)
- func (p *CreateUserResult) SetSuccess(x interface{})
- func (p *CreateUserResult) Size() (n int)
- func (p *CreateUserResult) Unmarshal(in []byte) error
- type QueryUserArgs
- func (p *QueryUserArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *QueryUserArgs) FastWrite(buf []byte) (n int)
- func (p *QueryUserArgs) GetReq() *user_rpc.RPCQueryUserReq
- func (p *QueryUserArgs) IsSetReq() bool
- func (p *QueryUserArgs) Marshal(out []byte) ([]byte, error)
- func (p *QueryUserArgs) Size() (n int)
- func (p *QueryUserArgs) Unmarshal(in []byte) error
- type QueryUserResult
- func (p *QueryUserResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *QueryUserResult) FastWrite(buf []byte) (n int)
- func (p *QueryUserResult) GetSuccess() *user_rpc.RPCQueryUserResp
- func (p *QueryUserResult) IsSetSuccess() bool
- func (p *QueryUserResult) Marshal(out []byte) ([]byte, error)
- func (p *QueryUserResult) SetSuccess(x interface{})
- func (p *QueryUserResult) Size() (n int)
- func (p *QueryUserResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CheckUserArgs_Req_DEFAULT *user_rpc.RPCCheckUserReq
View Source
var CheckUserResult_Success_DEFAULT *user_rpc.RPCCheckUserResp
View Source
var CreateUserArgs_Req_DEFAULT *user_rpc.RPCCreateUserReq
View Source
var CreateUserResult_Success_DEFAULT *user_rpc.RPCCreateUserResp
View Source
var QueryUserArgs_Req_DEFAULT *user_rpc.RPCQueryUserReq
View Source
var QueryUserResult_Success_DEFAULT *user_rpc.RPCQueryUserResp
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 *user_rpc.RPCCheckUserReq
}
func (*CheckUserArgs) FastWrite ¶
func (p *CheckUserArgs) FastWrite(buf []byte) (n int)
func (*CheckUserArgs) GetReq ¶
func (p *CheckUserArgs) GetReq() *user_rpc.RPCCheckUserReq
func (*CheckUserArgs) IsSetReq ¶
func (p *CheckUserArgs) IsSetReq() bool
func (*CheckUserArgs) Size ¶
func (p *CheckUserArgs) Size() (n int)
func (*CheckUserArgs) Unmarshal ¶
func (p *CheckUserArgs) Unmarshal(in []byte) error
type CheckUserResult ¶
type CheckUserResult struct {
Success *user_rpc.RPCCheckUserResp
}
func (*CheckUserResult) FastWrite ¶
func (p *CheckUserResult) FastWrite(buf []byte) (n int)
func (*CheckUserResult) GetSuccess ¶
func (p *CheckUserResult) GetSuccess() *user_rpc.RPCCheckUserResp
func (*CheckUserResult) IsSetSuccess ¶
func (p *CheckUserResult) IsSetSuccess() bool
func (*CheckUserResult) SetSuccess ¶
func (p *CheckUserResult) SetSuccess(x interface{})
func (*CheckUserResult) Size ¶
func (p *CheckUserResult) Size() (n int)
func (*CheckUserResult) Unmarshal ¶
func (p *CheckUserResult) Unmarshal(in []byte) error
type Client ¶
type Client interface { CreateUser(ctx context.Context, Req *user_rpc.RPCCreateUserReq, callOptions ...callopt.Option) (r *user_rpc.RPCCreateUserResp, err error) CheckUser(ctx context.Context, Req *user_rpc.RPCCheckUserReq, callOptions ...callopt.Option) (r *user_rpc.RPCCheckUserResp, err error) QueryUser(ctx context.Context, Req *user_rpc.RPCQueryUserReq, callOptions ...callopt.Option) (r *user_rpc.RPCQueryUserResp, 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 *user_rpc.RPCCreateUserReq
}
func (*CreateUserArgs) FastWrite ¶
func (p *CreateUserArgs) FastWrite(buf []byte) (n int)
func (*CreateUserArgs) GetReq ¶
func (p *CreateUserArgs) GetReq() *user_rpc.RPCCreateUserReq
func (*CreateUserArgs) IsSetReq ¶
func (p *CreateUserArgs) IsSetReq() bool
func (*CreateUserArgs) Size ¶
func (p *CreateUserArgs) Size() (n int)
func (*CreateUserArgs) Unmarshal ¶
func (p *CreateUserArgs) Unmarshal(in []byte) error
type CreateUserResult ¶
type CreateUserResult struct {
Success *user_rpc.RPCCreateUserResp
}
func (*CreateUserResult) FastWrite ¶
func (p *CreateUserResult) FastWrite(buf []byte) (n int)
func (*CreateUserResult) GetSuccess ¶
func (p *CreateUserResult) GetSuccess() *user_rpc.RPCCreateUserResp
func (*CreateUserResult) IsSetSuccess ¶
func (p *CreateUserResult) IsSetSuccess() bool
func (*CreateUserResult) SetSuccess ¶
func (p *CreateUserResult) SetSuccess(x interface{})
func (*CreateUserResult) Size ¶
func (p *CreateUserResult) Size() (n int)
func (*CreateUserResult) Unmarshal ¶
func (p *CreateUserResult) Unmarshal(in []byte) error
type QueryUserArgs ¶
type QueryUserArgs struct {
Req *user_rpc.RPCQueryUserReq
}
func (*QueryUserArgs) FastWrite ¶
func (p *QueryUserArgs) FastWrite(buf []byte) (n int)
func (*QueryUserArgs) GetReq ¶
func (p *QueryUserArgs) GetReq() *user_rpc.RPCQueryUserReq
func (*QueryUserArgs) IsSetReq ¶
func (p *QueryUserArgs) IsSetReq() bool
func (*QueryUserArgs) Size ¶
func (p *QueryUserArgs) Size() (n int)
func (*QueryUserArgs) Unmarshal ¶
func (p *QueryUserArgs) Unmarshal(in []byte) error
type QueryUserResult ¶
type QueryUserResult struct {
Success *user_rpc.RPCQueryUserResp
}
func (*QueryUserResult) FastWrite ¶
func (p *QueryUserResult) FastWrite(buf []byte) (n int)
func (*QueryUserResult) GetSuccess ¶
func (p *QueryUserResult) GetSuccess() *user_rpc.RPCQueryUserResp
func (*QueryUserResult) IsSetSuccess ¶
func (p *QueryUserResult) IsSetSuccess() bool
func (*QueryUserResult) SetSuccess ¶
func (p *QueryUserResult) SetSuccess(x interface{})
func (*QueryUserResult) Size ¶
func (p *QueryUserResult) Size() (n int)
func (*QueryUserResult) Unmarshal ¶
func (p *QueryUserResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.