Documentation ¶
Overview ¶
Code generated by Kitex v0.4.4. DO NOT EDIT.
Index ¶
- Variables
- func NewInvoker(handler chat_rpc.ChatService, opts ...server.Option) server.Invoker
- func NewServer(handler chat_rpc.ChatService, opts ...server.Option) server.Server
- func NewServiceInfo() *kitex.ServiceInfo
- type Client
- type CreateMessageArgs
- func (p *CreateMessageArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *CreateMessageArgs) FastWrite(buf []byte) (n int)
- func (p *CreateMessageArgs) GetReq() *chat_rpc.RPCMessageCreateReq
- func (p *CreateMessageArgs) IsSetReq() bool
- func (p *CreateMessageArgs) Marshal(out []byte) ([]byte, error)
- func (p *CreateMessageArgs) Size() (n int)
- func (p *CreateMessageArgs) Unmarshal(in []byte) error
- type CreateMessageResult
- func (p *CreateMessageResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *CreateMessageResult) FastWrite(buf []byte) (n int)
- func (p *CreateMessageResult) GetSuccess() *chat_rpc.RPCMessageCreateResp
- func (p *CreateMessageResult) IsSetSuccess() bool
- func (p *CreateMessageResult) Marshal(out []byte) ([]byte, error)
- func (p *CreateMessageResult) SetSuccess(x interface{})
- func (p *CreateMessageResult) Size() (n int)
- func (p *CreateMessageResult) Unmarshal(in []byte) error
- type FriendListArgs
- func (p *FriendListArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *FriendListArgs) FastWrite(buf []byte) (n int)
- func (p *FriendListArgs) GetReq() *chat_rpc.RPCFriendListReq
- func (p *FriendListArgs) IsSetReq() bool
- func (p *FriendListArgs) Marshal(out []byte) ([]byte, error)
- func (p *FriendListArgs) Size() (n int)
- func (p *FriendListArgs) Unmarshal(in []byte) error
- type FriendListResult
- func (p *FriendListResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *FriendListResult) FastWrite(buf []byte) (n int)
- func (p *FriendListResult) GetSuccess() *chat_rpc.RPCFriendListResp
- func (p *FriendListResult) IsSetSuccess() bool
- func (p *FriendListResult) Marshal(out []byte) ([]byte, error)
- func (p *FriendListResult) SetSuccess(x interface{})
- func (p *FriendListResult) Size() (n int)
- func (p *FriendListResult) Unmarshal(in []byte) error
- type MessageListArgs
- func (p *MessageListArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *MessageListArgs) FastWrite(buf []byte) (n int)
- func (p *MessageListArgs) GetReq() *chat_rpc.RPCMessageChatReq
- func (p *MessageListArgs) IsSetReq() bool
- func (p *MessageListArgs) Marshal(out []byte) ([]byte, error)
- func (p *MessageListArgs) Size() (n int)
- func (p *MessageListArgs) Unmarshal(in []byte) error
- type MessageListResult
- func (p *MessageListResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)
- func (p *MessageListResult) FastWrite(buf []byte) (n int)
- func (p *MessageListResult) GetSuccess() *chat_rpc.RPCMessageChatResp
- func (p *MessageListResult) IsSetSuccess() bool
- func (p *MessageListResult) Marshal(out []byte) ([]byte, error)
- func (p *MessageListResult) SetSuccess(x interface{})
- func (p *MessageListResult) Size() (n int)
- func (p *MessageListResult) Unmarshal(in []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateMessageArgs_Req_DEFAULT *chat_rpc.RPCMessageCreateReq
View Source
var CreateMessageResult_Success_DEFAULT *chat_rpc.RPCMessageCreateResp
View Source
var FriendListArgs_Req_DEFAULT *chat_rpc.RPCFriendListReq
View Source
var FriendListResult_Success_DEFAULT *chat_rpc.RPCFriendListResp
View Source
var MessageListArgs_Req_DEFAULT *chat_rpc.RPCMessageChatReq
View Source
var MessageListResult_Success_DEFAULT *chat_rpc.RPCMessageChatResp
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 { FriendList(ctx context.Context, Req *chat_rpc.RPCFriendListReq, callOptions ...callopt.Option) (r *chat_rpc.RPCFriendListResp, err error) CreateMessage(ctx context.Context, Req *chat_rpc.RPCMessageCreateReq, callOptions ...callopt.Option) (r *chat_rpc.RPCMessageCreateResp, err error) MessageList(ctx context.Context, Req *chat_rpc.RPCMessageChatReq, callOptions ...callopt.Option) (r *chat_rpc.RPCMessageChatResp, 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 CreateMessageArgs ¶
type CreateMessageArgs struct {
Req *chat_rpc.RPCMessageCreateReq
}
func (*CreateMessageArgs) FastWrite ¶
func (p *CreateMessageArgs) FastWrite(buf []byte) (n int)
func (*CreateMessageArgs) GetReq ¶
func (p *CreateMessageArgs) GetReq() *chat_rpc.RPCMessageCreateReq
func (*CreateMessageArgs) IsSetReq ¶
func (p *CreateMessageArgs) IsSetReq() bool
func (*CreateMessageArgs) Size ¶
func (p *CreateMessageArgs) Size() (n int)
func (*CreateMessageArgs) Unmarshal ¶
func (p *CreateMessageArgs) Unmarshal(in []byte) error
type CreateMessageResult ¶
type CreateMessageResult struct {
Success *chat_rpc.RPCMessageCreateResp
}
func (*CreateMessageResult) FastWrite ¶
func (p *CreateMessageResult) FastWrite(buf []byte) (n int)
func (*CreateMessageResult) GetSuccess ¶
func (p *CreateMessageResult) GetSuccess() *chat_rpc.RPCMessageCreateResp
func (*CreateMessageResult) IsSetSuccess ¶
func (p *CreateMessageResult) IsSetSuccess() bool
func (*CreateMessageResult) Marshal ¶
func (p *CreateMessageResult) Marshal(out []byte) ([]byte, error)
func (*CreateMessageResult) SetSuccess ¶
func (p *CreateMessageResult) SetSuccess(x interface{})
func (*CreateMessageResult) Size ¶
func (p *CreateMessageResult) Size() (n int)
func (*CreateMessageResult) Unmarshal ¶
func (p *CreateMessageResult) Unmarshal(in []byte) error
type FriendListArgs ¶
type FriendListArgs struct {
Req *chat_rpc.RPCFriendListReq
}
func (*FriendListArgs) FastWrite ¶
func (p *FriendListArgs) FastWrite(buf []byte) (n int)
func (*FriendListArgs) GetReq ¶
func (p *FriendListArgs) GetReq() *chat_rpc.RPCFriendListReq
func (*FriendListArgs) IsSetReq ¶
func (p *FriendListArgs) IsSetReq() bool
func (*FriendListArgs) Size ¶
func (p *FriendListArgs) Size() (n int)
func (*FriendListArgs) Unmarshal ¶
func (p *FriendListArgs) Unmarshal(in []byte) error
type FriendListResult ¶
type FriendListResult struct {
Success *chat_rpc.RPCFriendListResp
}
func (*FriendListResult) FastWrite ¶
func (p *FriendListResult) FastWrite(buf []byte) (n int)
func (*FriendListResult) GetSuccess ¶
func (p *FriendListResult) GetSuccess() *chat_rpc.RPCFriendListResp
func (*FriendListResult) IsSetSuccess ¶
func (p *FriendListResult) IsSetSuccess() bool
func (*FriendListResult) SetSuccess ¶
func (p *FriendListResult) SetSuccess(x interface{})
func (*FriendListResult) Size ¶
func (p *FriendListResult) Size() (n int)
func (*FriendListResult) Unmarshal ¶
func (p *FriendListResult) Unmarshal(in []byte) error
type MessageListArgs ¶
type MessageListArgs struct {
Req *chat_rpc.RPCMessageChatReq
}
func (*MessageListArgs) FastWrite ¶
func (p *MessageListArgs) FastWrite(buf []byte) (n int)
func (*MessageListArgs) GetReq ¶
func (p *MessageListArgs) GetReq() *chat_rpc.RPCMessageChatReq
func (*MessageListArgs) IsSetReq ¶
func (p *MessageListArgs) IsSetReq() bool
func (*MessageListArgs) Size ¶
func (p *MessageListArgs) Size() (n int)
func (*MessageListArgs) Unmarshal ¶
func (p *MessageListArgs) Unmarshal(in []byte) error
type MessageListResult ¶
type MessageListResult struct {
Success *chat_rpc.RPCMessageChatResp
}
func (*MessageListResult) FastWrite ¶
func (p *MessageListResult) FastWrite(buf []byte) (n int)
func (*MessageListResult) GetSuccess ¶
func (p *MessageListResult) GetSuccess() *chat_rpc.RPCMessageChatResp
func (*MessageListResult) IsSetSuccess ¶
func (p *MessageListResult) IsSetSuccess() bool
func (*MessageListResult) SetSuccess ¶
func (p *MessageListResult) SetSuccess(x interface{})
func (*MessageListResult) Size ¶
func (p *MessageListResult) Size() (n int)
func (*MessageListResult) Unmarshal ¶
func (p *MessageListResult) Unmarshal(in []byte) error
Click to show internal directories.
Click to hide internal directories.