Documentation ¶
Overview ¶
Code generated by Kitex v0.6.2. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler user.UserService, opts ...server.Option) server.Invoker
- func NewServer(handler user.UserService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type GetUserArgs
- func (p *GetUserArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetUserArgs) FastWrite(buf []byte) (n int)
- func (p *GetUserArgs) GetFirstArgument() interface{}
- func (p *GetUserArgs) GetReq() *user.UserRequest
- func (p *GetUserArgs) IsSetReq() bool
- func (p *GetUserArgs) Marshal(out []byte) ([]byte, error)
- func (p *GetUserArgs) Size() (n int)
- func (p *GetUserArgs) Unmarshal(in []byte) error
- type GetUserResult
- func (p *GetUserResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetUserResult) FastWrite(buf []byte) (n int)
- func (p *GetUserResult) GetResult() interface{}
- func (p *GetUserResult) GetSuccess() *user.UserResponse
- func (p *GetUserResult) IsSetSuccess() bool
- func (p *GetUserResult) Marshal(out []byte) ([]byte, error)
- func (p *GetUserResult) SetSuccess(x interface{})
- func (p *GetUserResult) Size() (n int)
- func (p *GetUserResult) Unmarshal(in []byte) error
- type UserLoginArgs
- func (p *UserLoginArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *UserLoginArgs) FastWrite(buf []byte) (n int)
- func (p *UserLoginArgs) GetFirstArgument() interface{}
- func (p *UserLoginArgs) GetReq() *user.UserLoRegRequest
- func (p *UserLoginArgs) IsSetReq() bool
- func (p *UserLoginArgs) Marshal(out []byte) ([]byte, error)
- func (p *UserLoginArgs) Size() (n int)
- func (p *UserLoginArgs) Unmarshal(in []byte) error
- type UserLoginResult
- func (p *UserLoginResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *UserLoginResult) FastWrite(buf []byte) (n int)
- func (p *UserLoginResult) GetResult() interface{}
- func (p *UserLoginResult) GetSuccess() *user.UserLoRegResponse
- func (p *UserLoginResult) IsSetSuccess() bool
- func (p *UserLoginResult) Marshal(out []byte) ([]byte, error)
- func (p *UserLoginResult) SetSuccess(x interface{})
- func (p *UserLoginResult) Size() (n int)
- func (p *UserLoginResult) Unmarshal(in []byte) error
- type UserRegisterArgs
- func (p *UserRegisterArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *UserRegisterArgs) FastWrite(buf []byte) (n int)
- func (p *UserRegisterArgs) GetFirstArgument() interface{}
- func (p *UserRegisterArgs) GetReq() *user.UserLoRegRequest
- func (p *UserRegisterArgs) IsSetReq() bool
- func (p *UserRegisterArgs) Marshal(out []byte) ([]byte, error)
- func (p *UserRegisterArgs) Size() (n int)
- func (p *UserRegisterArgs) Unmarshal(in []byte) error
- type UserRegisterResult
- func (p *UserRegisterResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *UserRegisterResult) FastWrite(buf []byte) (n int)
- func (p *UserRegisterResult) GetResult() interface{}
- func (p *UserRegisterResult) GetSuccess() *user.UserLoRegResponse
- func (p *UserRegisterResult) IsSetSuccess() bool
- func (p *UserRegisterResult) Marshal(out []byte) ([]byte, error)
- func (p *UserRegisterResult) SetSuccess(x interface{})
- func (p *UserRegisterResult) Size() (n int)
- func (p *UserRegisterResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GetUserArgs_Req_DEFAULT *user.UserRequest
View Source
var GetUserResult_Success_DEFAULT *user.UserResponse
View Source
var UserLoginArgs_Req_DEFAULT *user.UserLoRegRequest
View Source
var UserLoginResult_Success_DEFAULT *user.UserLoRegResponse
View Source
var UserRegisterArgs_Req_DEFAULT *user.UserLoRegRequest
View Source
var UserRegisterResult_Success_DEFAULT *user.UserLoRegResponse
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
Types ¶
type Client ¶
type Client interface { GetUser(ctx context.Context, Req *user.UserRequest, callOptions ...callopt.Option) (r *user.UserResponse, err error) UserLogin(ctx context.Context, Req *user.UserLoRegRequest, callOptions ...callopt.Option) (r *user.UserLoRegResponse, err error) UserRegister(ctx context.Context, Req *user.UserLoRegRequest, callOptions ...callopt.Option) (r *user.UserLoRegResponse, 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 GetUserArgs ¶
type GetUserArgs struct {
Req *user.UserRequest
}
func (*GetUserArgs) FastWrite ¶
func (p *GetUserArgs) FastWrite(buf []byte) (n int)
func (*GetUserArgs) GetFirstArgument ¶
func (p *GetUserArgs) GetFirstArgument() interface{}
func (*GetUserArgs) GetReq ¶
func (p *GetUserArgs) GetReq() *user.UserRequest
func (*GetUserArgs) IsSetReq ¶
func (p *GetUserArgs) IsSetReq() bool
func (*GetUserArgs) Size ¶
func (p *GetUserArgs) Size() (n int)
func (*GetUserArgs) Unmarshal ¶
func (p *GetUserArgs) Unmarshal(in []byte) error
type GetUserResult ¶
type GetUserResult struct {
Success *user.UserResponse
}
func (*GetUserResult) FastWrite ¶
func (p *GetUserResult) FastWrite(buf []byte) (n int)
func (*GetUserResult) GetResult ¶
func (p *GetUserResult) GetResult() interface{}
func (*GetUserResult) GetSuccess ¶
func (p *GetUserResult) GetSuccess() *user.UserResponse
func (*GetUserResult) IsSetSuccess ¶
func (p *GetUserResult) IsSetSuccess() bool
func (*GetUserResult) SetSuccess ¶
func (p *GetUserResult) SetSuccess(x interface{})
func (*GetUserResult) Size ¶
func (p *GetUserResult) Size() (n int)
func (*GetUserResult) Unmarshal ¶
func (p *GetUserResult) Unmarshal(in []byte) error
type UserLoginArgs ¶
type UserLoginArgs struct {
Req *user.UserLoRegRequest
}
func (*UserLoginArgs) FastWrite ¶
func (p *UserLoginArgs) FastWrite(buf []byte) (n int)
func (*UserLoginArgs) GetFirstArgument ¶
func (p *UserLoginArgs) GetFirstArgument() interface{}
func (*UserLoginArgs) GetReq ¶
func (p *UserLoginArgs) GetReq() *user.UserLoRegRequest
func (*UserLoginArgs) IsSetReq ¶
func (p *UserLoginArgs) IsSetReq() bool
func (*UserLoginArgs) Size ¶
func (p *UserLoginArgs) Size() (n int)
func (*UserLoginArgs) Unmarshal ¶
func (p *UserLoginArgs) Unmarshal(in []byte) error
type UserLoginResult ¶
type UserLoginResult struct {
Success *user.UserLoRegResponse
}
func (*UserLoginResult) FastWrite ¶
func (p *UserLoginResult) FastWrite(buf []byte) (n int)
func (*UserLoginResult) GetResult ¶
func (p *UserLoginResult) GetResult() interface{}
func (*UserLoginResult) GetSuccess ¶
func (p *UserLoginResult) GetSuccess() *user.UserLoRegResponse
func (*UserLoginResult) IsSetSuccess ¶
func (p *UserLoginResult) IsSetSuccess() bool
func (*UserLoginResult) SetSuccess ¶
func (p *UserLoginResult) SetSuccess(x interface{})
func (*UserLoginResult) Size ¶
func (p *UserLoginResult) Size() (n int)
func (*UserLoginResult) Unmarshal ¶
func (p *UserLoginResult) Unmarshal(in []byte) error
type UserRegisterArgs ¶
type UserRegisterArgs struct {
Req *user.UserLoRegRequest
}
func (*UserRegisterArgs) FastWrite ¶
func (p *UserRegisterArgs) FastWrite(buf []byte) (n int)
func (*UserRegisterArgs) GetFirstArgument ¶
func (p *UserRegisterArgs) GetFirstArgument() interface{}
func (*UserRegisterArgs) GetReq ¶
func (p *UserRegisterArgs) GetReq() *user.UserLoRegRequest
func (*UserRegisterArgs) IsSetReq ¶
func (p *UserRegisterArgs) IsSetReq() bool
func (*UserRegisterArgs) Size ¶
func (p *UserRegisterArgs) Size() (n int)
func (*UserRegisterArgs) Unmarshal ¶
func (p *UserRegisterArgs) Unmarshal(in []byte) error
type UserRegisterResult ¶
type UserRegisterResult struct {
Success *user.UserLoRegResponse
}
func (*UserRegisterResult) FastWrite ¶
func (p *UserRegisterResult) FastWrite(buf []byte) (n int)
func (*UserRegisterResult) GetResult ¶
func (p *UserRegisterResult) GetResult() interface{}
func (*UserRegisterResult) GetSuccess ¶
func (p *UserRegisterResult) GetSuccess() *user.UserLoRegResponse
func (*UserRegisterResult) IsSetSuccess ¶
func (p *UserRegisterResult) IsSetSuccess() bool
func (*UserRegisterResult) Marshal ¶
func (p *UserRegisterResult) Marshal(out []byte) ([]byte, error)
func (*UserRegisterResult) SetSuccess ¶
func (p *UserRegisterResult) SetSuccess(x interface{})
func (*UserRegisterResult) Size ¶
func (p *UserRegisterResult) Size() (n int)
func (*UserRegisterResult) Unmarshal ¶
func (p *UserRegisterResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.