Documentation ¶
Index ¶
- Variables
- type ChatService
- type ChatServiceClient
- type ChatServiceGetMsgArgs
- func (p *ChatServiceGetMsgArgs) BLength() int
- func (p *ChatServiceGetMsgArgs) DeepEqual(ano *ChatServiceGetMsgArgs) bool
- func (p *ChatServiceGetMsgArgs) FastRead(buf []byte) (int, error)
- func (p *ChatServiceGetMsgArgs) FastReadField1(buf []byte) (int, error)
- func (p *ChatServiceGetMsgArgs) FastWrite(buf []byte) int
- func (p *ChatServiceGetMsgArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ChatServiceGetMsgArgs) Field1DeepEqual(src *MessageChatRequest) bool
- func (p *ChatServiceGetMsgArgs) GetFirstArgument() interface{}
- func (p *ChatServiceGetMsgArgs) GetReq() (v *MessageChatRequest)
- func (p *ChatServiceGetMsgArgs) InitDefault()
- func (p *ChatServiceGetMsgArgs) IsSetReq() bool
- func (p *ChatServiceGetMsgArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatServiceGetMsgArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ChatServiceGetMsgArgs) SetReq(val *MessageChatRequest)
- func (p *ChatServiceGetMsgArgs) String() string
- func (p *ChatServiceGetMsgArgs) Write(oprot thrift.TProtocol) (err error)
- type ChatServiceGetMsgResult
- func (p *ChatServiceGetMsgResult) BLength() int
- func (p *ChatServiceGetMsgResult) DeepEqual(ano *ChatServiceGetMsgResult) bool
- func (p *ChatServiceGetMsgResult) FastRead(buf []byte) (int, error)
- func (p *ChatServiceGetMsgResult) FastReadField0(buf []byte) (int, error)
- func (p *ChatServiceGetMsgResult) FastWrite(buf []byte) int
- func (p *ChatServiceGetMsgResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ChatServiceGetMsgResult) Field0DeepEqual(src *MessageChatResponse) bool
- func (p *ChatServiceGetMsgResult) GetResult() interface{}
- func (p *ChatServiceGetMsgResult) GetSuccess() (v *MessageChatResponse)
- func (p *ChatServiceGetMsgResult) InitDefault()
- func (p *ChatServiceGetMsgResult) IsSetSuccess() bool
- func (p *ChatServiceGetMsgResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatServiceGetMsgResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ChatServiceGetMsgResult) SetSuccess(x interface{})
- func (p *ChatServiceGetMsgResult) String() string
- func (p *ChatServiceGetMsgResult) Write(oprot thrift.TProtocol) (err error)
- type ChatServicePostMsgArgs
- func (p *ChatServicePostMsgArgs) BLength() int
- func (p *ChatServicePostMsgArgs) DeepEqual(ano *ChatServicePostMsgArgs) bool
- func (p *ChatServicePostMsgArgs) FastRead(buf []byte) (int, error)
- func (p *ChatServicePostMsgArgs) FastReadField1(buf []byte) (int, error)
- func (p *ChatServicePostMsgArgs) FastWrite(buf []byte) int
- func (p *ChatServicePostMsgArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ChatServicePostMsgArgs) Field1DeepEqual(src *RelationActionRequest) bool
- func (p *ChatServicePostMsgArgs) GetFirstArgument() interface{}
- func (p *ChatServicePostMsgArgs) GetReq() (v *RelationActionRequest)
- func (p *ChatServicePostMsgArgs) InitDefault()
- func (p *ChatServicePostMsgArgs) IsSetReq() bool
- func (p *ChatServicePostMsgArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatServicePostMsgArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *ChatServicePostMsgArgs) SetReq(val *RelationActionRequest)
- func (p *ChatServicePostMsgArgs) String() string
- func (p *ChatServicePostMsgArgs) Write(oprot thrift.TProtocol) (err error)
- type ChatServicePostMsgResult
- func (p *ChatServicePostMsgResult) BLength() int
- func (p *ChatServicePostMsgResult) DeepEqual(ano *ChatServicePostMsgResult) bool
- func (p *ChatServicePostMsgResult) FastRead(buf []byte) (int, error)
- func (p *ChatServicePostMsgResult) FastReadField0(buf []byte) (int, error)
- func (p *ChatServicePostMsgResult) FastWrite(buf []byte) int
- func (p *ChatServicePostMsgResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ChatServicePostMsgResult) Field0DeepEqual(src *RelationActionResponse) bool
- func (p *ChatServicePostMsgResult) GetResult() interface{}
- func (p *ChatServicePostMsgResult) GetSuccess() (v *RelationActionResponse)
- func (p *ChatServicePostMsgResult) InitDefault()
- func (p *ChatServicePostMsgResult) IsSetSuccess() bool
- func (p *ChatServicePostMsgResult) Read(iprot thrift.TProtocol) (err error)
- func (p *ChatServicePostMsgResult) ReadField0(iprot thrift.TProtocol) error
- func (p *ChatServicePostMsgResult) SetSuccess(x interface{})
- func (p *ChatServicePostMsgResult) String() string
- func (p *ChatServicePostMsgResult) Write(oprot thrift.TProtocol) (err error)
- type ChatServiceProcessor
- func (p *ChatServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *ChatServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *ChatServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *ChatServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Message
- func (p *Message) BLength() int
- func (p *Message) DeepEqual(ano *Message) bool
- func (p *Message) FastRead(buf []byte) (int, error)
- func (p *Message) FastReadField1(buf []byte) (int, error)
- func (p *Message) FastReadField2(buf []byte) (int, error)
- func (p *Message) FastReadField3(buf []byte) (int, error)
- func (p *Message) FastReadField4(buf []byte) (int, error)
- func (p *Message) FastReadField5(buf []byte) (int, error)
- func (p *Message) FastWrite(buf []byte) int
- func (p *Message) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Message) Field1DeepEqual(src int64) bool
- func (p *Message) Field2DeepEqual(src int64) bool
- func (p *Message) Field3DeepEqual(src int64) bool
- func (p *Message) Field4DeepEqual(src string) bool
- func (p *Message) Field5DeepEqual(src *string) bool
- func (p *Message) GetContent() (v string)
- func (p *Message) GetCreateTime() (v string)
- func (p *Message) GetFromUserId() (v int64)
- func (p *Message) GetId() (v int64)
- func (p *Message) GetToUserId() (v int64)
- func (p *Message) InitDefault()
- 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) SetContent(val string)
- func (p *Message) SetCreateTime(val *string)
- func (p *Message) SetFromUserId(val int64)
- func (p *Message) SetId(val int64)
- func (p *Message) SetToUserId(val int64)
- func (p *Message) String() string
- func (p *Message) Write(oprot thrift.TProtocol) (err error)
- type MessageChatRequest
- func (p *MessageChatRequest) BLength() int
- func (p *MessageChatRequest) DeepEqual(ano *MessageChatRequest) bool
- func (p *MessageChatRequest) FastRead(buf []byte) (int, error)
- func (p *MessageChatRequest) FastReadField1(buf []byte) (int, error)
- func (p *MessageChatRequest) FastReadField2(buf []byte) (int, error)
- func (p *MessageChatRequest) FastReadField3(buf []byte) (int, error)
- func (p *MessageChatRequest) FastWrite(buf []byte) int
- func (p *MessageChatRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MessageChatRequest) Field1DeepEqual(src string) bool
- func (p *MessageChatRequest) Field2DeepEqual(src int64) bool
- func (p *MessageChatRequest) Field3DeepEqual(src int64) bool
- func (p *MessageChatRequest) GetPreMsgTime() (v int64)
- func (p *MessageChatRequest) GetToUserId() (v int64)
- func (p *MessageChatRequest) GetToken() (v string)
- func (p *MessageChatRequest) InitDefault()
- func (p *MessageChatRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageChatRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *MessageChatRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *MessageChatRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *MessageChatRequest) SetPreMsgTime(val int64)
- func (p *MessageChatRequest) SetToUserId(val int64)
- func (p *MessageChatRequest) SetToken(val string)
- func (p *MessageChatRequest) String() string
- func (p *MessageChatRequest) Write(oprot thrift.TProtocol) (err error)
- type MessageChatResponse
- func (p *MessageChatResponse) BLength() int
- func (p *MessageChatResponse) DeepEqual(ano *MessageChatResponse) bool
- func (p *MessageChatResponse) FastRead(buf []byte) (int, error)
- func (p *MessageChatResponse) FastReadField1(buf []byte) (int, error)
- func (p *MessageChatResponse) FastReadField2(buf []byte) (int, error)
- func (p *MessageChatResponse) FastReadField3(buf []byte) (int, error)
- func (p *MessageChatResponse) FastWrite(buf []byte) int
- func (p *MessageChatResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MessageChatResponse) Field1DeepEqual(src int32) bool
- func (p *MessageChatResponse) Field2DeepEqual(src *string) bool
- func (p *MessageChatResponse) Field3DeepEqual(src []*Message) bool
- func (p *MessageChatResponse) GetMessageList() (v []*Message)
- func (p *MessageChatResponse) GetStatusCode() (v int32)
- func (p *MessageChatResponse) GetStatusMsg() (v string)
- func (p *MessageChatResponse) InitDefault()
- func (p *MessageChatResponse) IsSetStatusMsg() bool
- func (p *MessageChatResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageChatResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *MessageChatResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *MessageChatResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *MessageChatResponse) SetMessageList(val []*Message)
- func (p *MessageChatResponse) SetStatusCode(val int32)
- func (p *MessageChatResponse) SetStatusMsg(val *string)
- func (p *MessageChatResponse) String() string
- func (p *MessageChatResponse) Write(oprot thrift.TProtocol) (err error)
- type RelationActionRequest
- func (p *RelationActionRequest) BLength() int
- func (p *RelationActionRequest) DeepEqual(ano *RelationActionRequest) bool
- func (p *RelationActionRequest) FastRead(buf []byte) (int, error)
- func (p *RelationActionRequest) FastReadField1(buf []byte) (int, error)
- func (p *RelationActionRequest) FastReadField2(buf []byte) (int, error)
- func (p *RelationActionRequest) FastReadField3(buf []byte) (int, error)
- func (p *RelationActionRequest) FastReadField4(buf []byte) (int, error)
- func (p *RelationActionRequest) FastWrite(buf []byte) int
- func (p *RelationActionRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *RelationActionRequest) Field1DeepEqual(src string) bool
- func (p *RelationActionRequest) Field2DeepEqual(src int64) bool
- func (p *RelationActionRequest) Field3DeepEqual(src int32) bool
- func (p *RelationActionRequest) Field4DeepEqual(src string) bool
- func (p *RelationActionRequest) GetActionType() (v int32)
- func (p *RelationActionRequest) GetContent() (v string)
- func (p *RelationActionRequest) GetToUserId() (v int64)
- func (p *RelationActionRequest) GetToken() (v string)
- func (p *RelationActionRequest) InitDefault()
- func (p *RelationActionRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *RelationActionRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *RelationActionRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *RelationActionRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *RelationActionRequest) ReadField4(iprot thrift.TProtocol) error
- func (p *RelationActionRequest) SetActionType(val int32)
- func (p *RelationActionRequest) SetContent(val string)
- func (p *RelationActionRequest) SetToUserId(val int64)
- func (p *RelationActionRequest) SetToken(val string)
- func (p *RelationActionRequest) String() string
- func (p *RelationActionRequest) Write(oprot thrift.TProtocol) (err error)
- type RelationActionResponse
- func (p *RelationActionResponse) BLength() int
- func (p *RelationActionResponse) DeepEqual(ano *RelationActionResponse) bool
- func (p *RelationActionResponse) FastRead(buf []byte) (int, error)
- func (p *RelationActionResponse) FastReadField1(buf []byte) (int, error)
- func (p *RelationActionResponse) FastReadField2(buf []byte) (int, error)
- func (p *RelationActionResponse) FastWrite(buf []byte) int
- func (p *RelationActionResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *RelationActionResponse) Field1DeepEqual(src int32) bool
- func (p *RelationActionResponse) Field2DeepEqual(src *string) bool
- func (p *RelationActionResponse) GetStatusCode() (v int32)
- func (p *RelationActionResponse) GetStatusMsg() (v string)
- func (p *RelationActionResponse) InitDefault()
- func (p *RelationActionResponse) IsSetStatusMsg() bool
- func (p *RelationActionResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *RelationActionResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *RelationActionResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *RelationActionResponse) SetStatusCode(val int32)
- func (p *RelationActionResponse) SetStatusMsg(val *string)
- func (p *RelationActionResponse) String() string
- func (p *RelationActionResponse) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var KitexUnusedProtection = struct{}{} //nolint:all
KitexUnusedProtection is used to prevent 'imported and not used' error.
View Source
var MessageChatResponse_StatusMsg_DEFAULT string
View Source
var Message_CreateTime_DEFAULT string
View Source
var RelationActionResponse_StatusMsg_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type ChatService ¶
type ChatService interface { GetMsg(ctx context.Context, req *MessageChatRequest) (r *MessageChatResponse, err error) PostMsg(ctx context.Context, req *RelationActionRequest) (r *RelationActionResponse, err error) }
type ChatServiceClient ¶
type ChatServiceClient struct {
// contains filtered or unexported fields
}
func NewChatServiceClient ¶
func NewChatServiceClient(c thrift.TClient) *ChatServiceClient
func NewChatServiceClientFactory ¶
func NewChatServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *ChatServiceClient
func NewChatServiceClientProtocol ¶
func NewChatServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *ChatServiceClient
func (*ChatServiceClient) Client_ ¶
func (p *ChatServiceClient) Client_() thrift.TClient
func (*ChatServiceClient) GetMsg ¶
func (p *ChatServiceClient) GetMsg(ctx context.Context, req *MessageChatRequest) (r *MessageChatResponse, err error)
func (*ChatServiceClient) PostMsg ¶
func (p *ChatServiceClient) PostMsg(ctx context.Context, req *RelationActionRequest) (r *RelationActionResponse, err error)
type ChatServiceGetMsgArgs ¶
type ChatServiceGetMsgArgs struct {
Req *MessageChatRequest `thrift:"Req,1" frugal:"1,default,MessageChatRequest" json:"Req"`
}
func NewChatServiceGetMsgArgs ¶
func NewChatServiceGetMsgArgs() *ChatServiceGetMsgArgs
func (*ChatServiceGetMsgArgs) BLength ¶
func (p *ChatServiceGetMsgArgs) BLength() int
func (*ChatServiceGetMsgArgs) DeepEqual ¶
func (p *ChatServiceGetMsgArgs) DeepEqual(ano *ChatServiceGetMsgArgs) bool
func (*ChatServiceGetMsgArgs) FastRead ¶
func (p *ChatServiceGetMsgArgs) FastRead(buf []byte) (int, error)
func (*ChatServiceGetMsgArgs) FastReadField1 ¶
func (p *ChatServiceGetMsgArgs) FastReadField1(buf []byte) (int, error)
func (*ChatServiceGetMsgArgs) FastWrite ¶
func (p *ChatServiceGetMsgArgs) FastWrite(buf []byte) int
for compatibility
func (*ChatServiceGetMsgArgs) FastWriteNocopy ¶
func (p *ChatServiceGetMsgArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ChatServiceGetMsgArgs) Field1DeepEqual ¶
func (p *ChatServiceGetMsgArgs) Field1DeepEqual(src *MessageChatRequest) bool
func (*ChatServiceGetMsgArgs) GetFirstArgument ¶
func (p *ChatServiceGetMsgArgs) GetFirstArgument() interface{}
func (*ChatServiceGetMsgArgs) GetReq ¶
func (p *ChatServiceGetMsgArgs) GetReq() (v *MessageChatRequest)
func (*ChatServiceGetMsgArgs) InitDefault ¶
func (p *ChatServiceGetMsgArgs) InitDefault()
func (*ChatServiceGetMsgArgs) IsSetReq ¶
func (p *ChatServiceGetMsgArgs) IsSetReq() bool
func (*ChatServiceGetMsgArgs) Read ¶
func (p *ChatServiceGetMsgArgs) Read(iprot thrift.TProtocol) (err error)
func (*ChatServiceGetMsgArgs) ReadField1 ¶
func (p *ChatServiceGetMsgArgs) ReadField1(iprot thrift.TProtocol) error
func (*ChatServiceGetMsgArgs) SetReq ¶
func (p *ChatServiceGetMsgArgs) SetReq(val *MessageChatRequest)
func (*ChatServiceGetMsgArgs) String ¶
func (p *ChatServiceGetMsgArgs) String() string
type ChatServiceGetMsgResult ¶
type ChatServiceGetMsgResult struct {
Success *MessageChatResponse `thrift:"success,0,optional" frugal:"0,optional,MessageChatResponse" json:"success,omitempty"`
}
func NewChatServiceGetMsgResult ¶
func NewChatServiceGetMsgResult() *ChatServiceGetMsgResult
func (*ChatServiceGetMsgResult) BLength ¶
func (p *ChatServiceGetMsgResult) BLength() int
func (*ChatServiceGetMsgResult) DeepEqual ¶
func (p *ChatServiceGetMsgResult) DeepEqual(ano *ChatServiceGetMsgResult) bool
func (*ChatServiceGetMsgResult) FastRead ¶
func (p *ChatServiceGetMsgResult) FastRead(buf []byte) (int, error)
func (*ChatServiceGetMsgResult) FastReadField0 ¶
func (p *ChatServiceGetMsgResult) FastReadField0(buf []byte) (int, error)
func (*ChatServiceGetMsgResult) FastWrite ¶
func (p *ChatServiceGetMsgResult) FastWrite(buf []byte) int
for compatibility
func (*ChatServiceGetMsgResult) FastWriteNocopy ¶
func (p *ChatServiceGetMsgResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ChatServiceGetMsgResult) Field0DeepEqual ¶
func (p *ChatServiceGetMsgResult) Field0DeepEqual(src *MessageChatResponse) bool
func (*ChatServiceGetMsgResult) GetResult ¶
func (p *ChatServiceGetMsgResult) GetResult() interface{}
func (*ChatServiceGetMsgResult) GetSuccess ¶
func (p *ChatServiceGetMsgResult) GetSuccess() (v *MessageChatResponse)
func (*ChatServiceGetMsgResult) InitDefault ¶
func (p *ChatServiceGetMsgResult) InitDefault()
func (*ChatServiceGetMsgResult) IsSetSuccess ¶
func (p *ChatServiceGetMsgResult) IsSetSuccess() bool
func (*ChatServiceGetMsgResult) Read ¶
func (p *ChatServiceGetMsgResult) Read(iprot thrift.TProtocol) (err error)
func (*ChatServiceGetMsgResult) ReadField0 ¶
func (p *ChatServiceGetMsgResult) ReadField0(iprot thrift.TProtocol) error
func (*ChatServiceGetMsgResult) SetSuccess ¶
func (p *ChatServiceGetMsgResult) SetSuccess(x interface{})
func (*ChatServiceGetMsgResult) String ¶
func (p *ChatServiceGetMsgResult) String() string
type ChatServicePostMsgArgs ¶
type ChatServicePostMsgArgs struct {
Req *RelationActionRequest `thrift:"Req,1" frugal:"1,default,RelationActionRequest" json:"Req"`
}
func NewChatServicePostMsgArgs ¶
func NewChatServicePostMsgArgs() *ChatServicePostMsgArgs
func (*ChatServicePostMsgArgs) BLength ¶
func (p *ChatServicePostMsgArgs) BLength() int
func (*ChatServicePostMsgArgs) DeepEqual ¶
func (p *ChatServicePostMsgArgs) DeepEqual(ano *ChatServicePostMsgArgs) bool
func (*ChatServicePostMsgArgs) FastRead ¶
func (p *ChatServicePostMsgArgs) FastRead(buf []byte) (int, error)
func (*ChatServicePostMsgArgs) FastReadField1 ¶
func (p *ChatServicePostMsgArgs) FastReadField1(buf []byte) (int, error)
func (*ChatServicePostMsgArgs) FastWrite ¶
func (p *ChatServicePostMsgArgs) FastWrite(buf []byte) int
for compatibility
func (*ChatServicePostMsgArgs) FastWriteNocopy ¶
func (p *ChatServicePostMsgArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ChatServicePostMsgArgs) Field1DeepEqual ¶
func (p *ChatServicePostMsgArgs) Field1DeepEqual(src *RelationActionRequest) bool
func (*ChatServicePostMsgArgs) GetFirstArgument ¶
func (p *ChatServicePostMsgArgs) GetFirstArgument() interface{}
func (*ChatServicePostMsgArgs) GetReq ¶
func (p *ChatServicePostMsgArgs) GetReq() (v *RelationActionRequest)
func (*ChatServicePostMsgArgs) InitDefault ¶
func (p *ChatServicePostMsgArgs) InitDefault()
func (*ChatServicePostMsgArgs) IsSetReq ¶
func (p *ChatServicePostMsgArgs) IsSetReq() bool
func (*ChatServicePostMsgArgs) Read ¶
func (p *ChatServicePostMsgArgs) Read(iprot thrift.TProtocol) (err error)
func (*ChatServicePostMsgArgs) ReadField1 ¶
func (p *ChatServicePostMsgArgs) ReadField1(iprot thrift.TProtocol) error
func (*ChatServicePostMsgArgs) SetReq ¶
func (p *ChatServicePostMsgArgs) SetReq(val *RelationActionRequest)
func (*ChatServicePostMsgArgs) String ¶
func (p *ChatServicePostMsgArgs) String() string
type ChatServicePostMsgResult ¶
type ChatServicePostMsgResult struct {
Success *RelationActionResponse `thrift:"success,0,optional" frugal:"0,optional,RelationActionResponse" json:"success,omitempty"`
}
func NewChatServicePostMsgResult ¶
func NewChatServicePostMsgResult() *ChatServicePostMsgResult
func (*ChatServicePostMsgResult) BLength ¶
func (p *ChatServicePostMsgResult) BLength() int
func (*ChatServicePostMsgResult) DeepEqual ¶
func (p *ChatServicePostMsgResult) DeepEqual(ano *ChatServicePostMsgResult) bool
func (*ChatServicePostMsgResult) FastRead ¶
func (p *ChatServicePostMsgResult) FastRead(buf []byte) (int, error)
func (*ChatServicePostMsgResult) FastReadField0 ¶
func (p *ChatServicePostMsgResult) FastReadField0(buf []byte) (int, error)
func (*ChatServicePostMsgResult) FastWrite ¶
func (p *ChatServicePostMsgResult) FastWrite(buf []byte) int
for compatibility
func (*ChatServicePostMsgResult) FastWriteNocopy ¶
func (p *ChatServicePostMsgResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ChatServicePostMsgResult) Field0DeepEqual ¶
func (p *ChatServicePostMsgResult) Field0DeepEqual(src *RelationActionResponse) bool
func (*ChatServicePostMsgResult) GetResult ¶
func (p *ChatServicePostMsgResult) GetResult() interface{}
func (*ChatServicePostMsgResult) GetSuccess ¶
func (p *ChatServicePostMsgResult) GetSuccess() (v *RelationActionResponse)
func (*ChatServicePostMsgResult) InitDefault ¶
func (p *ChatServicePostMsgResult) InitDefault()
func (*ChatServicePostMsgResult) IsSetSuccess ¶
func (p *ChatServicePostMsgResult) IsSetSuccess() bool
func (*ChatServicePostMsgResult) Read ¶
func (p *ChatServicePostMsgResult) Read(iprot thrift.TProtocol) (err error)
func (*ChatServicePostMsgResult) ReadField0 ¶
func (p *ChatServicePostMsgResult) ReadField0(iprot thrift.TProtocol) error
func (*ChatServicePostMsgResult) SetSuccess ¶
func (p *ChatServicePostMsgResult) SetSuccess(x interface{})
func (*ChatServicePostMsgResult) String ¶
func (p *ChatServicePostMsgResult) String() string
type ChatServiceProcessor ¶
type ChatServiceProcessor struct {
// contains filtered or unexported fields
}
func NewChatServiceProcessor ¶
func NewChatServiceProcessor(handler ChatService) *ChatServiceProcessor
func (*ChatServiceProcessor) AddToProcessorMap ¶
func (p *ChatServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*ChatServiceProcessor) GetProcessorFunction ¶
func (p *ChatServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*ChatServiceProcessor) Process ¶
func (p *ChatServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*ChatServiceProcessor) ProcessorMap ¶
func (p *ChatServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type Message ¶
type Message struct { Id int64 `thrift:"Id,1" frugal:"1,default,i64" json:"id"` ToUserId int64 `thrift:"ToUserId,2" frugal:"2,default,i64" json:"to_user_id"` FromUserId int64 `thrift:"FromUserId,3" frugal:"3,default,i64" json:"from_user_id"` Content string `thrift:"Content,4" frugal:"4,default,string" json:"content` CreateTime *string `thrift:"CreateTime,5,optional" frugal:"5,optional,string" json:"create_time"` }
func NewMessage ¶
func NewMessage() *Message
func (*Message) FastWriteNocopy ¶
func (p *Message) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Message) Field1DeepEqual ¶
func (*Message) Field2DeepEqual ¶
func (*Message) Field3DeepEqual ¶
func (*Message) Field4DeepEqual ¶
func (*Message) Field5DeepEqual ¶
func (*Message) GetContent ¶
func (*Message) GetCreateTime ¶
func (*Message) GetFromUserId ¶
func (*Message) GetToUserId ¶
func (*Message) InitDefault ¶
func (p *Message) InitDefault()
func (*Message) IsSetCreateTime ¶
func (*Message) SetContent ¶
func (*Message) SetCreateTime ¶
func (*Message) SetFromUserId ¶
func (*Message) SetToUserId ¶
type MessageChatRequest ¶
type MessageChatRequest struct { Token string `thrift:"Token,1" frugal:"1,default,string" json:"token"` ToUserId int64 `thrift:"ToUserId,2" frugal:"2,default,i64" json:"to_user_id"` PreMsgTime int64 `thrift:"PreMsgTime,3" frugal:"3,default,i64" json:"pre_msg_time"` }
var ChatServiceGetMsgArgs_Req_DEFAULT *MessageChatRequest
func NewMessageChatRequest ¶
func NewMessageChatRequest() *MessageChatRequest
func (*MessageChatRequest) BLength ¶
func (p *MessageChatRequest) BLength() int
func (*MessageChatRequest) DeepEqual ¶
func (p *MessageChatRequest) DeepEqual(ano *MessageChatRequest) bool
func (*MessageChatRequest) FastRead ¶
func (p *MessageChatRequest) FastRead(buf []byte) (int, error)
func (*MessageChatRequest) FastReadField1 ¶
func (p *MessageChatRequest) FastReadField1(buf []byte) (int, error)
func (*MessageChatRequest) FastReadField2 ¶
func (p *MessageChatRequest) FastReadField2(buf []byte) (int, error)
func (*MessageChatRequest) FastReadField3 ¶
func (p *MessageChatRequest) FastReadField3(buf []byte) (int, error)
func (*MessageChatRequest) FastWrite ¶
func (p *MessageChatRequest) FastWrite(buf []byte) int
for compatibility
func (*MessageChatRequest) FastWriteNocopy ¶
func (p *MessageChatRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MessageChatRequest) Field1DeepEqual ¶
func (p *MessageChatRequest) Field1DeepEqual(src string) bool
func (*MessageChatRequest) Field2DeepEqual ¶
func (p *MessageChatRequest) Field2DeepEqual(src int64) bool
func (*MessageChatRequest) Field3DeepEqual ¶
func (p *MessageChatRequest) Field3DeepEqual(src int64) bool
func (*MessageChatRequest) GetPreMsgTime ¶
func (p *MessageChatRequest) GetPreMsgTime() (v int64)
func (*MessageChatRequest) GetToUserId ¶
func (p *MessageChatRequest) GetToUserId() (v int64)
func (*MessageChatRequest) GetToken ¶
func (p *MessageChatRequest) GetToken() (v string)
func (*MessageChatRequest) InitDefault ¶
func (p *MessageChatRequest) InitDefault()
func (*MessageChatRequest) Read ¶
func (p *MessageChatRequest) Read(iprot thrift.TProtocol) (err error)
func (*MessageChatRequest) ReadField1 ¶
func (p *MessageChatRequest) ReadField1(iprot thrift.TProtocol) error
func (*MessageChatRequest) ReadField2 ¶
func (p *MessageChatRequest) ReadField2(iprot thrift.TProtocol) error
func (*MessageChatRequest) ReadField3 ¶
func (p *MessageChatRequest) ReadField3(iprot thrift.TProtocol) error
func (*MessageChatRequest) SetPreMsgTime ¶
func (p *MessageChatRequest) SetPreMsgTime(val int64)
func (*MessageChatRequest) SetToUserId ¶
func (p *MessageChatRequest) SetToUserId(val int64)
func (*MessageChatRequest) SetToken ¶
func (p *MessageChatRequest) SetToken(val string)
func (*MessageChatRequest) String ¶
func (p *MessageChatRequest) String() string
type MessageChatResponse ¶
type MessageChatResponse struct { StatusCode int32 `thrift:"StatusCode,1" frugal:"1,default,i32" json:"status_code"` StatusMsg *string `thrift:"StatusMsg,2,optional" frugal:"2,optional,string" json:"status_msg"` MessageList []*Message `thrift:"MessageList,3" frugal:"3,default,list<Message>" json:"message_list"` }
var ChatServiceGetMsgResult_Success_DEFAULT *MessageChatResponse
func NewMessageChatResponse ¶
func NewMessageChatResponse() *MessageChatResponse
func (*MessageChatResponse) BLength ¶
func (p *MessageChatResponse) BLength() int
func (*MessageChatResponse) DeepEqual ¶
func (p *MessageChatResponse) DeepEqual(ano *MessageChatResponse) bool
func (*MessageChatResponse) FastRead ¶
func (p *MessageChatResponse) FastRead(buf []byte) (int, error)
func (*MessageChatResponse) FastReadField1 ¶
func (p *MessageChatResponse) FastReadField1(buf []byte) (int, error)
func (*MessageChatResponse) FastReadField2 ¶
func (p *MessageChatResponse) FastReadField2(buf []byte) (int, error)
func (*MessageChatResponse) FastReadField3 ¶
func (p *MessageChatResponse) FastReadField3(buf []byte) (int, error)
func (*MessageChatResponse) FastWrite ¶
func (p *MessageChatResponse) FastWrite(buf []byte) int
for compatibility
func (*MessageChatResponse) FastWriteNocopy ¶
func (p *MessageChatResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MessageChatResponse) Field1DeepEqual ¶
func (p *MessageChatResponse) Field1DeepEqual(src int32) bool
func (*MessageChatResponse) Field2DeepEqual ¶
func (p *MessageChatResponse) Field2DeepEqual(src *string) bool
func (*MessageChatResponse) Field3DeepEqual ¶
func (p *MessageChatResponse) Field3DeepEqual(src []*Message) bool
func (*MessageChatResponse) GetMessageList ¶
func (p *MessageChatResponse) GetMessageList() (v []*Message)
func (*MessageChatResponse) GetStatusCode ¶
func (p *MessageChatResponse) GetStatusCode() (v int32)
func (*MessageChatResponse) GetStatusMsg ¶
func (p *MessageChatResponse) GetStatusMsg() (v string)
func (*MessageChatResponse) InitDefault ¶
func (p *MessageChatResponse) InitDefault()
func (*MessageChatResponse) IsSetStatusMsg ¶
func (p *MessageChatResponse) IsSetStatusMsg() bool
func (*MessageChatResponse) Read ¶
func (p *MessageChatResponse) Read(iprot thrift.TProtocol) (err error)
func (*MessageChatResponse) ReadField1 ¶
func (p *MessageChatResponse) ReadField1(iprot thrift.TProtocol) error
func (*MessageChatResponse) ReadField2 ¶
func (p *MessageChatResponse) ReadField2(iprot thrift.TProtocol) error
func (*MessageChatResponse) ReadField3 ¶
func (p *MessageChatResponse) ReadField3(iprot thrift.TProtocol) error
func (*MessageChatResponse) SetMessageList ¶
func (p *MessageChatResponse) SetMessageList(val []*Message)
func (*MessageChatResponse) SetStatusCode ¶
func (p *MessageChatResponse) SetStatusCode(val int32)
func (*MessageChatResponse) SetStatusMsg ¶
func (p *MessageChatResponse) SetStatusMsg(val *string)
func (*MessageChatResponse) String ¶
func (p *MessageChatResponse) String() string
type RelationActionRequest ¶
type RelationActionRequest struct { Token string `thrift:"Token,1" frugal:"1,default,string" json:"token"` ToUserId int64 `thrift:"ToUserId,2" frugal:"2,default,i64" json:"to_user_id"` ActionType int32 `thrift:"ActionType,3" frugal:"3,default,i32" json:"action_type` Content string `thrift:"Content,4" frugal:"4,default,string" json:"content` }
var ChatServicePostMsgArgs_Req_DEFAULT *RelationActionRequest
func NewRelationActionRequest ¶
func NewRelationActionRequest() *RelationActionRequest
func (*RelationActionRequest) BLength ¶
func (p *RelationActionRequest) BLength() int
func (*RelationActionRequest) DeepEqual ¶
func (p *RelationActionRequest) DeepEqual(ano *RelationActionRequest) bool
func (*RelationActionRequest) FastRead ¶
func (p *RelationActionRequest) FastRead(buf []byte) (int, error)
func (*RelationActionRequest) FastReadField1 ¶
func (p *RelationActionRequest) FastReadField1(buf []byte) (int, error)
func (*RelationActionRequest) FastReadField2 ¶
func (p *RelationActionRequest) FastReadField2(buf []byte) (int, error)
func (*RelationActionRequest) FastReadField3 ¶
func (p *RelationActionRequest) FastReadField3(buf []byte) (int, error)
func (*RelationActionRequest) FastReadField4 ¶
func (p *RelationActionRequest) FastReadField4(buf []byte) (int, error)
func (*RelationActionRequest) FastWrite ¶
func (p *RelationActionRequest) FastWrite(buf []byte) int
for compatibility
func (*RelationActionRequest) FastWriteNocopy ¶
func (p *RelationActionRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*RelationActionRequest) Field1DeepEqual ¶
func (p *RelationActionRequest) Field1DeepEqual(src string) bool
func (*RelationActionRequest) Field2DeepEqual ¶
func (p *RelationActionRequest) Field2DeepEqual(src int64) bool
func (*RelationActionRequest) Field3DeepEqual ¶
func (p *RelationActionRequest) Field3DeepEqual(src int32) bool
func (*RelationActionRequest) Field4DeepEqual ¶
func (p *RelationActionRequest) Field4DeepEqual(src string) bool
func (*RelationActionRequest) GetActionType ¶
func (p *RelationActionRequest) GetActionType() (v int32)
func (*RelationActionRequest) GetContent ¶
func (p *RelationActionRequest) GetContent() (v string)
func (*RelationActionRequest) GetToUserId ¶
func (p *RelationActionRequest) GetToUserId() (v int64)
func (*RelationActionRequest) GetToken ¶
func (p *RelationActionRequest) GetToken() (v string)
func (*RelationActionRequest) InitDefault ¶
func (p *RelationActionRequest) InitDefault()
func (*RelationActionRequest) Read ¶
func (p *RelationActionRequest) Read(iprot thrift.TProtocol) (err error)
func (*RelationActionRequest) ReadField1 ¶
func (p *RelationActionRequest) ReadField1(iprot thrift.TProtocol) error
func (*RelationActionRequest) ReadField2 ¶
func (p *RelationActionRequest) ReadField2(iprot thrift.TProtocol) error
func (*RelationActionRequest) ReadField3 ¶
func (p *RelationActionRequest) ReadField3(iprot thrift.TProtocol) error
func (*RelationActionRequest) ReadField4 ¶
func (p *RelationActionRequest) ReadField4(iprot thrift.TProtocol) error
func (*RelationActionRequest) SetActionType ¶
func (p *RelationActionRequest) SetActionType(val int32)
func (*RelationActionRequest) SetContent ¶
func (p *RelationActionRequest) SetContent(val string)
func (*RelationActionRequest) SetToUserId ¶
func (p *RelationActionRequest) SetToUserId(val int64)
func (*RelationActionRequest) SetToken ¶
func (p *RelationActionRequest) SetToken(val string)
func (*RelationActionRequest) String ¶
func (p *RelationActionRequest) String() string
type RelationActionResponse ¶
type RelationActionResponse struct { StatusCode int32 `thrift:"StatusCode,1" frugal:"1,default,i32" json:"status_code"` StatusMsg *string `thrift:"StatusMsg,2,optional" frugal:"2,optional,string" json:"status_msg"` }
var ChatServicePostMsgResult_Success_DEFAULT *RelationActionResponse
func NewRelationActionResponse ¶
func NewRelationActionResponse() *RelationActionResponse
func (*RelationActionResponse) BLength ¶
func (p *RelationActionResponse) BLength() int
func (*RelationActionResponse) DeepEqual ¶
func (p *RelationActionResponse) DeepEqual(ano *RelationActionResponse) bool
func (*RelationActionResponse) FastRead ¶
func (p *RelationActionResponse) FastRead(buf []byte) (int, error)
func (*RelationActionResponse) FastReadField1 ¶
func (p *RelationActionResponse) FastReadField1(buf []byte) (int, error)
func (*RelationActionResponse) FastReadField2 ¶
func (p *RelationActionResponse) FastReadField2(buf []byte) (int, error)
func (*RelationActionResponse) FastWrite ¶
func (p *RelationActionResponse) FastWrite(buf []byte) int
for compatibility
func (*RelationActionResponse) FastWriteNocopy ¶
func (p *RelationActionResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*RelationActionResponse) Field1DeepEqual ¶
func (p *RelationActionResponse) Field1DeepEqual(src int32) bool
func (*RelationActionResponse) Field2DeepEqual ¶
func (p *RelationActionResponse) Field2DeepEqual(src *string) bool
func (*RelationActionResponse) GetStatusCode ¶
func (p *RelationActionResponse) GetStatusCode() (v int32)
func (*RelationActionResponse) GetStatusMsg ¶
func (p *RelationActionResponse) GetStatusMsg() (v string)
func (*RelationActionResponse) InitDefault ¶
func (p *RelationActionResponse) InitDefault()
func (*RelationActionResponse) IsSetStatusMsg ¶
func (p *RelationActionResponse) IsSetStatusMsg() bool
func (*RelationActionResponse) Read ¶
func (p *RelationActionResponse) Read(iprot thrift.TProtocol) (err error)
func (*RelationActionResponse) ReadField1 ¶
func (p *RelationActionResponse) ReadField1(iprot thrift.TProtocol) error
func (*RelationActionResponse) ReadField2 ¶
func (p *RelationActionResponse) ReadField2(iprot thrift.TProtocol) error
func (*RelationActionResponse) SetStatusCode ¶
func (p *RelationActionResponse) SetStatusCode(val int32)
func (*RelationActionResponse) SetStatusMsg ¶
func (p *RelationActionResponse) SetStatusMsg(val *string)
func (*RelationActionResponse) String ¶
func (p *RelationActionResponse) String() string
Click to show internal directories.
Click to hide internal directories.