Documentation ¶
Overview ¶
Code generated by Kitex v0.12.1. DO NOT EDIT.
Index ¶
- Variables
- func NewServer(handler user.UserService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler user.UserService, opts ...server.RegisterOption) error
- 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.GetUserReq
- 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 GetUserDetailArgs
- func (p *GetUserDetailArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetUserDetailArgs) FastWrite(buf []byte) (n int)
- func (p *GetUserDetailArgs) GetFirstArgument() interface{}
- func (p *GetUserDetailArgs) GetReq() *user.GetUserDetailReq
- func (p *GetUserDetailArgs) IsSetReq() bool
- func (p *GetUserDetailArgs) Marshal(out []byte) ([]byte, error)
- func (p *GetUserDetailArgs) Size() (n int)
- func (p *GetUserDetailArgs) Unmarshal(in []byte) error
- type GetUserDetailResult
- func (p *GetUserDetailResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *GetUserDetailResult) FastWrite(buf []byte) (n int)
- func (p *GetUserDetailResult) GetResult() interface{}
- func (p *GetUserDetailResult) GetSuccess() *user.GetUserDetailResp
- func (p *GetUserDetailResult) IsSetSuccess() bool
- func (p *GetUserDetailResult) Marshal(out []byte) ([]byte, error)
- func (p *GetUserDetailResult) SetSuccess(x interface{})
- func (p *GetUserDetailResult) Size() (n int)
- func (p *GetUserDetailResult) 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.GetUserResp
- 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 UpdateUserArgs
- func (p *UpdateUserArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *UpdateUserArgs) FastWrite(buf []byte) (n int)
- func (p *UpdateUserArgs) GetFirstArgument() interface{}
- func (p *UpdateUserArgs) GetReq() *user.UpdateUserReq
- func (p *UpdateUserArgs) IsSetReq() bool
- func (p *UpdateUserArgs) Marshal(out []byte) ([]byte, error)
- func (p *UpdateUserArgs) Size() (n int)
- func (p *UpdateUserArgs) Unmarshal(in []byte) error
- type UpdateUserResult
- func (p *UpdateUserResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *UpdateUserResult) FastWrite(buf []byte) (n int)
- func (p *UpdateUserResult) GetResult() interface{}
- func (p *UpdateUserResult) GetSuccess() *user.UpdateUserResp
- func (p *UpdateUserResult) IsSetSuccess() bool
- func (p *UpdateUserResult) Marshal(out []byte) ([]byte, error)
- func (p *UpdateUserResult) SetSuccess(x interface{})
- func (p *UpdateUserResult) Size() (n int)
- func (p *UpdateUserResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GetUserArgs_Req_DEFAULT *user.GetUserReq
View Source
var GetUserDetailArgs_Req_DEFAULT *user.GetUserDetailReq
View Source
var GetUserDetailResult_Success_DEFAULT *user.GetUserDetailResp
View Source
var GetUserResult_Success_DEFAULT *user.GetUserResp
View Source
var UpdateUserArgs_Req_DEFAULT *user.UpdateUserReq
View Source
var UpdateUserResult_Success_DEFAULT *user.UpdateUserResp
Functions ¶
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 ¶
func RegisterService(svr server.Server, handler user.UserService, opts ...server.RegisterOption) error
Types ¶
type Client ¶
type Client interface { GetUser(ctx context.Context, Req *user.GetUserReq, callOptions ...callopt.Option) (r *user.GetUserResp, err error) GetUserDetail(ctx context.Context, Req *user.GetUserDetailReq, callOptions ...callopt.Option) (r *user.GetUserDetailResp, err error) UpdateUser(ctx context.Context, Req *user.UpdateUserReq, callOptions ...callopt.Option) (r *user.UpdateUserResp, 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.GetUserReq
}
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.GetUserReq
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 GetUserDetailArgs ¶
type GetUserDetailArgs struct {
Req *user.GetUserDetailReq
}
func (*GetUserDetailArgs) FastWrite ¶
func (p *GetUserDetailArgs) FastWrite(buf []byte) (n int)
func (*GetUserDetailArgs) GetFirstArgument ¶
func (p *GetUserDetailArgs) GetFirstArgument() interface{}
func (*GetUserDetailArgs) GetReq ¶
func (p *GetUserDetailArgs) GetReq() *user.GetUserDetailReq
func (*GetUserDetailArgs) IsSetReq ¶
func (p *GetUserDetailArgs) IsSetReq() bool
func (*GetUserDetailArgs) Size ¶
func (p *GetUserDetailArgs) Size() (n int)
func (*GetUserDetailArgs) Unmarshal ¶
func (p *GetUserDetailArgs) Unmarshal(in []byte) error
type GetUserDetailResult ¶
type GetUserDetailResult struct {
Success *user.GetUserDetailResp
}
func (*GetUserDetailResult) FastWrite ¶
func (p *GetUserDetailResult) FastWrite(buf []byte) (n int)
func (*GetUserDetailResult) GetResult ¶
func (p *GetUserDetailResult) GetResult() interface{}
func (*GetUserDetailResult) GetSuccess ¶
func (p *GetUserDetailResult) GetSuccess() *user.GetUserDetailResp
func (*GetUserDetailResult) IsSetSuccess ¶
func (p *GetUserDetailResult) IsSetSuccess() bool
func (*GetUserDetailResult) Marshal ¶
func (p *GetUserDetailResult) Marshal(out []byte) ([]byte, error)
func (*GetUserDetailResult) SetSuccess ¶
func (p *GetUserDetailResult) SetSuccess(x interface{})
func (*GetUserDetailResult) Size ¶
func (p *GetUserDetailResult) Size() (n int)
func (*GetUserDetailResult) Unmarshal ¶
func (p *GetUserDetailResult) Unmarshal(in []byte) error
type GetUserResult ¶
type GetUserResult struct {
Success *user.GetUserResp
}
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.GetUserResp
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 UpdateUserArgs ¶
type UpdateUserArgs struct {
Req *user.UpdateUserReq
}
func (*UpdateUserArgs) FastWrite ¶
func (p *UpdateUserArgs) FastWrite(buf []byte) (n int)
func (*UpdateUserArgs) GetFirstArgument ¶
func (p *UpdateUserArgs) GetFirstArgument() interface{}
func (*UpdateUserArgs) GetReq ¶
func (p *UpdateUserArgs) GetReq() *user.UpdateUserReq
func (*UpdateUserArgs) IsSetReq ¶
func (p *UpdateUserArgs) IsSetReq() bool
func (*UpdateUserArgs) Size ¶
func (p *UpdateUserArgs) Size() (n int)
func (*UpdateUserArgs) Unmarshal ¶
func (p *UpdateUserArgs) Unmarshal(in []byte) error
type UpdateUserResult ¶
type UpdateUserResult struct {
Success *user.UpdateUserResp
}
func (*UpdateUserResult) FastWrite ¶
func (p *UpdateUserResult) FastWrite(buf []byte) (n int)
func (*UpdateUserResult) GetResult ¶
func (p *UpdateUserResult) GetResult() interface{}
func (*UpdateUserResult) GetSuccess ¶
func (p *UpdateUserResult) GetSuccess() *user.UpdateUserResp
func (*UpdateUserResult) IsSetSuccess ¶
func (p *UpdateUserResult) IsSetSuccess() bool
func (*UpdateUserResult) SetSuccess ¶
func (p *UpdateUserResult) SetSuccess(x interface{})
func (*UpdateUserResult) Size ¶
func (p *UpdateUserResult) Size() (n int)
func (*UpdateUserResult) Unmarshal ¶
func (p *UpdateUserResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.