Documentation ¶
Overview ¶
Code generated by Kitex v0.4.4. 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 LoginArgs
- func (p *LoginArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *LoginArgs) FastWrite(buf []byte) (n int)
- func (p *LoginArgs) GetReq() *user.UserLoginRequest
- func (p *LoginArgs) IsSetReq() bool
- func (p *LoginArgs) Marshal(out []byte) ([]byte, error)
- func (p *LoginArgs) Size() (n int)
- func (p *LoginArgs) Unmarshal(in []byte) error
- type LoginResult
- func (p *LoginResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *LoginResult) FastWrite(buf []byte) (n int)
- func (p *LoginResult) GetSuccess() *user.UserLoginResponse
- func (p *LoginResult) IsSetSuccess() bool
- func (p *LoginResult) Marshal(out []byte) ([]byte, error)
- func (p *LoginResult) SetSuccess(x interface{})
- func (p *LoginResult) Size() (n int)
- func (p *LoginResult) Unmarshal(in []byte) error
- type RegisterArgs
- func (p *RegisterArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *RegisterArgs) FastWrite(buf []byte) (n int)
- func (p *RegisterArgs) GetReq() *user.UserRegisterRequest
- func (p *RegisterArgs) IsSetReq() bool
- func (p *RegisterArgs) Marshal(out []byte) ([]byte, error)
- func (p *RegisterArgs) Size() (n int)
- func (p *RegisterArgs) Unmarshal(in []byte) error
- type RegisterResult
- func (p *RegisterResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *RegisterResult) FastWrite(buf []byte) (n int)
- func (p *RegisterResult) GetSuccess() *user.UserRegisterResponse
- func (p *RegisterResult) IsSetSuccess() bool
- func (p *RegisterResult) Marshal(out []byte) ([]byte, error)
- func (p *RegisterResult) SetSuccess(x interface{})
- func (p *RegisterResult) Size() (n int)
- func (p *RegisterResult) Unmarshal(in []byte) error
- type UserInfoArgs
- func (p *UserInfoArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *UserInfoArgs) FastWrite(buf []byte) (n int)
- func (p *UserInfoArgs) GetReq() *user.UserInfoRequest
- func (p *UserInfoArgs) IsSetReq() bool
- func (p *UserInfoArgs) Marshal(out []byte) ([]byte, error)
- func (p *UserInfoArgs) Size() (n int)
- func (p *UserInfoArgs) Unmarshal(in []byte) error
- type UserInfoResult
- func (p *UserInfoResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *UserInfoResult) FastWrite(buf []byte) (n int)
- func (p *UserInfoResult) GetSuccess() *user.UserInfoResponse
- func (p *UserInfoResult) IsSetSuccess() bool
- func (p *UserInfoResult) Marshal(out []byte) ([]byte, error)
- func (p *UserInfoResult) SetSuccess(x interface{})
- func (p *UserInfoResult) Size() (n int)
- func (p *UserInfoResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var LoginArgs_Req_DEFAULT *user.UserLoginRequest
View Source
var LoginResult_Success_DEFAULT *user.UserLoginResponse
View Source
var RegisterArgs_Req_DEFAULT *user.UserRegisterRequest
View Source
var RegisterResult_Success_DEFAULT *user.UserRegisterResponse
View Source
var UserInfoArgs_Req_DEFAULT *user.UserInfoRequest
View Source
var UserInfoResult_Success_DEFAULT *user.UserInfoResponse
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 { Register(ctx context.Context, Req *user.UserRegisterRequest, callOptions ...callopt.Option) (r *user.UserRegisterResponse, err error) Login(ctx context.Context, Req *user.UserLoginRequest, callOptions ...callopt.Option) (r *user.UserLoginResponse, err error) UserInfo(ctx context.Context, Req *user.UserInfoRequest, callOptions ...callopt.Option) (r *user.UserInfoResponse, 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 LoginArgs ¶
type LoginArgs struct {
Req *user.UserLoginRequest
}
func (*LoginArgs) GetReq ¶
func (p *LoginArgs) GetReq() *user.UserLoginRequest
type LoginResult ¶
type LoginResult struct {
Success *user.UserLoginResponse
}
func (*LoginResult) FastWrite ¶
func (p *LoginResult) FastWrite(buf []byte) (n int)
func (*LoginResult) GetSuccess ¶
func (p *LoginResult) GetSuccess() *user.UserLoginResponse
func (*LoginResult) IsSetSuccess ¶
func (p *LoginResult) IsSetSuccess() bool
func (*LoginResult) SetSuccess ¶
func (p *LoginResult) SetSuccess(x interface{})
func (*LoginResult) Size ¶
func (p *LoginResult) Size() (n int)
func (*LoginResult) Unmarshal ¶
func (p *LoginResult) Unmarshal(in []byte) error
type RegisterArgs ¶
type RegisterArgs struct {
Req *user.UserRegisterRequest
}
func (*RegisterArgs) FastWrite ¶
func (p *RegisterArgs) FastWrite(buf []byte) (n int)
func (*RegisterArgs) GetReq ¶
func (p *RegisterArgs) GetReq() *user.UserRegisterRequest
func (*RegisterArgs) IsSetReq ¶
func (p *RegisterArgs) IsSetReq() bool
func (*RegisterArgs) Size ¶
func (p *RegisterArgs) Size() (n int)
func (*RegisterArgs) Unmarshal ¶
func (p *RegisterArgs) Unmarshal(in []byte) error
type RegisterResult ¶
type RegisterResult struct {
Success *user.UserRegisterResponse
}
func (*RegisterResult) FastWrite ¶
func (p *RegisterResult) FastWrite(buf []byte) (n int)
func (*RegisterResult) GetSuccess ¶
func (p *RegisterResult) GetSuccess() *user.UserRegisterResponse
func (*RegisterResult) IsSetSuccess ¶
func (p *RegisterResult) IsSetSuccess() bool
func (*RegisterResult) SetSuccess ¶
func (p *RegisterResult) SetSuccess(x interface{})
func (*RegisterResult) Size ¶
func (p *RegisterResult) Size() (n int)
func (*RegisterResult) Unmarshal ¶
func (p *RegisterResult) Unmarshal(in []byte) error
type UserInfoArgs ¶
type UserInfoArgs struct {
Req *user.UserInfoRequest
}
func (*UserInfoArgs) FastWrite ¶
func (p *UserInfoArgs) FastWrite(buf []byte) (n int)
func (*UserInfoArgs) GetReq ¶
func (p *UserInfoArgs) GetReq() *user.UserInfoRequest
func (*UserInfoArgs) IsSetReq ¶
func (p *UserInfoArgs) IsSetReq() bool
func (*UserInfoArgs) Size ¶
func (p *UserInfoArgs) Size() (n int)
func (*UserInfoArgs) Unmarshal ¶
func (p *UserInfoArgs) Unmarshal(in []byte) error
type UserInfoResult ¶
type UserInfoResult struct {
Success *user.UserInfoResponse
}
func (*UserInfoResult) FastWrite ¶
func (p *UserInfoResult) FastWrite(buf []byte) (n int)
func (*UserInfoResult) GetSuccess ¶
func (p *UserInfoResult) GetSuccess() *user.UserInfoResponse
func (*UserInfoResult) IsSetSuccess ¶
func (p *UserInfoResult) IsSetSuccess() bool
func (*UserInfoResult) SetSuccess ¶
func (p *UserInfoResult) SetSuccess(x interface{})
func (*UserInfoResult) Size ¶
func (p *UserInfoResult) Size() (n int)
func (*UserInfoResult) Unmarshal ¶
func (p *UserInfoResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.