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