Documentation ¶
Overview ¶
Code generated by Kitex v0.3.2. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler user.UserSrv, opts ...server.Option) server.Invoker
- func NewServer(handler user.UserSrv, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type GetUserByIdArgs
- type GetUserByIdResult
- type LoginArgs
- type LoginResult
- type RegisterArgs
- type RegisterResult
Constants ¶
This section is empty.
Variables ¶
View Source
var GetUserByIdArgs_Req_DEFAULT *user.DouyinUserRequest
View Source
var GetUserByIdResult_Success_DEFAULT *user.DouyinUserResponse
View Source
var LoginArgs_Req_DEFAULT *user.DouyinUserRegisterRequest
View Source
var LoginResult_Success_DEFAULT *user.DouyinUserRegisterResponse
View Source
var RegisterArgs_Req_DEFAULT *user.DouyinUserRegisterRequest
View Source
var RegisterResult_Success_DEFAULT *user.DouyinUserRegisterResponse
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.DouyinUserRegisterRequest, callOptions ...callopt.Option) (r *user.DouyinUserRegisterResponse, err error) Login(ctx context.Context, Req *user.DouyinUserRegisterRequest, callOptions ...callopt.Option) (r *user.DouyinUserRegisterResponse, err error) GetUserById(ctx context.Context, Req *user.DouyinUserRequest, callOptions ...callopt.Option) (r *user.DouyinUserResponse, 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 GetUserByIdArgs ¶
type GetUserByIdArgs struct {
Req *user.DouyinUserRequest
}
func (*GetUserByIdArgs) GetReq ¶
func (p *GetUserByIdArgs) GetReq() *user.DouyinUserRequest
func (*GetUserByIdArgs) IsSetReq ¶
func (p *GetUserByIdArgs) IsSetReq() bool
func (*GetUserByIdArgs) Unmarshal ¶
func (p *GetUserByIdArgs) Unmarshal(in []byte) error
type GetUserByIdResult ¶
type GetUserByIdResult struct {
Success *user.DouyinUserResponse
}
func (*GetUserByIdResult) GetSuccess ¶
func (p *GetUserByIdResult) GetSuccess() *user.DouyinUserResponse
func (*GetUserByIdResult) IsSetSuccess ¶
func (p *GetUserByIdResult) IsSetSuccess() bool
func (*GetUserByIdResult) SetSuccess ¶
func (p *GetUserByIdResult) SetSuccess(x interface{})
func (*GetUserByIdResult) Unmarshal ¶
func (p *GetUserByIdResult) Unmarshal(in []byte) error
type LoginArgs ¶
type LoginArgs struct {
Req *user.DouyinUserRegisterRequest
}
func (*LoginArgs) GetReq ¶
func (p *LoginArgs) GetReq() *user.DouyinUserRegisterRequest
type LoginResult ¶
type LoginResult struct {
Success *user.DouyinUserRegisterResponse
}
func (*LoginResult) GetSuccess ¶
func (p *LoginResult) GetSuccess() *user.DouyinUserRegisterResponse
func (*LoginResult) IsSetSuccess ¶
func (p *LoginResult) IsSetSuccess() bool
func (*LoginResult) SetSuccess ¶
func (p *LoginResult) SetSuccess(x interface{})
func (*LoginResult) Unmarshal ¶
func (p *LoginResult) Unmarshal(in []byte) error
type RegisterArgs ¶
type RegisterArgs struct {
Req *user.DouyinUserRegisterRequest
}
func (*RegisterArgs) GetReq ¶
func (p *RegisterArgs) GetReq() *user.DouyinUserRegisterRequest
func (*RegisterArgs) IsSetReq ¶
func (p *RegisterArgs) IsSetReq() bool
func (*RegisterArgs) Unmarshal ¶
func (p *RegisterArgs) Unmarshal(in []byte) error
type RegisterResult ¶
type RegisterResult struct {
Success *user.DouyinUserRegisterResponse
}
func (*RegisterResult) GetSuccess ¶
func (p *RegisterResult) GetSuccess() *user.DouyinUserRegisterResponse
func (*RegisterResult) IsSetSuccess ¶
func (p *RegisterResult) IsSetSuccess() bool
func (*RegisterResult) SetSuccess ¶
func (p *RegisterResult) SetSuccess(x interface{})
func (*RegisterResult) Unmarshal ¶
func (p *RegisterResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.