Documentation ¶
Overview ¶
Code generated by Kitex v0.9.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
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler user.UserService, opts ...server.RegisterOption) error
- 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) GetFirstArgument() interface{}
- func (p *LoginArgs) GetReq() *user.LoginReq
- 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) GetResult() interface{}
- func (p *LoginResult) GetSuccess() *user.LoginResp
- 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) GetFirstArgument() interface{}
- func (p *RegisterArgs) GetReq() *user.RegisterReq
- 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) GetResult() interface{}
- func (p *RegisterResult) GetSuccess() *user.RegisterResp
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var LoginArgs_Req_DEFAULT *user.LoginReq
View Source
var LoginResult_Success_DEFAULT *user.LoginResp
View Source
var RegisterArgs_Req_DEFAULT *user.RegisterReq
View Source
var RegisterResult_Success_DEFAULT *user.RegisterResp
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 ¶
func RegisterService(svr server.Server, handler user.UserService, opts ...server.RegisterOption) error
Types ¶
type Client ¶
type Client interface { Register(ctx context.Context, Req *user.RegisterReq, callOptions ...callopt.Option) (r *user.RegisterResp, err error) Login(ctx context.Context, Req *user.LoginReq, callOptions ...callopt.Option) (r *user.LoginResp, 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 ¶
func (*LoginArgs) GetFirstArgument ¶
func (p *LoginArgs) GetFirstArgument() interface{}
type LoginResult ¶
func (*LoginResult) FastWrite ¶
func (p *LoginResult) FastWrite(buf []byte) (n int)
func (*LoginResult) GetResult ¶
func (p *LoginResult) GetResult() interface{}
func (*LoginResult) GetSuccess ¶
func (p *LoginResult) GetSuccess() *user.LoginResp
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.RegisterReq
}
func (*RegisterArgs) FastWrite ¶
func (p *RegisterArgs) FastWrite(buf []byte) (n int)
func (*RegisterArgs) GetFirstArgument ¶
func (p *RegisterArgs) GetFirstArgument() interface{}
func (*RegisterArgs) GetReq ¶
func (p *RegisterArgs) GetReq() *user.RegisterReq
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.RegisterResp
}
func (*RegisterResult) FastWrite ¶
func (p *RegisterResult) FastWrite(buf []byte) (n int)
func (*RegisterResult) GetResult ¶
func (p *RegisterResult) GetResult() interface{}
func (*RegisterResult) GetSuccess ¶
func (p *RegisterResult) GetSuccess() *user.RegisterResp
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
Click to show internal directories.
Click to hide internal directories.