Documentation ¶
Index ¶
- Variables
- type ActionRequest
- func (p *ActionRequest) GetActionType() (v int32)
- func (p *ActionRequest) GetContent() (v string)
- func (p *ActionRequest) GetToUserID() (v int64)
- func (p *ActionRequest) GetToken() (v string)
- func (p *ActionRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *ActionRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *ActionRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *ActionRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *ActionRequest) ReadField4(iprot thrift.TProtocol) error
- func (p *ActionRequest) String() string
- func (p *ActionRequest) Write(oprot thrift.TProtocol) (err error)
- type ActionResponse
- func (p *ActionResponse) GetStatusCode() (v int32)
- func (p *ActionResponse) GetStatusMsg() (v string)
- func (p *ActionResponse) IsSetStatusMsg() bool
- func (p *ActionResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *ActionResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *ActionResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *ActionResponse) String() string
- func (p *ActionResponse) Write(oprot thrift.TProtocol) (err error)
- type ChatRequest
- func (p *ChatRequest) GetPreMsgTime() (v int64)
- func (p *ChatRequest) GetToUserID() (v int64)
- func (p *ChatRequest) GetToken() (v string)
- func (p *ChatRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *ChatRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *ChatRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *ChatRequest) String() string
- func (p *ChatRequest) Write(oprot thrift.TProtocol) (err error)
- type ChatResponse
- func (p *ChatResponse) GetMessageList() (v []*Message)
- func (p *ChatResponse) GetStatusCode() (v int32)
- func (p *ChatResponse) GetStatusMsg() (v string)
- func (p *ChatResponse) IsSetStatusMsg() bool
- func (p *ChatResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *ChatResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *ChatResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *ChatResponse) String() string
- func (p *ChatResponse) Write(oprot thrift.TProtocol) (err error)
- type Message
- func (p *Message) GetContent() (v string)
- func (p *Message) GetCreateTime() (v int64)
- func (p *Message) GetFromUserID() (v int64)
- func (p *Message) GetID() (v int64)
- func (p *Message) GetToUserID() (v int64)
- func (p *Message) IsSetCreateTime() bool
- func (p *Message) Read(iprot thrift.TProtocol) (err error)
- func (p *Message) ReadField1(iprot thrift.TProtocol) error
- func (p *Message) ReadField2(iprot thrift.TProtocol) error
- func (p *Message) ReadField3(iprot thrift.TProtocol) error
- func (p *Message) ReadField4(iprot thrift.TProtocol) error
- func (p *Message) ReadField5(iprot thrift.TProtocol) error
- func (p *Message) String() string
- func (p *Message) Write(oprot thrift.TProtocol) (err error)
- type MessageService
- type MessageServiceClient
- func NewMessageServiceClient(c thrift.TClient) *MessageServiceClient
- func NewMessageServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *MessageServiceClient
- func NewMessageServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MessageServiceClient
- type MessageServiceMessageActionArgs
- func (p *MessageServiceMessageActionArgs) GetReq() (v *ActionRequest)
- func (p *MessageServiceMessageActionArgs) IsSetReq() bool
- func (p *MessageServiceMessageActionArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageServiceMessageActionArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *MessageServiceMessageActionArgs) String() string
- func (p *MessageServiceMessageActionArgs) Write(oprot thrift.TProtocol) (err error)
- type MessageServiceMessageActionResult
- func (p *MessageServiceMessageActionResult) GetSuccess() (v *ActionResponse)
- func (p *MessageServiceMessageActionResult) IsSetSuccess() bool
- func (p *MessageServiceMessageActionResult) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageServiceMessageActionResult) ReadField0(iprot thrift.TProtocol) error
- func (p *MessageServiceMessageActionResult) String() string
- func (p *MessageServiceMessageActionResult) Write(oprot thrift.TProtocol) (err error)
- type MessageServiceMessageChatArgs
- func (p *MessageServiceMessageChatArgs) GetReq() (v *ChatRequest)
- func (p *MessageServiceMessageChatArgs) IsSetReq() bool
- func (p *MessageServiceMessageChatArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageServiceMessageChatArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *MessageServiceMessageChatArgs) String() string
- func (p *MessageServiceMessageChatArgs) Write(oprot thrift.TProtocol) (err error)
- type MessageServiceMessageChatResult
- func (p *MessageServiceMessageChatResult) GetSuccess() (v *ChatResponse)
- func (p *MessageServiceMessageChatResult) IsSetSuccess() bool
- func (p *MessageServiceMessageChatResult) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageServiceMessageChatResult) ReadField0(iprot thrift.TProtocol) error
- func (p *MessageServiceMessageChatResult) String() string
- func (p *MessageServiceMessageChatResult) Write(oprot thrift.TProtocol) (err error)
- type MessageServiceProcessor
- func (p *MessageServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *MessageServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *MessageServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *MessageServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionResponse_StatusMsg_DEFAULT string
View Source
var ChatResponse_StatusMsg_DEFAULT string
View Source
var Message_CreateTime_DEFAULT int64
Functions ¶
This section is empty.
Types ¶
type ActionRequest ¶
type ActionRequest struct { Token string `thrift:"token,1,required" form:"token,required" json:"token,required" query:"token,required"` ToUserID int64 `thrift:"to_user_id,2,required" form:"to_user_id,required" json:"to_user_id,required" query:"to_user_id,required"` ActionType int32 `thrift:"action_type,3,required" form:"action_type,required" json:"action_type,required" query:"action_type,required"` Content string `thrift:"content,4,required" form:"content,required" json:"content,required" query:"content,required"` }
var MessageServiceMessageActionArgs_Req_DEFAULT *ActionRequest
func NewActionRequest ¶
func NewActionRequest() *ActionRequest
func (*ActionRequest) GetActionType ¶
func (p *ActionRequest) GetActionType() (v int32)
func (*ActionRequest) GetContent ¶
func (p *ActionRequest) GetContent() (v string)
func (*ActionRequest) GetToUserID ¶
func (p *ActionRequest) GetToUserID() (v int64)
func (*ActionRequest) GetToken ¶
func (p *ActionRequest) GetToken() (v string)
func (*ActionRequest) ReadField1 ¶
func (p *ActionRequest) ReadField1(iprot thrift.TProtocol) error
func (*ActionRequest) ReadField2 ¶
func (p *ActionRequest) ReadField2(iprot thrift.TProtocol) error
func (*ActionRequest) ReadField3 ¶
func (p *ActionRequest) ReadField3(iprot thrift.TProtocol) error
func (*ActionRequest) ReadField4 ¶
func (p *ActionRequest) ReadField4(iprot thrift.TProtocol) error
func (*ActionRequest) String ¶
func (p *ActionRequest) String() string
type ActionResponse ¶
type ActionResponse struct { StatusCode int32 `thrift:"status_code,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"` StatusMsg *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` }
var MessageServiceMessageActionResult_Success_DEFAULT *ActionResponse
func NewActionResponse ¶
func NewActionResponse() *ActionResponse
func (*ActionResponse) GetStatusCode ¶
func (p *ActionResponse) GetStatusCode() (v int32)
func (*ActionResponse) GetStatusMsg ¶
func (p *ActionResponse) GetStatusMsg() (v string)
func (*ActionResponse) IsSetStatusMsg ¶
func (p *ActionResponse) IsSetStatusMsg() bool
func (*ActionResponse) ReadField1 ¶
func (p *ActionResponse) ReadField1(iprot thrift.TProtocol) error
func (*ActionResponse) ReadField2 ¶
func (p *ActionResponse) ReadField2(iprot thrift.TProtocol) error
func (*ActionResponse) String ¶
func (p *ActionResponse) String() string
type ChatRequest ¶
type ChatRequest struct { Token string `thrift:"token,1,required" form:"token,required" json:"token,required" query:"token,required"` ToUserID int64 `thrift:"to_user_id,2,required" form:"to_user_id,required" json:"to_user_id,required" query:"to_user_id,required"` PreMsgTime int64 `thrift:"pre_msg_time,3,required" form:"pre_msg_time,required" json:"pre_msg_time,required" query:"pre_msg_time,required"` }
var MessageServiceMessageChatArgs_Req_DEFAULT *ChatRequest
func NewChatRequest ¶
func NewChatRequest() *ChatRequest
func (*ChatRequest) GetPreMsgTime ¶
func (p *ChatRequest) GetPreMsgTime() (v int64)
func (*ChatRequest) GetToUserID ¶
func (p *ChatRequest) GetToUserID() (v int64)
func (*ChatRequest) GetToken ¶
func (p *ChatRequest) GetToken() (v string)
func (*ChatRequest) ReadField1 ¶
func (p *ChatRequest) ReadField1(iprot thrift.TProtocol) error
func (*ChatRequest) ReadField2 ¶
func (p *ChatRequest) ReadField2(iprot thrift.TProtocol) error
func (*ChatRequest) ReadField3 ¶
func (p *ChatRequest) ReadField3(iprot thrift.TProtocol) error
func (*ChatRequest) String ¶
func (p *ChatRequest) String() string
type ChatResponse ¶
type ChatResponse struct { StatusCode int32 `thrift:"status_code,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"` StatusMsg *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` MessageList []*Message `thrift:"message_list,3,required" form:"message_list,required" json:"message_list,required" query:"message_list,required"` }
var MessageServiceMessageChatResult_Success_DEFAULT *ChatResponse
func NewChatResponse ¶
func NewChatResponse() *ChatResponse
func (*ChatResponse) GetMessageList ¶
func (p *ChatResponse) GetMessageList() (v []*Message)
func (*ChatResponse) GetStatusCode ¶
func (p *ChatResponse) GetStatusCode() (v int32)
func (*ChatResponse) GetStatusMsg ¶
func (p *ChatResponse) GetStatusMsg() (v string)
func (*ChatResponse) IsSetStatusMsg ¶
func (p *ChatResponse) IsSetStatusMsg() bool
func (*ChatResponse) ReadField1 ¶
func (p *ChatResponse) ReadField1(iprot thrift.TProtocol) error
func (*ChatResponse) ReadField2 ¶
func (p *ChatResponse) ReadField2(iprot thrift.TProtocol) error
func (*ChatResponse) ReadField3 ¶
func (p *ChatResponse) ReadField3(iprot thrift.TProtocol) error
func (*ChatResponse) String ¶
func (p *ChatResponse) String() string
type Message ¶
type Message struct { ID int64 `thrift:"id,1,required" form:"id,required" json:"id,required" query:"id,required"` ToUserID int64 `thrift:"to_user_id,2,required" form:"to_user_id,required" json:"to_user_id,required" query:"to_user_id,required"` FromUserID int64 `thrift:"from_user_id,3,required" form:"from_user_id,required" json:"from_user_id,required" query:"from_user_id,required"` Content string `thrift:"content,4,required" form:"content,required" json:"content,required" query:"content,required"` CreateTime *int64 `thrift:"create_time,5,optional" form:"create_time" json:"create_time,omitempty" query:"create_time"` }
func NewMessage ¶
func NewMessage() *Message
func (*Message) GetContent ¶
func (*Message) GetCreateTime ¶
func (*Message) GetFromUserID ¶
func (*Message) GetToUserID ¶
func (*Message) IsSetCreateTime ¶
type MessageService ¶
type MessageService interface { MessageChat(ctx context.Context, req *ChatRequest) (r *ChatResponse, err error) MessageAction(ctx context.Context, req *ActionRequest) (r *ActionResponse, err error) }
type MessageServiceClient ¶
type MessageServiceClient struct {
// contains filtered or unexported fields
}
func NewMessageServiceClient ¶
func NewMessageServiceClient(c thrift.TClient) *MessageServiceClient
func NewMessageServiceClientFactory ¶
func NewMessageServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *MessageServiceClient
func NewMessageServiceClientProtocol ¶
func NewMessageServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MessageServiceClient
func (*MessageServiceClient) Client_ ¶
func (p *MessageServiceClient) Client_() thrift.TClient
func (*MessageServiceClient) MessageAction ¶
func (p *MessageServiceClient) MessageAction(ctx context.Context, req *ActionRequest) (r *ActionResponse, err error)
func (*MessageServiceClient) MessageChat ¶
func (p *MessageServiceClient) MessageChat(ctx context.Context, req *ChatRequest) (r *ChatResponse, err error)
type MessageServiceMessageActionArgs ¶
type MessageServiceMessageActionArgs struct {
Req *ActionRequest `thrift:"req,1"`
}
func NewMessageServiceMessageActionArgs ¶
func NewMessageServiceMessageActionArgs() *MessageServiceMessageActionArgs
func (*MessageServiceMessageActionArgs) GetReq ¶
func (p *MessageServiceMessageActionArgs) GetReq() (v *ActionRequest)
func (*MessageServiceMessageActionArgs) IsSetReq ¶
func (p *MessageServiceMessageActionArgs) IsSetReq() bool
func (*MessageServiceMessageActionArgs) Read ¶
func (p *MessageServiceMessageActionArgs) Read(iprot thrift.TProtocol) (err error)
func (*MessageServiceMessageActionArgs) ReadField1 ¶
func (p *MessageServiceMessageActionArgs) ReadField1(iprot thrift.TProtocol) error
func (*MessageServiceMessageActionArgs) String ¶
func (p *MessageServiceMessageActionArgs) String() string
type MessageServiceMessageActionResult ¶
type MessageServiceMessageActionResult struct {
Success *ActionResponse `thrift:"success,0,optional"`
}
func NewMessageServiceMessageActionResult ¶
func NewMessageServiceMessageActionResult() *MessageServiceMessageActionResult
func (*MessageServiceMessageActionResult) GetSuccess ¶
func (p *MessageServiceMessageActionResult) GetSuccess() (v *ActionResponse)
func (*MessageServiceMessageActionResult) IsSetSuccess ¶
func (p *MessageServiceMessageActionResult) IsSetSuccess() bool
func (*MessageServiceMessageActionResult) Read ¶
func (p *MessageServiceMessageActionResult) Read(iprot thrift.TProtocol) (err error)
func (*MessageServiceMessageActionResult) ReadField0 ¶
func (p *MessageServiceMessageActionResult) ReadField0(iprot thrift.TProtocol) error
func (*MessageServiceMessageActionResult) String ¶
func (p *MessageServiceMessageActionResult) String() string
type MessageServiceMessageChatArgs ¶
type MessageServiceMessageChatArgs struct {
Req *ChatRequest `thrift:"req,1"`
}
func NewMessageServiceMessageChatArgs ¶
func NewMessageServiceMessageChatArgs() *MessageServiceMessageChatArgs
func (*MessageServiceMessageChatArgs) GetReq ¶
func (p *MessageServiceMessageChatArgs) GetReq() (v *ChatRequest)
func (*MessageServiceMessageChatArgs) IsSetReq ¶
func (p *MessageServiceMessageChatArgs) IsSetReq() bool
func (*MessageServiceMessageChatArgs) Read ¶
func (p *MessageServiceMessageChatArgs) Read(iprot thrift.TProtocol) (err error)
func (*MessageServiceMessageChatArgs) ReadField1 ¶
func (p *MessageServiceMessageChatArgs) ReadField1(iprot thrift.TProtocol) error
func (*MessageServiceMessageChatArgs) String ¶
func (p *MessageServiceMessageChatArgs) String() string
type MessageServiceMessageChatResult ¶
type MessageServiceMessageChatResult struct {
Success *ChatResponse `thrift:"success,0,optional"`
}
func NewMessageServiceMessageChatResult ¶
func NewMessageServiceMessageChatResult() *MessageServiceMessageChatResult
func (*MessageServiceMessageChatResult) GetSuccess ¶
func (p *MessageServiceMessageChatResult) GetSuccess() (v *ChatResponse)
func (*MessageServiceMessageChatResult) IsSetSuccess ¶
func (p *MessageServiceMessageChatResult) IsSetSuccess() bool
func (*MessageServiceMessageChatResult) Read ¶
func (p *MessageServiceMessageChatResult) Read(iprot thrift.TProtocol) (err error)
func (*MessageServiceMessageChatResult) ReadField0 ¶
func (p *MessageServiceMessageChatResult) ReadField0(iprot thrift.TProtocol) error
func (*MessageServiceMessageChatResult) String ¶
func (p *MessageServiceMessageChatResult) String() string
type MessageServiceProcessor ¶
type MessageServiceProcessor struct {
// contains filtered or unexported fields
}
func NewMessageServiceProcessor ¶
func NewMessageServiceProcessor(handler MessageService) *MessageServiceProcessor
func (*MessageServiceProcessor) AddToProcessorMap ¶
func (p *MessageServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*MessageServiceProcessor) GetProcessorFunction ¶
func (p *MessageServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*MessageServiceProcessor) Process ¶
func (p *MessageServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*MessageServiceProcessor) ProcessorMap ¶
func (p *MessageServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.