Documentation ¶
Overview ¶
Code generated by Kitex v0.9.1. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler core_api.User, opts ...server.Option) server.Invoker
- func NewServer(handler core_api.User, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler core_api.User, opts ...server.RegisterOption) error
- type Client
- type GetUserInfoArgs
- func (p *GetUserInfoArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetUserInfoArgs) FastWrite(buf []byte) (n int)
- func (p *GetUserInfoArgs) GetFirstArgument() interface{}
- func (p *GetUserInfoArgs) GetReq() *core_api.GetUserInfoReq
- func (p *GetUserInfoArgs) IsSetReq() bool
- func (p *GetUserInfoArgs) Marshal(out []byte) ([]byte, error)
- func (p *GetUserInfoArgs) Size() (n int)
- func (p *GetUserInfoArgs) Unmarshal(in []byte) error
- type GetUserInfoResult
- func (p *GetUserInfoResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetUserInfoResult) FastWrite(buf []byte) (n int)
- func (p *GetUserInfoResult) GetResult() interface{}
- func (p *GetUserInfoResult) GetSuccess() *core_api.GetUserInfoResp
- func (p *GetUserInfoResult) IsSetSuccess() bool
- func (p *GetUserInfoResult) Marshal(out []byte) ([]byte, error)
- func (p *GetUserInfoResult) SetSuccess(x interface{})
- func (p *GetUserInfoResult) Size() (n int)
- func (p *GetUserInfoResult) Unmarshal(in []byte) error
- type SearchUserArgs
- func (p *SearchUserArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *SearchUserArgs) FastWrite(buf []byte) (n int)
- func (p *SearchUserArgs) GetFirstArgument() interface{}
- func (p *SearchUserArgs) GetReq() *core_api.SearchUserReq
- func (p *SearchUserArgs) IsSetReq() bool
- func (p *SearchUserArgs) Marshal(out []byte) ([]byte, error)
- func (p *SearchUserArgs) Size() (n int)
- func (p *SearchUserArgs) Unmarshal(in []byte) error
- type SearchUserResult
- func (p *SearchUserResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *SearchUserResult) FastWrite(buf []byte) (n int)
- func (p *SearchUserResult) GetResult() interface{}
- func (p *SearchUserResult) GetSuccess() *core_api.SearchUserResp
- func (p *SearchUserResult) IsSetSuccess() bool
- func (p *SearchUserResult) Marshal(out []byte) ([]byte, error)
- func (p *SearchUserResult) SetSuccess(x interface{})
- func (p *SearchUserResult) Size() (n int)
- func (p *SearchUserResult) Unmarshal(in []byte) error
- type UpdateUserInfoArgs
- func (p *UpdateUserInfoArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *UpdateUserInfoArgs) FastWrite(buf []byte) (n int)
- func (p *UpdateUserInfoArgs) GetFirstArgument() interface{}
- func (p *UpdateUserInfoArgs) GetReq() *core_api.UpdateUserInfoReq
- func (p *UpdateUserInfoArgs) IsSetReq() bool
- func (p *UpdateUserInfoArgs) Marshal(out []byte) ([]byte, error)
- func (p *UpdateUserInfoArgs) Size() (n int)
- func (p *UpdateUserInfoArgs) Unmarshal(in []byte) error
- type UpdateUserInfoResult
- func (p *UpdateUserInfoResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *UpdateUserInfoResult) FastWrite(buf []byte) (n int)
- func (p *UpdateUserInfoResult) GetResult() interface{}
- func (p *UpdateUserInfoResult) GetSuccess() *core_api.UpdateUserInfoResp
- func (p *UpdateUserInfoResult) IsSetSuccess() bool
- func (p *UpdateUserInfoResult) Marshal(out []byte) ([]byte, error)
- func (p *UpdateUserInfoResult) SetSuccess(x interface{})
- func (p *UpdateUserInfoResult) Size() (n int)
- func (p *UpdateUserInfoResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GetUserInfoArgs_Req_DEFAULT *core_api.GetUserInfoReq
View Source
var GetUserInfoResult_Success_DEFAULT *core_api.GetUserInfoResp
View Source
var SearchUserArgs_Req_DEFAULT *core_api.SearchUserReq
View Source
var SearchUserResult_Success_DEFAULT *core_api.SearchUserResp
View Source
var UpdateUserInfoArgs_Req_DEFAULT *core_api.UpdateUserInfoReq
View Source
var UpdateUserInfoResult_Success_DEFAULT *core_api.UpdateUserInfoResp
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing all methods
func NewServiceInfoForClient ¶
func NewServiceInfoForClient() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing non-streaming methods
func NewServiceInfoForStreamClient ¶
func NewServiceInfoForStreamClient() *kitex.ServiceInfo
func RegisterService ¶
Types ¶
type Client ¶
type Client interface { GetUserInfo(ctx context.Context, Req *core_api.GetUserInfoReq, callOptions ...callopt.Option) (r *core_api.GetUserInfoResp, err error) UpdateUserInfo(ctx context.Context, Req *core_api.UpdateUserInfoReq, callOptions ...callopt.Option) (r *core_api.UpdateUserInfoResp, err error) SearchUser(ctx context.Context, Req *core_api.SearchUserReq, callOptions ...callopt.Option) (r *core_api.SearchUserResp, 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 GetUserInfoArgs ¶
type GetUserInfoArgs struct {
Req *core_api.GetUserInfoReq
}
func (*GetUserInfoArgs) FastWrite ¶
func (p *GetUserInfoArgs) FastWrite(buf []byte) (n int)
func (*GetUserInfoArgs) GetFirstArgument ¶
func (p *GetUserInfoArgs) GetFirstArgument() interface{}
func (*GetUserInfoArgs) GetReq ¶
func (p *GetUserInfoArgs) GetReq() *core_api.GetUserInfoReq
func (*GetUserInfoArgs) IsSetReq ¶
func (p *GetUserInfoArgs) IsSetReq() bool
func (*GetUserInfoArgs) Size ¶
func (p *GetUserInfoArgs) Size() (n int)
func (*GetUserInfoArgs) Unmarshal ¶
func (p *GetUserInfoArgs) Unmarshal(in []byte) error
type GetUserInfoResult ¶
type GetUserInfoResult struct {
Success *core_api.GetUserInfoResp
}
func (*GetUserInfoResult) FastWrite ¶
func (p *GetUserInfoResult) FastWrite(buf []byte) (n int)
func (*GetUserInfoResult) GetResult ¶
func (p *GetUserInfoResult) GetResult() interface{}
func (*GetUserInfoResult) GetSuccess ¶
func (p *GetUserInfoResult) GetSuccess() *core_api.GetUserInfoResp
func (*GetUserInfoResult) IsSetSuccess ¶
func (p *GetUserInfoResult) IsSetSuccess() bool
func (*GetUserInfoResult) SetSuccess ¶
func (p *GetUserInfoResult) SetSuccess(x interface{})
func (*GetUserInfoResult) Size ¶
func (p *GetUserInfoResult) Size() (n int)
func (*GetUserInfoResult) Unmarshal ¶
func (p *GetUserInfoResult) Unmarshal(in []byte) error
type SearchUserArgs ¶
type SearchUserArgs struct {
Req *core_api.SearchUserReq
}
func (*SearchUserArgs) FastWrite ¶
func (p *SearchUserArgs) FastWrite(buf []byte) (n int)
func (*SearchUserArgs) GetFirstArgument ¶
func (p *SearchUserArgs) GetFirstArgument() interface{}
func (*SearchUserArgs) GetReq ¶
func (p *SearchUserArgs) GetReq() *core_api.SearchUserReq
func (*SearchUserArgs) IsSetReq ¶
func (p *SearchUserArgs) IsSetReq() bool
func (*SearchUserArgs) Size ¶
func (p *SearchUserArgs) Size() (n int)
func (*SearchUserArgs) Unmarshal ¶
func (p *SearchUserArgs) Unmarshal(in []byte) error
type SearchUserResult ¶
type SearchUserResult struct {
Success *core_api.SearchUserResp
}
func (*SearchUserResult) FastWrite ¶
func (p *SearchUserResult) FastWrite(buf []byte) (n int)
func (*SearchUserResult) GetResult ¶
func (p *SearchUserResult) GetResult() interface{}
func (*SearchUserResult) GetSuccess ¶
func (p *SearchUserResult) GetSuccess() *core_api.SearchUserResp
func (*SearchUserResult) IsSetSuccess ¶
func (p *SearchUserResult) IsSetSuccess() bool
func (*SearchUserResult) SetSuccess ¶
func (p *SearchUserResult) SetSuccess(x interface{})
func (*SearchUserResult) Size ¶
func (p *SearchUserResult) Size() (n int)
func (*SearchUserResult) Unmarshal ¶
func (p *SearchUserResult) Unmarshal(in []byte) error
type UpdateUserInfoArgs ¶
type UpdateUserInfoArgs struct {
Req *core_api.UpdateUserInfoReq
}
func (*UpdateUserInfoArgs) FastWrite ¶
func (p *UpdateUserInfoArgs) FastWrite(buf []byte) (n int)
func (*UpdateUserInfoArgs) GetFirstArgument ¶
func (p *UpdateUserInfoArgs) GetFirstArgument() interface{}
func (*UpdateUserInfoArgs) GetReq ¶
func (p *UpdateUserInfoArgs) GetReq() *core_api.UpdateUserInfoReq
func (*UpdateUserInfoArgs) IsSetReq ¶
func (p *UpdateUserInfoArgs) IsSetReq() bool
func (*UpdateUserInfoArgs) Marshal ¶
func (p *UpdateUserInfoArgs) Marshal(out []byte) ([]byte, error)
func (*UpdateUserInfoArgs) Size ¶
func (p *UpdateUserInfoArgs) Size() (n int)
func (*UpdateUserInfoArgs) Unmarshal ¶
func (p *UpdateUserInfoArgs) Unmarshal(in []byte) error
type UpdateUserInfoResult ¶
type UpdateUserInfoResult struct {
Success *core_api.UpdateUserInfoResp
}
func (*UpdateUserInfoResult) FastWrite ¶
func (p *UpdateUserInfoResult) FastWrite(buf []byte) (n int)
func (*UpdateUserInfoResult) GetResult ¶
func (p *UpdateUserInfoResult) GetResult() interface{}
func (*UpdateUserInfoResult) GetSuccess ¶
func (p *UpdateUserInfoResult) GetSuccess() *core_api.UpdateUserInfoResp
func (*UpdateUserInfoResult) IsSetSuccess ¶
func (p *UpdateUserInfoResult) IsSetSuccess() bool
func (*UpdateUserInfoResult) Marshal ¶
func (p *UpdateUserInfoResult) Marshal(out []byte) ([]byte, error)
func (*UpdateUserInfoResult) SetSuccess ¶
func (p *UpdateUserInfoResult) SetSuccess(x interface{})
func (*UpdateUserInfoResult) Size ¶
func (p *UpdateUserInfoResult) Size() (n int)
func (*UpdateUserInfoResult) Unmarshal ¶
func (p *UpdateUserInfoResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.