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