Documentation ¶
Overview ¶
Code generated by Kitex v0.3.1. 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 CacelFollowArgs
- type CacelFollowResult
- type CheckUserArgs
- type CheckUserResult
- type Client
- type CreateUserArgs
- type CreateUserResult
- type FollowArgs
- type FollowResult
- type GetUserArgs
- type GetUserResult
- type MGetFansUserArgs
- type MGetFansUserResult
- type MGetFollowUserArgs
- type MGetFollowUserResult
- func (p *MGetFollowUserResult) GetSuccess() *user.MGetRelationUserResponse
- func (p *MGetFollowUserResult) IsSetSuccess() bool
- func (p *MGetFollowUserResult) Marshal(out []byte) ([]byte, error)
- func (p *MGetFollowUserResult) SetSuccess(x interface{})
- func (p *MGetFollowUserResult) Unmarshal(in []byte) error
- type MGetUserArgs
- type MGetUserResult
Constants ¶
This section is empty.
Variables ¶
View Source
var CacelFollowArgs_Req_DEFAULT *user.RelationActionRequest
View Source
var CacelFollowResult_Success_DEFAULT *user.BaseResponse
View Source
var CheckUserArgs_Req_DEFAULT *user.CheckUserRequest
View Source
var CheckUserResult_Success_DEFAULT *user.CheckUserResponse
View Source
var CreateUserArgs_Req_DEFAULT *user.CreateUserRequest
View Source
var CreateUserResult_Success_DEFAULT *user.CreateUserResponse
View Source
var FollowArgs_Req_DEFAULT *user.RelationActionRequest
View Source
var FollowResult_Success_DEFAULT *user.BaseResponse
View Source
var GetUserArgs_Req_DEFAULT *user.GetUserRequest
View Source
var GetUserResult_Success_DEFAULT *user.GetUserResponse
View Source
var MGetFansUserArgs_Req_DEFAULT *user.MGetRelationUserRequest
View Source
var MGetFansUserResult_Success_DEFAULT *user.MGetRelationUserResponse
View Source
var MGetFollowUserArgs_Req_DEFAULT *user.MGetRelationUserRequest
View Source
var MGetFollowUserResult_Success_DEFAULT *user.MGetRelationUserResponse
View Source
var MGetUserArgs_Req_DEFAULT *user.MGetUserRequest
View Source
var MGetUserResult_Success_DEFAULT *user.MGetUserResponse
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
Types ¶
type CacelFollowArgs ¶
type CacelFollowArgs struct {
Req *user.RelationActionRequest
}
func (*CacelFollowArgs) GetReq ¶
func (p *CacelFollowArgs) GetReq() *user.RelationActionRequest
func (*CacelFollowArgs) IsSetReq ¶
func (p *CacelFollowArgs) IsSetReq() bool
func (*CacelFollowArgs) Unmarshal ¶
func (p *CacelFollowArgs) Unmarshal(in []byte) error
type CacelFollowResult ¶
type CacelFollowResult struct {
Success *user.BaseResponse
}
func (*CacelFollowResult) GetSuccess ¶
func (p *CacelFollowResult) GetSuccess() *user.BaseResponse
func (*CacelFollowResult) IsSetSuccess ¶
func (p *CacelFollowResult) IsSetSuccess() bool
func (*CacelFollowResult) SetSuccess ¶
func (p *CacelFollowResult) SetSuccess(x interface{})
func (*CacelFollowResult) Unmarshal ¶
func (p *CacelFollowResult) Unmarshal(in []byte) error
type CheckUserArgs ¶
type CheckUserArgs struct {
Req *user.CheckUserRequest
}
func (*CheckUserArgs) GetReq ¶
func (p *CheckUserArgs) GetReq() *user.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 *user.CheckUserResponse
}
func (*CheckUserResult) GetSuccess ¶
func (p *CheckUserResult) GetSuccess() *user.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 *user.CreateUserRequest, callOptions ...callopt.Option) (r *user.CreateUserResponse, err error) MGetUser(ctx context.Context, Req *user.MGetUserRequest, callOptions ...callopt.Option) (r *user.MGetUserResponse, err error) GetUser(ctx context.Context, Req *user.GetUserRequest, callOptions ...callopt.Option) (r *user.GetUserResponse, err error) CheckUser(ctx context.Context, Req *user.CheckUserRequest, callOptions ...callopt.Option) (r *user.CheckUserResponse, err error) Follow(ctx context.Context, Req *user.RelationActionRequest, callOptions ...callopt.Option) (r *user.BaseResponse, err error) CacelFollow(ctx context.Context, Req *user.RelationActionRequest, callOptions ...callopt.Option) (r *user.BaseResponse, err error) MGetFollowUser(ctx context.Context, Req *user.MGetRelationUserRequest, callOptions ...callopt.Option) (r *user.MGetRelationUserResponse, err error) MGetFansUser(ctx context.Context, Req *user.MGetRelationUserRequest, callOptions ...callopt.Option) (r *user.MGetRelationUserResponse, 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.CreateUserRequest
}
func (*CreateUserArgs) GetReq ¶
func (p *CreateUserArgs) GetReq() *user.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 *user.CreateUserResponse
}
func (*CreateUserResult) GetSuccess ¶
func (p *CreateUserResult) GetSuccess() *user.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 FollowArgs ¶
type FollowArgs struct {
Req *user.RelationActionRequest
}
func (*FollowArgs) GetReq ¶
func (p *FollowArgs) GetReq() *user.RelationActionRequest
func (*FollowArgs) IsSetReq ¶
func (p *FollowArgs) IsSetReq() bool
func (*FollowArgs) Unmarshal ¶
func (p *FollowArgs) Unmarshal(in []byte) error
type FollowResult ¶
type FollowResult struct {
Success *user.BaseResponse
}
func (*FollowResult) GetSuccess ¶
func (p *FollowResult) GetSuccess() *user.BaseResponse
func (*FollowResult) IsSetSuccess ¶
func (p *FollowResult) IsSetSuccess() bool
func (*FollowResult) SetSuccess ¶
func (p *FollowResult) SetSuccess(x interface{})
func (*FollowResult) Unmarshal ¶
func (p *FollowResult) Unmarshal(in []byte) error
type GetUserArgs ¶
type GetUserArgs struct {
Req *user.GetUserRequest
}
func (*GetUserArgs) GetReq ¶
func (p *GetUserArgs) GetReq() *user.GetUserRequest
func (*GetUserArgs) IsSetReq ¶
func (p *GetUserArgs) IsSetReq() bool
func (*GetUserArgs) Unmarshal ¶
func (p *GetUserArgs) Unmarshal(in []byte) error
type GetUserResult ¶
type GetUserResult struct {
Success *user.GetUserResponse
}
func (*GetUserResult) GetSuccess ¶
func (p *GetUserResult) GetSuccess() *user.GetUserResponse
func (*GetUserResult) IsSetSuccess ¶
func (p *GetUserResult) IsSetSuccess() bool
func (*GetUserResult) SetSuccess ¶
func (p *GetUserResult) SetSuccess(x interface{})
func (*GetUserResult) Unmarshal ¶
func (p *GetUserResult) Unmarshal(in []byte) error
type MGetFansUserArgs ¶
type MGetFansUserArgs struct {
Req *user.MGetRelationUserRequest
}
func (*MGetFansUserArgs) GetReq ¶
func (p *MGetFansUserArgs) GetReq() *user.MGetRelationUserRequest
func (*MGetFansUserArgs) IsSetReq ¶
func (p *MGetFansUserArgs) IsSetReq() bool
func (*MGetFansUserArgs) Unmarshal ¶
func (p *MGetFansUserArgs) Unmarshal(in []byte) error
type MGetFansUserResult ¶
type MGetFansUserResult struct {
Success *user.MGetRelationUserResponse
}
func (*MGetFansUserResult) GetSuccess ¶
func (p *MGetFansUserResult) GetSuccess() *user.MGetRelationUserResponse
func (*MGetFansUserResult) IsSetSuccess ¶
func (p *MGetFansUserResult) IsSetSuccess() bool
func (*MGetFansUserResult) Marshal ¶
func (p *MGetFansUserResult) Marshal(out []byte) ([]byte, error)
func (*MGetFansUserResult) SetSuccess ¶
func (p *MGetFansUserResult) SetSuccess(x interface{})
func (*MGetFansUserResult) Unmarshal ¶
func (p *MGetFansUserResult) Unmarshal(in []byte) error
type MGetFollowUserArgs ¶
type MGetFollowUserArgs struct {
Req *user.MGetRelationUserRequest
}
func (*MGetFollowUserArgs) GetReq ¶
func (p *MGetFollowUserArgs) GetReq() *user.MGetRelationUserRequest
func (*MGetFollowUserArgs) IsSetReq ¶
func (p *MGetFollowUserArgs) IsSetReq() bool
func (*MGetFollowUserArgs) Marshal ¶
func (p *MGetFollowUserArgs) Marshal(out []byte) ([]byte, error)
func (*MGetFollowUserArgs) Unmarshal ¶
func (p *MGetFollowUserArgs) Unmarshal(in []byte) error
type MGetFollowUserResult ¶
type MGetFollowUserResult struct {
Success *user.MGetRelationUserResponse
}
func (*MGetFollowUserResult) GetSuccess ¶
func (p *MGetFollowUserResult) GetSuccess() *user.MGetRelationUserResponse
func (*MGetFollowUserResult) IsSetSuccess ¶
func (p *MGetFollowUserResult) IsSetSuccess() bool
func (*MGetFollowUserResult) Marshal ¶
func (p *MGetFollowUserResult) Marshal(out []byte) ([]byte, error)
func (*MGetFollowUserResult) SetSuccess ¶
func (p *MGetFollowUserResult) SetSuccess(x interface{})
func (*MGetFollowUserResult) Unmarshal ¶
func (p *MGetFollowUserResult) Unmarshal(in []byte) error
type MGetUserArgs ¶
type MGetUserArgs struct {
Req *user.MGetUserRequest
}
func (*MGetUserArgs) GetReq ¶
func (p *MGetUserArgs) GetReq() *user.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 *user.MGetUserResponse
}
func (*MGetUserResult) GetSuccess ¶
func (p *MGetUserResult) GetSuccess() *user.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.