Documentation ¶
Overview ¶
Code generated by Kitex v0.4.4. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler message.MessageService, opts ...server.Option) server.Invoker
- func NewServer(handler message.MessageService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type MessageActionArgs
- func (p *MessageActionArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *MessageActionArgs) FastWrite(buf []byte) (n int)
- func (p *MessageActionArgs) GetReq() *message.MessageActionRequest
- func (p *MessageActionArgs) IsSetReq() bool
- func (p *MessageActionArgs) Marshal(out []byte) ([]byte, error)
- func (p *MessageActionArgs) Size() (n int)
- func (p *MessageActionArgs) Unmarshal(in []byte) error
- type MessageActionResult
- func (p *MessageActionResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *MessageActionResult) FastWrite(buf []byte) (n int)
- func (p *MessageActionResult) GetSuccess() *message.MessageActionResponse
- func (p *MessageActionResult) IsSetSuccess() bool
- func (p *MessageActionResult) Marshal(out []byte) ([]byte, error)
- func (p *MessageActionResult) SetSuccess(x interface{})
- func (p *MessageActionResult) Size() (n int)
- func (p *MessageActionResult) Unmarshal(in []byte) error
- type MessageChatArgs
- func (p *MessageChatArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *MessageChatArgs) FastWrite(buf []byte) (n int)
- func (p *MessageChatArgs) GetReq() *message.MessageChatRequest
- func (p *MessageChatArgs) IsSetReq() bool
- func (p *MessageChatArgs) Marshal(out []byte) ([]byte, error)
- func (p *MessageChatArgs) Size() (n int)
- func (p *MessageChatArgs) Unmarshal(in []byte) error
- type MessageChatResult
- func (p *MessageChatResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *MessageChatResult) FastWrite(buf []byte) (n int)
- func (p *MessageChatResult) GetSuccess() *message.MessageChatResponse
- func (p *MessageChatResult) IsSetSuccess() bool
- func (p *MessageChatResult) Marshal(out []byte) ([]byte, error)
- func (p *MessageChatResult) SetSuccess(x interface{})
- func (p *MessageChatResult) Size() (n int)
- func (p *MessageChatResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MessageActionArgs_Req_DEFAULT *message.MessageActionRequest
View Source
var MessageActionResult_Success_DEFAULT *message.MessageActionResponse
View Source
var MessageChatArgs_Req_DEFAULT *message.MessageChatRequest
View Source
var MessageChatResult_Success_DEFAULT *message.MessageChatResponse
Functions ¶
func NewInvoker ¶
NewInvoker creates a server.Invoker with the given handler and options.
func NewServiceInfo ¶
func NewServiceInfo() *kitex.ServiceInfo
Types ¶
type Client ¶
type Client interface { MessageChat(ctx context.Context, Req *message.MessageChatRequest, callOptions ...callopt.Option) (r *message.MessageChatResponse, err error) MessageAction(ctx context.Context, Req *message.MessageActionRequest, callOptions ...callopt.Option) (r *message.MessageActionResponse, 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 MessageActionArgs ¶
type MessageActionArgs struct {
Req *message.MessageActionRequest
}
func (*MessageActionArgs) FastWrite ¶
func (p *MessageActionArgs) FastWrite(buf []byte) (n int)
func (*MessageActionArgs) GetReq ¶
func (p *MessageActionArgs) GetReq() *message.MessageActionRequest
func (*MessageActionArgs) IsSetReq ¶
func (p *MessageActionArgs) IsSetReq() bool
func (*MessageActionArgs) Size ¶
func (p *MessageActionArgs) Size() (n int)
func (*MessageActionArgs) Unmarshal ¶
func (p *MessageActionArgs) Unmarshal(in []byte) error
type MessageActionResult ¶
type MessageActionResult struct {
Success *message.MessageActionResponse
}
func (*MessageActionResult) FastWrite ¶
func (p *MessageActionResult) FastWrite(buf []byte) (n int)
func (*MessageActionResult) GetSuccess ¶
func (p *MessageActionResult) GetSuccess() *message.MessageActionResponse
func (*MessageActionResult) IsSetSuccess ¶
func (p *MessageActionResult) IsSetSuccess() bool
func (*MessageActionResult) Marshal ¶
func (p *MessageActionResult) Marshal(out []byte) ([]byte, error)
func (*MessageActionResult) SetSuccess ¶
func (p *MessageActionResult) SetSuccess(x interface{})
func (*MessageActionResult) Size ¶
func (p *MessageActionResult) Size() (n int)
func (*MessageActionResult) Unmarshal ¶
func (p *MessageActionResult) Unmarshal(in []byte) error
type MessageChatArgs ¶
type MessageChatArgs struct {
Req *message.MessageChatRequest
}
func (*MessageChatArgs) FastWrite ¶
func (p *MessageChatArgs) FastWrite(buf []byte) (n int)
func (*MessageChatArgs) GetReq ¶
func (p *MessageChatArgs) GetReq() *message.MessageChatRequest
func (*MessageChatArgs) IsSetReq ¶
func (p *MessageChatArgs) IsSetReq() bool
func (*MessageChatArgs) Size ¶
func (p *MessageChatArgs) Size() (n int)
func (*MessageChatArgs) Unmarshal ¶
func (p *MessageChatArgs) Unmarshal(in []byte) error
type MessageChatResult ¶
type MessageChatResult struct {
Success *message.MessageChatResponse
}
func (*MessageChatResult) FastWrite ¶
func (p *MessageChatResult) FastWrite(buf []byte) (n int)
func (*MessageChatResult) GetSuccess ¶
func (p *MessageChatResult) GetSuccess() *message.MessageChatResponse
func (*MessageChatResult) IsSetSuccess ¶
func (p *MessageChatResult) IsSetSuccess() bool
func (*MessageChatResult) SetSuccess ¶
func (p *MessageChatResult) SetSuccess(x interface{})
func (*MessageChatResult) Size ¶
func (p *MessageChatResult) Size() (n int)
func (*MessageChatResult) Unmarshal ¶
func (p *MessageChatResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.