Documentation ¶
Overview ¶
Code generated by Kitex v0.12.0. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler pbapi.Echo, opts ...server.Option) server.Invoker
- func NewServer(handler pbapi.Echo, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- func NewServiceInfoForClient() *kitex.ServiceInfo
- func NewServiceInfoForStreamClient() *kitex.ServiceInfo
- func RegisterService(svr server.Server, handler pbapi.Echo, opts ...server.RegisterOption) 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() *pbapi.Request
- 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() *pbapi.Response
- 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 *pbapi.Request
View Source
var EchoResult_Success_DEFAULT *pbapi.Response
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶ added in v0.2.1
func NewServiceInfo() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing all methods
func NewServiceInfoForClient ¶ added in v0.4.0
func NewServiceInfoForClient() *kitex.ServiceInfo
NewServiceInfo creates a new ServiceInfo containing non-streaming methods
func NewServiceInfoForStreamClient ¶ added in v0.4.0
func NewServiceInfoForStreamClient() *kitex.ServiceInfo
func RegisterService ¶ added in v0.4.0
Types ¶
type Client ¶
type Client interface {
Echo(ctx context.Context, Req *pbapi.Request, callOptions ...callopt.Option) (r *pbapi.Response, 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 ¶ added in v0.2.1
func (p *EchoArgs) GetFirstArgument() interface{}
type EchoResult ¶
func (*EchoResult) FastWrite ¶ added in v0.2.1
func (p *EchoResult) FastWrite(buf []byte) (n int)
func (*EchoResult) GetResult ¶ added in v0.2.1
func (p *EchoResult) GetResult() interface{}
func (*EchoResult) GetSuccess ¶
func (p *EchoResult) GetSuccess() *pbapi.Response
func (*EchoResult) IsSetSuccess ¶
func (p *EchoResult) IsSetSuccess() bool
func (*EchoResult) SetSuccess ¶
func (p *EchoResult) SetSuccess(x interface{})
func (*EchoResult) Size ¶ added in v0.2.1
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.