Documentation ¶
Overview ¶
Code generated by Kitex v0.11.3. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler echo.KitexEchoService, opts ...server.Option) server.Invoker
- func NewServer(handler echo.KitexEchoService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler echo.KitexEchoService, ...) error
- type Client
- type EchoArgs
- func (p *EchoArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *EchoArgs) FastWrite(buf []byte) (n int)
- func (p *EchoArgs) GetFirstArgument() interface{}
- func (p *EchoArgs) GetReq() *echo.KitexData
- func (p *EchoArgs) IsSetReq() bool
- func (p *EchoArgs) Marshal(out []byte) ([]byte, error)
- func (p *EchoArgs) Size() (n int)
- func (p *EchoArgs) Unmarshal(in []byte) error
- type EchoResult
- func (p *EchoResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *EchoResult) FastWrite(buf []byte) (n int)
- func (p *EchoResult) GetResult() interface{}
- func (p *EchoResult) GetSuccess() *echo.KitexData
- func (p *EchoResult) IsSetSuccess() bool
- func (p *EchoResult) Marshal(out []byte) ([]byte, error)
- func (p *EchoResult) SetSuccess(x interface{})
- func (p *EchoResult) Size() (n int)
- func (p *EchoResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var EchoArgs_Req_DEFAULT *echo.KitexData
View Source
var EchoResult_Success_DEFAULT *echo.KitexData
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 echo.KitexEchoService, opts ...server.RegisterOption) error
Types ¶
type Client ¶
type Client interface {
Echo(ctx context.Context, Req *echo.KitexData, callOptions ...callopt.Option) (r *echo.KitexData, 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 EchoArgs ¶
func (*EchoArgs) GetFirstArgument ¶
func (p *EchoArgs) GetFirstArgument() interface{}
type EchoResult ¶
func (*EchoResult) FastWrite ¶
func (p *EchoResult) FastWrite(buf []byte) (n int)
func (*EchoResult) GetResult ¶
func (p *EchoResult) GetResult() interface{}
func (*EchoResult) GetSuccess ¶
func (p *EchoResult) GetSuccess() *echo.KitexData
func (*EchoResult) IsSetSuccess ¶
func (p *EchoResult) IsSetSuccess() bool
func (*EchoResult) SetSuccess ¶
func (p *EchoResult) SetSuccess(x interface{})
func (*EchoResult) Size ¶
func (p *EchoResult) Size() (n int)
func (*EchoResult) Unmarshal ¶
func (p *EchoResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.