Documentation ¶
Index ¶
- Variables
- type BaseResp
- func (p *BaseResp) BLength() int
- func (p *BaseResp) DeepEqual(ano *BaseResp) bool
- func (p *BaseResp) FastRead(buf []byte) (int, error)
- func (p *BaseResp) FastReadField1(buf []byte) (int, error)
- func (p *BaseResp) FastReadField2(buf []byte) (int, error)
- func (p *BaseResp) FastWrite(buf []byte) int
- func (p *BaseResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *BaseResp) Field1DeepEqual(src int64) bool
- func (p *BaseResp) Field2DeepEqual(src string) bool
- func (p *BaseResp) GetCode() (v int64)
- func (p *BaseResp) GetMsg() (v string)
- func (p *BaseResp) InitDefault()
- func (p *BaseResp) Read(iprot thrift.TProtocol) (err error)
- func (p *BaseResp) ReadField1(iprot thrift.TProtocol) error
- func (p *BaseResp) ReadField2(iprot thrift.TProtocol) error
- func (p *BaseResp) SetCode(val int64)
- func (p *BaseResp) SetMsg(val string)
- func (p *BaseResp) String() string
- func (p *BaseResp) Write(oprot thrift.TProtocol) (err error)
- 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 MessageListRequest
- func (p *MessageListRequest) BLength() int
- func (p *MessageListRequest) DeepEqual(ano *MessageListRequest) bool
- func (p *MessageListRequest) FastRead(buf []byte) (int, error)
- func (p *MessageListRequest) FastReadField1(buf []byte) (int, error)
- func (p *MessageListRequest) FastReadField2(buf []byte) (int, error)
- func (p *MessageListRequest) FastWrite(buf []byte) int
- func (p *MessageListRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MessageListRequest) Field1DeepEqual(src string) bool
- func (p *MessageListRequest) Field2DeepEqual(src int64) bool
- func (p *MessageListRequest) GetToUserId() (v int64)
- func (p *MessageListRequest) GetToken() (v string)
- func (p *MessageListRequest) InitDefault()
- func (p *MessageListRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageListRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *MessageListRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *MessageListRequest) SetToUserId(val int64)
- func (p *MessageListRequest) SetToken(val string)
- func (p *MessageListRequest) String() string
- func (p *MessageListRequest) Write(oprot thrift.TProtocol) (err error)
- type MessageListResponse
- func (p *MessageListResponse) BLength() int
- func (p *MessageListResponse) DeepEqual(ano *MessageListResponse) bool
- func (p *MessageListResponse) FastRead(buf []byte) (int, error)
- func (p *MessageListResponse) FastReadField1(buf []byte) (int, error)
- func (p *MessageListResponse) FastReadField2(buf []byte) (int, error)
- func (p *MessageListResponse) FastReadField3(buf []byte) (int, error)
- func (p *MessageListResponse) FastWrite(buf []byte) int
- func (p *MessageListResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MessageListResponse) Field1DeepEqual(src *BaseResp) bool
- func (p *MessageListResponse) Field2DeepEqual(src []*Message) bool
- func (p *MessageListResponse) Field3DeepEqual(src int64) bool
- func (p *MessageListResponse) GetBase() (v *BaseResp)
- func (p *MessageListResponse) GetMessageList() (v []*Message)
- func (p *MessageListResponse) GetTotal() (v int64)
- func (p *MessageListResponse) InitDefault()
- func (p *MessageListResponse) IsSetBase() bool
- func (p *MessageListResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageListResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *MessageListResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *MessageListResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *MessageListResponse) SetBase(val *BaseResp)
- func (p *MessageListResponse) SetMessageList(val []*Message)
- func (p *MessageListResponse) SetTotal(val int64)
- func (p *MessageListResponse) String() string
- func (p *MessageListResponse) Write(oprot thrift.TProtocol) (err error)
- type MessagePostReponse
- func (p *MessagePostReponse) BLength() int
- func (p *MessagePostReponse) DeepEqual(ano *MessagePostReponse) bool
- func (p *MessagePostReponse) FastRead(buf []byte) (int, error)
- func (p *MessagePostReponse) FastReadField1(buf []byte) (int, error)
- func (p *MessagePostReponse) FastWrite(buf []byte) int
- func (p *MessagePostReponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MessagePostReponse) Field1DeepEqual(src *BaseResp) bool
- func (p *MessagePostReponse) GetBase() (v *BaseResp)
- func (p *MessagePostReponse) InitDefault()
- func (p *MessagePostReponse) IsSetBase() bool
- func (p *MessagePostReponse) Read(iprot thrift.TProtocol) (err error)
- func (p *MessagePostReponse) ReadField1(iprot thrift.TProtocol) error
- func (p *MessagePostReponse) SetBase(val *BaseResp)
- func (p *MessagePostReponse) String() string
- func (p *MessagePostReponse) Write(oprot thrift.TProtocol) (err error)
- type MessagePostRequest
- func (p *MessagePostRequest) BLength() int
- func (p *MessagePostRequest) DeepEqual(ano *MessagePostRequest) bool
- func (p *MessagePostRequest) FastRead(buf []byte) (int, error)
- func (p *MessagePostRequest) FastReadField1(buf []byte) (int, error)
- func (p *MessagePostRequest) FastReadField2(buf []byte) (int, error)
- func (p *MessagePostRequest) FastReadField3(buf []byte) (int, error)
- func (p *MessagePostRequest) FastReadField4(buf []byte) (int, error)
- func (p *MessagePostRequest) FastWrite(buf []byte) int
- func (p *MessagePostRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MessagePostRequest) Field1DeepEqual(src string) bool
- func (p *MessagePostRequest) Field2DeepEqual(src int64) bool
- func (p *MessagePostRequest) Field3DeepEqual(src string) bool
- func (p *MessagePostRequest) Field4DeepEqual(src *int64) bool
- func (p *MessagePostRequest) GetActionType() (v int64)
- func (p *MessagePostRequest) GetContent() (v string)
- func (p *MessagePostRequest) GetToUserId() (v int64)
- func (p *MessagePostRequest) GetToken() (v string)
- func (p *MessagePostRequest) InitDefault()
- func (p *MessagePostRequest) IsSetActionType() bool
- func (p *MessagePostRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *MessagePostRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *MessagePostRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *MessagePostRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *MessagePostRequest) ReadField4(iprot thrift.TProtocol) error
- func (p *MessagePostRequest) SetActionType(val *int64)
- func (p *MessagePostRequest) SetContent(val string)
- func (p *MessagePostRequest) SetToUserId(val int64)
- func (p *MessagePostRequest) SetToken(val string)
- func (p *MessagePostRequest) String() string
- func (p *MessagePostRequest) 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
- func (p *MessageServiceClient) Client_() thrift.TClient
- func (p *MessageServiceClient) MessageList(ctx context.Context, req *MessageListRequest) (r *MessageListResponse, err error)
- func (p *MessageServiceClient) MessagePost(ctx context.Context, req *MessagePostRequest) (r *MessagePostReponse, err error)
- type MessageServiceMessageListArgs
- func (p *MessageServiceMessageListArgs) BLength() int
- func (p *MessageServiceMessageListArgs) DeepEqual(ano *MessageServiceMessageListArgs) bool
- func (p *MessageServiceMessageListArgs) FastRead(buf []byte) (int, error)
- func (p *MessageServiceMessageListArgs) FastReadField1(buf []byte) (int, error)
- func (p *MessageServiceMessageListArgs) FastWrite(buf []byte) int
- func (p *MessageServiceMessageListArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MessageServiceMessageListArgs) Field1DeepEqual(src *MessageListRequest) bool
- func (p *MessageServiceMessageListArgs) GetFirstArgument() interface{}
- func (p *MessageServiceMessageListArgs) GetReq() (v *MessageListRequest)
- func (p *MessageServiceMessageListArgs) InitDefault()
- func (p *MessageServiceMessageListArgs) IsSetReq() bool
- func (p *MessageServiceMessageListArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageServiceMessageListArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *MessageServiceMessageListArgs) SetReq(val *MessageListRequest)
- func (p *MessageServiceMessageListArgs) String() string
- func (p *MessageServiceMessageListArgs) Write(oprot thrift.TProtocol) (err error)
- type MessageServiceMessageListResult
- func (p *MessageServiceMessageListResult) BLength() int
- func (p *MessageServiceMessageListResult) DeepEqual(ano *MessageServiceMessageListResult) bool
- func (p *MessageServiceMessageListResult) FastRead(buf []byte) (int, error)
- func (p *MessageServiceMessageListResult) FastReadField0(buf []byte) (int, error)
- func (p *MessageServiceMessageListResult) FastWrite(buf []byte) int
- func (p *MessageServiceMessageListResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MessageServiceMessageListResult) Field0DeepEqual(src *MessageListResponse) bool
- func (p *MessageServiceMessageListResult) GetResult() interface{}
- func (p *MessageServiceMessageListResult) GetSuccess() (v *MessageListResponse)
- func (p *MessageServiceMessageListResult) InitDefault()
- func (p *MessageServiceMessageListResult) IsSetSuccess() bool
- func (p *MessageServiceMessageListResult) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageServiceMessageListResult) ReadField0(iprot thrift.TProtocol) error
- func (p *MessageServiceMessageListResult) SetSuccess(x interface{})
- func (p *MessageServiceMessageListResult) String() string
- func (p *MessageServiceMessageListResult) Write(oprot thrift.TProtocol) (err error)
- type MessageServiceMessagePostArgs
- func (p *MessageServiceMessagePostArgs) BLength() int
- func (p *MessageServiceMessagePostArgs) DeepEqual(ano *MessageServiceMessagePostArgs) bool
- func (p *MessageServiceMessagePostArgs) FastRead(buf []byte) (int, error)
- func (p *MessageServiceMessagePostArgs) FastReadField1(buf []byte) (int, error)
- func (p *MessageServiceMessagePostArgs) FastWrite(buf []byte) int
- func (p *MessageServiceMessagePostArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MessageServiceMessagePostArgs) Field1DeepEqual(src *MessagePostRequest) bool
- func (p *MessageServiceMessagePostArgs) GetFirstArgument() interface{}
- func (p *MessageServiceMessagePostArgs) GetReq() (v *MessagePostRequest)
- func (p *MessageServiceMessagePostArgs) InitDefault()
- func (p *MessageServiceMessagePostArgs) IsSetReq() bool
- func (p *MessageServiceMessagePostArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageServiceMessagePostArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *MessageServiceMessagePostArgs) SetReq(val *MessagePostRequest)
- func (p *MessageServiceMessagePostArgs) String() string
- func (p *MessageServiceMessagePostArgs) Write(oprot thrift.TProtocol) (err error)
- type MessageServiceMessagePostResult
- func (p *MessageServiceMessagePostResult) BLength() int
- func (p *MessageServiceMessagePostResult) DeepEqual(ano *MessageServiceMessagePostResult) bool
- func (p *MessageServiceMessagePostResult) FastRead(buf []byte) (int, error)
- func (p *MessageServiceMessagePostResult) FastReadField0(buf []byte) (int, error)
- func (p *MessageServiceMessagePostResult) FastWrite(buf []byte) int
- func (p *MessageServiceMessagePostResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MessageServiceMessagePostResult) Field0DeepEqual(src *MessagePostReponse) bool
- func (p *MessageServiceMessagePostResult) GetResult() interface{}
- func (p *MessageServiceMessagePostResult) GetSuccess() (v *MessagePostReponse)
- func (p *MessageServiceMessagePostResult) InitDefault()
- func (p *MessageServiceMessagePostResult) IsSetSuccess() bool
- func (p *MessageServiceMessagePostResult) Read(iprot thrift.TProtocol) (err error)
- func (p *MessageServiceMessagePostResult) ReadField0(iprot thrift.TProtocol) error
- func (p *MessageServiceMessagePostResult) SetSuccess(x interface{})
- func (p *MessageServiceMessagePostResult) String() string
- func (p *MessageServiceMessagePostResult) 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 KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
View Source
var MessagePostRequest_ActionType_DEFAULT int64
View Source
var Message_CreateTime_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type BaseResp ¶
type BaseResp struct { Code int64 `thrift:"code,1" frugal:"1,default,i64" json:"code"` Msg string `thrift:"msg,2" frugal:"2,default,string" json:"msg"` }
var MessageListResponse_Base_DEFAULT *BaseResp
var MessagePostReponse_Base_DEFAULT *BaseResp
func NewBaseResp ¶
func NewBaseResp() *BaseResp
func (*BaseResp) FastWriteNocopy ¶
func (p *BaseResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*BaseResp) Field1DeepEqual ¶
func (*BaseResp) Field2DeepEqual ¶
func (*BaseResp) InitDefault ¶
func (p *BaseResp) InitDefault()
type Message ¶
type Message struct { Id int64 `thrift:"id,1,required" frugal:"1,required,i64" json:"id"` ToUserId int64 `thrift:"to_user_id,2,required" frugal:"2,required,i64" json:"to_user_id"` FromUserId int64 `thrift:"from_user_id,3,required" frugal:"3,required,i64" json:"from_user_id"` Content string `thrift:"content,4,required" frugal:"4,required,string" json:"content"` CreateTime *string `thrift:"create_time,5,optional" frugal:"5,optional,string" json:"create_time,omitempty"` }
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 MessageListRequest ¶
type MessageListRequest struct { Token string `thrift:"token,1,required" frugal:"1,required,string" json:"token"` ToUserId int64 `thrift:"to_user_id,2,required" frugal:"2,required,i64" json:"to_user_id"` }
var MessageServiceMessageListArgs_Req_DEFAULT *MessageListRequest
func NewMessageListRequest ¶
func NewMessageListRequest() *MessageListRequest
func (*MessageListRequest) BLength ¶
func (p *MessageListRequest) BLength() int
func (*MessageListRequest) DeepEqual ¶
func (p *MessageListRequest) DeepEqual(ano *MessageListRequest) bool
func (*MessageListRequest) FastRead ¶
func (p *MessageListRequest) FastRead(buf []byte) (int, error)
func (*MessageListRequest) FastReadField1 ¶
func (p *MessageListRequest) FastReadField1(buf []byte) (int, error)
func (*MessageListRequest) FastReadField2 ¶
func (p *MessageListRequest) FastReadField2(buf []byte) (int, error)
func (*MessageListRequest) FastWrite ¶
func (p *MessageListRequest) FastWrite(buf []byte) int
for compatibility
func (*MessageListRequest) FastWriteNocopy ¶
func (p *MessageListRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MessageListRequest) Field1DeepEqual ¶
func (p *MessageListRequest) Field1DeepEqual(src string) bool
func (*MessageListRequest) Field2DeepEqual ¶
func (p *MessageListRequest) Field2DeepEqual(src int64) bool
func (*MessageListRequest) GetToUserId ¶
func (p *MessageListRequest) GetToUserId() (v int64)
func (*MessageListRequest) GetToken ¶
func (p *MessageListRequest) GetToken() (v string)
func (*MessageListRequest) InitDefault ¶
func (p *MessageListRequest) InitDefault()
func (*MessageListRequest) Read ¶
func (p *MessageListRequest) Read(iprot thrift.TProtocol) (err error)
func (*MessageListRequest) ReadField1 ¶
func (p *MessageListRequest) ReadField1(iprot thrift.TProtocol) error
func (*MessageListRequest) ReadField2 ¶
func (p *MessageListRequest) ReadField2(iprot thrift.TProtocol) error
func (*MessageListRequest) SetToUserId ¶
func (p *MessageListRequest) SetToUserId(val int64)
func (*MessageListRequest) SetToken ¶
func (p *MessageListRequest) SetToken(val string)
func (*MessageListRequest) String ¶
func (p *MessageListRequest) String() string
type MessageListResponse ¶
type MessageListResponse struct { Base *BaseResp `thrift:"base,1" frugal:"1,default,BaseResp" json:"base"` MessageList []*Message `thrift:"message_list,2" frugal:"2,default,list<Message>" json:"message_list"` Total int64 `thrift:"total,3" frugal:"3,default,i64" json:"total"` }
var MessageServiceMessageListResult_Success_DEFAULT *MessageListResponse
func NewMessageListResponse ¶
func NewMessageListResponse() *MessageListResponse
func (*MessageListResponse) BLength ¶
func (p *MessageListResponse) BLength() int
func (*MessageListResponse) DeepEqual ¶
func (p *MessageListResponse) DeepEqual(ano *MessageListResponse) bool
func (*MessageListResponse) FastRead ¶
func (p *MessageListResponse) FastRead(buf []byte) (int, error)
func (*MessageListResponse) FastReadField1 ¶
func (p *MessageListResponse) FastReadField1(buf []byte) (int, error)
func (*MessageListResponse) FastReadField2 ¶
func (p *MessageListResponse) FastReadField2(buf []byte) (int, error)
func (*MessageListResponse) FastReadField3 ¶
func (p *MessageListResponse) FastReadField3(buf []byte) (int, error)
func (*MessageListResponse) FastWrite ¶
func (p *MessageListResponse) FastWrite(buf []byte) int
for compatibility
func (*MessageListResponse) FastWriteNocopy ¶
func (p *MessageListResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MessageListResponse) Field1DeepEqual ¶
func (p *MessageListResponse) Field1DeepEqual(src *BaseResp) bool
func (*MessageListResponse) Field2DeepEqual ¶
func (p *MessageListResponse) Field2DeepEqual(src []*Message) bool
func (*MessageListResponse) Field3DeepEqual ¶
func (p *MessageListResponse) Field3DeepEqual(src int64) bool
func (*MessageListResponse) GetBase ¶
func (p *MessageListResponse) GetBase() (v *BaseResp)
func (*MessageListResponse) GetMessageList ¶
func (p *MessageListResponse) GetMessageList() (v []*Message)
func (*MessageListResponse) GetTotal ¶
func (p *MessageListResponse) GetTotal() (v int64)
func (*MessageListResponse) InitDefault ¶
func (p *MessageListResponse) InitDefault()
func (*MessageListResponse) IsSetBase ¶
func (p *MessageListResponse) IsSetBase() bool
func (*MessageListResponse) Read ¶
func (p *MessageListResponse) Read(iprot thrift.TProtocol) (err error)
func (*MessageListResponse) ReadField1 ¶
func (p *MessageListResponse) ReadField1(iprot thrift.TProtocol) error
func (*MessageListResponse) ReadField2 ¶
func (p *MessageListResponse) ReadField2(iprot thrift.TProtocol) error
func (*MessageListResponse) ReadField3 ¶
func (p *MessageListResponse) ReadField3(iprot thrift.TProtocol) error
func (*MessageListResponse) SetBase ¶
func (p *MessageListResponse) SetBase(val *BaseResp)
func (*MessageListResponse) SetMessageList ¶
func (p *MessageListResponse) SetMessageList(val []*Message)
func (*MessageListResponse) SetTotal ¶
func (p *MessageListResponse) SetTotal(val int64)
func (*MessageListResponse) String ¶
func (p *MessageListResponse) String() string
type MessagePostReponse ¶
type MessagePostReponse struct {
Base *BaseResp `thrift:"base,1" frugal:"1,default,BaseResp" json:"base"`
}
var MessageServiceMessagePostResult_Success_DEFAULT *MessagePostReponse
func NewMessagePostReponse ¶
func NewMessagePostReponse() *MessagePostReponse
func (*MessagePostReponse) BLength ¶
func (p *MessagePostReponse) BLength() int
func (*MessagePostReponse) DeepEqual ¶
func (p *MessagePostReponse) DeepEqual(ano *MessagePostReponse) bool
func (*MessagePostReponse) FastRead ¶
func (p *MessagePostReponse) FastRead(buf []byte) (int, error)
func (*MessagePostReponse) FastReadField1 ¶
func (p *MessagePostReponse) FastReadField1(buf []byte) (int, error)
func (*MessagePostReponse) FastWrite ¶
func (p *MessagePostReponse) FastWrite(buf []byte) int
for compatibility
func (*MessagePostReponse) FastWriteNocopy ¶
func (p *MessagePostReponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MessagePostReponse) Field1DeepEqual ¶
func (p *MessagePostReponse) Field1DeepEqual(src *BaseResp) bool
func (*MessagePostReponse) GetBase ¶
func (p *MessagePostReponse) GetBase() (v *BaseResp)
func (*MessagePostReponse) InitDefault ¶
func (p *MessagePostReponse) InitDefault()
func (*MessagePostReponse) IsSetBase ¶
func (p *MessagePostReponse) IsSetBase() bool
func (*MessagePostReponse) Read ¶
func (p *MessagePostReponse) Read(iprot thrift.TProtocol) (err error)
func (*MessagePostReponse) ReadField1 ¶
func (p *MessagePostReponse) ReadField1(iprot thrift.TProtocol) error
func (*MessagePostReponse) SetBase ¶
func (p *MessagePostReponse) SetBase(val *BaseResp)
func (*MessagePostReponse) String ¶
func (p *MessagePostReponse) String() string
type MessagePostRequest ¶
type MessagePostRequest struct { Token string `thrift:"token,1,required" frugal:"1,required,string" json:"token"` ToUserId int64 `thrift:"to_user_id,2,required" frugal:"2,required,i64" json:"to_user_id"` Content string `thrift:"content,3,required" frugal:"3,required,string" json:"content"` ActionType *int64 `thrift:"action_type,4,optional" frugal:"4,optional,i64" json:"action_type,omitempty"` }
var MessageServiceMessagePostArgs_Req_DEFAULT *MessagePostRequest
func NewMessagePostRequest ¶
func NewMessagePostRequest() *MessagePostRequest
func (*MessagePostRequest) BLength ¶
func (p *MessagePostRequest) BLength() int
func (*MessagePostRequest) DeepEqual ¶
func (p *MessagePostRequest) DeepEqual(ano *MessagePostRequest) bool
func (*MessagePostRequest) FastRead ¶
func (p *MessagePostRequest) FastRead(buf []byte) (int, error)
func (*MessagePostRequest) FastReadField1 ¶
func (p *MessagePostRequest) FastReadField1(buf []byte) (int, error)
func (*MessagePostRequest) FastReadField2 ¶
func (p *MessagePostRequest) FastReadField2(buf []byte) (int, error)
func (*MessagePostRequest) FastReadField3 ¶
func (p *MessagePostRequest) FastReadField3(buf []byte) (int, error)
func (*MessagePostRequest) FastReadField4 ¶
func (p *MessagePostRequest) FastReadField4(buf []byte) (int, error)
func (*MessagePostRequest) FastWrite ¶
func (p *MessagePostRequest) FastWrite(buf []byte) int
for compatibility
func (*MessagePostRequest) FastWriteNocopy ¶
func (p *MessagePostRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MessagePostRequest) Field1DeepEqual ¶
func (p *MessagePostRequest) Field1DeepEqual(src string) bool
func (*MessagePostRequest) Field2DeepEqual ¶
func (p *MessagePostRequest) Field2DeepEqual(src int64) bool
func (*MessagePostRequest) Field3DeepEqual ¶
func (p *MessagePostRequest) Field3DeepEqual(src string) bool
func (*MessagePostRequest) Field4DeepEqual ¶
func (p *MessagePostRequest) Field4DeepEqual(src *int64) bool
func (*MessagePostRequest) GetActionType ¶
func (p *MessagePostRequest) GetActionType() (v int64)
func (*MessagePostRequest) GetContent ¶
func (p *MessagePostRequest) GetContent() (v string)
func (*MessagePostRequest) GetToUserId ¶
func (p *MessagePostRequest) GetToUserId() (v int64)
func (*MessagePostRequest) GetToken ¶
func (p *MessagePostRequest) GetToken() (v string)
func (*MessagePostRequest) InitDefault ¶
func (p *MessagePostRequest) InitDefault()
func (*MessagePostRequest) IsSetActionType ¶
func (p *MessagePostRequest) IsSetActionType() bool
func (*MessagePostRequest) Read ¶
func (p *MessagePostRequest) Read(iprot thrift.TProtocol) (err error)
func (*MessagePostRequest) ReadField1 ¶
func (p *MessagePostRequest) ReadField1(iprot thrift.TProtocol) error
func (*MessagePostRequest) ReadField2 ¶
func (p *MessagePostRequest) ReadField2(iprot thrift.TProtocol) error
func (*MessagePostRequest) ReadField3 ¶
func (p *MessagePostRequest) ReadField3(iprot thrift.TProtocol) error
func (*MessagePostRequest) ReadField4 ¶
func (p *MessagePostRequest) ReadField4(iprot thrift.TProtocol) error
func (*MessagePostRequest) SetActionType ¶
func (p *MessagePostRequest) SetActionType(val *int64)
func (*MessagePostRequest) SetContent ¶
func (p *MessagePostRequest) SetContent(val string)
func (*MessagePostRequest) SetToUserId ¶
func (p *MessagePostRequest) SetToUserId(val int64)
func (*MessagePostRequest) SetToken ¶
func (p *MessagePostRequest) SetToken(val string)
func (*MessagePostRequest) String ¶
func (p *MessagePostRequest) String() string
type MessageService ¶
type MessageService interface { MessagePost(ctx context.Context, req *MessagePostRequest) (r *MessagePostReponse, err error) MessageList(ctx context.Context, req *MessageListRequest) (r *MessageListResponse, 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) MessageList ¶
func (p *MessageServiceClient) MessageList(ctx context.Context, req *MessageListRequest) (r *MessageListResponse, err error)
func (*MessageServiceClient) MessagePost ¶
func (p *MessageServiceClient) MessagePost(ctx context.Context, req *MessagePostRequest) (r *MessagePostReponse, err error)
type MessageServiceMessageListArgs ¶
type MessageServiceMessageListArgs struct {
Req *MessageListRequest `thrift:"req,1" frugal:"1,default,MessageListRequest" json:"req"`
}
func NewMessageServiceMessageListArgs ¶
func NewMessageServiceMessageListArgs() *MessageServiceMessageListArgs
func (*MessageServiceMessageListArgs) BLength ¶
func (p *MessageServiceMessageListArgs) BLength() int
func (*MessageServiceMessageListArgs) DeepEqual ¶
func (p *MessageServiceMessageListArgs) DeepEqual(ano *MessageServiceMessageListArgs) bool
func (*MessageServiceMessageListArgs) FastRead ¶
func (p *MessageServiceMessageListArgs) FastRead(buf []byte) (int, error)
func (*MessageServiceMessageListArgs) FastReadField1 ¶
func (p *MessageServiceMessageListArgs) FastReadField1(buf []byte) (int, error)
func (*MessageServiceMessageListArgs) FastWrite ¶
func (p *MessageServiceMessageListArgs) FastWrite(buf []byte) int
for compatibility
func (*MessageServiceMessageListArgs) FastWriteNocopy ¶
func (p *MessageServiceMessageListArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MessageServiceMessageListArgs) Field1DeepEqual ¶
func (p *MessageServiceMessageListArgs) Field1DeepEqual(src *MessageListRequest) bool
func (*MessageServiceMessageListArgs) GetFirstArgument ¶
func (p *MessageServiceMessageListArgs) GetFirstArgument() interface{}
func (*MessageServiceMessageListArgs) GetReq ¶
func (p *MessageServiceMessageListArgs) GetReq() (v *MessageListRequest)
func (*MessageServiceMessageListArgs) InitDefault ¶
func (p *MessageServiceMessageListArgs) InitDefault()
func (*MessageServiceMessageListArgs) IsSetReq ¶
func (p *MessageServiceMessageListArgs) IsSetReq() bool
func (*MessageServiceMessageListArgs) Read ¶
func (p *MessageServiceMessageListArgs) Read(iprot thrift.TProtocol) (err error)
func (*MessageServiceMessageListArgs) ReadField1 ¶
func (p *MessageServiceMessageListArgs) ReadField1(iprot thrift.TProtocol) error
func (*MessageServiceMessageListArgs) SetReq ¶
func (p *MessageServiceMessageListArgs) SetReq(val *MessageListRequest)
func (*MessageServiceMessageListArgs) String ¶
func (p *MessageServiceMessageListArgs) String() string
type MessageServiceMessageListResult ¶
type MessageServiceMessageListResult struct {
Success *MessageListResponse `thrift:"success,0,optional" frugal:"0,optional,MessageListResponse" json:"success,omitempty"`
}
func NewMessageServiceMessageListResult ¶
func NewMessageServiceMessageListResult() *MessageServiceMessageListResult
func (*MessageServiceMessageListResult) BLength ¶
func (p *MessageServiceMessageListResult) BLength() int
func (*MessageServiceMessageListResult) DeepEqual ¶
func (p *MessageServiceMessageListResult) DeepEqual(ano *MessageServiceMessageListResult) bool
func (*MessageServiceMessageListResult) FastRead ¶
func (p *MessageServiceMessageListResult) FastRead(buf []byte) (int, error)
func (*MessageServiceMessageListResult) FastReadField0 ¶
func (p *MessageServiceMessageListResult) FastReadField0(buf []byte) (int, error)
func (*MessageServiceMessageListResult) FastWrite ¶
func (p *MessageServiceMessageListResult) FastWrite(buf []byte) int
for compatibility
func (*MessageServiceMessageListResult) FastWriteNocopy ¶
func (p *MessageServiceMessageListResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MessageServiceMessageListResult) Field0DeepEqual ¶
func (p *MessageServiceMessageListResult) Field0DeepEqual(src *MessageListResponse) bool
func (*MessageServiceMessageListResult) GetResult ¶
func (p *MessageServiceMessageListResult) GetResult() interface{}
func (*MessageServiceMessageListResult) GetSuccess ¶
func (p *MessageServiceMessageListResult) GetSuccess() (v *MessageListResponse)
func (*MessageServiceMessageListResult) InitDefault ¶
func (p *MessageServiceMessageListResult) InitDefault()
func (*MessageServiceMessageListResult) IsSetSuccess ¶
func (p *MessageServiceMessageListResult) IsSetSuccess() bool
func (*MessageServiceMessageListResult) Read ¶
func (p *MessageServiceMessageListResult) Read(iprot thrift.TProtocol) (err error)
func (*MessageServiceMessageListResult) ReadField0 ¶
func (p *MessageServiceMessageListResult) ReadField0(iprot thrift.TProtocol) error
func (*MessageServiceMessageListResult) SetSuccess ¶
func (p *MessageServiceMessageListResult) SetSuccess(x interface{})
func (*MessageServiceMessageListResult) String ¶
func (p *MessageServiceMessageListResult) String() string
type MessageServiceMessagePostArgs ¶
type MessageServiceMessagePostArgs struct {
Req *MessagePostRequest `thrift:"req,1" frugal:"1,default,MessagePostRequest" json:"req"`
}
func NewMessageServiceMessagePostArgs ¶
func NewMessageServiceMessagePostArgs() *MessageServiceMessagePostArgs
func (*MessageServiceMessagePostArgs) BLength ¶
func (p *MessageServiceMessagePostArgs) BLength() int
func (*MessageServiceMessagePostArgs) DeepEqual ¶
func (p *MessageServiceMessagePostArgs) DeepEqual(ano *MessageServiceMessagePostArgs) bool
func (*MessageServiceMessagePostArgs) FastRead ¶
func (p *MessageServiceMessagePostArgs) FastRead(buf []byte) (int, error)
func (*MessageServiceMessagePostArgs) FastReadField1 ¶
func (p *MessageServiceMessagePostArgs) FastReadField1(buf []byte) (int, error)
func (*MessageServiceMessagePostArgs) FastWrite ¶
func (p *MessageServiceMessagePostArgs) FastWrite(buf []byte) int
for compatibility
func (*MessageServiceMessagePostArgs) FastWriteNocopy ¶
func (p *MessageServiceMessagePostArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MessageServiceMessagePostArgs) Field1DeepEqual ¶
func (p *MessageServiceMessagePostArgs) Field1DeepEqual(src *MessagePostRequest) bool
func (*MessageServiceMessagePostArgs) GetFirstArgument ¶
func (p *MessageServiceMessagePostArgs) GetFirstArgument() interface{}
func (*MessageServiceMessagePostArgs) GetReq ¶
func (p *MessageServiceMessagePostArgs) GetReq() (v *MessagePostRequest)
func (*MessageServiceMessagePostArgs) InitDefault ¶
func (p *MessageServiceMessagePostArgs) InitDefault()
func (*MessageServiceMessagePostArgs) IsSetReq ¶
func (p *MessageServiceMessagePostArgs) IsSetReq() bool
func (*MessageServiceMessagePostArgs) Read ¶
func (p *MessageServiceMessagePostArgs) Read(iprot thrift.TProtocol) (err error)
func (*MessageServiceMessagePostArgs) ReadField1 ¶
func (p *MessageServiceMessagePostArgs) ReadField1(iprot thrift.TProtocol) error
func (*MessageServiceMessagePostArgs) SetReq ¶
func (p *MessageServiceMessagePostArgs) SetReq(val *MessagePostRequest)
func (*MessageServiceMessagePostArgs) String ¶
func (p *MessageServiceMessagePostArgs) String() string
type MessageServiceMessagePostResult ¶
type MessageServiceMessagePostResult struct {
Success *MessagePostReponse `thrift:"success,0,optional" frugal:"0,optional,MessagePostReponse" json:"success,omitempty"`
}
func NewMessageServiceMessagePostResult ¶
func NewMessageServiceMessagePostResult() *MessageServiceMessagePostResult
func (*MessageServiceMessagePostResult) BLength ¶
func (p *MessageServiceMessagePostResult) BLength() int
func (*MessageServiceMessagePostResult) DeepEqual ¶
func (p *MessageServiceMessagePostResult) DeepEqual(ano *MessageServiceMessagePostResult) bool
func (*MessageServiceMessagePostResult) FastRead ¶
func (p *MessageServiceMessagePostResult) FastRead(buf []byte) (int, error)
func (*MessageServiceMessagePostResult) FastReadField0 ¶
func (p *MessageServiceMessagePostResult) FastReadField0(buf []byte) (int, error)
func (*MessageServiceMessagePostResult) FastWrite ¶
func (p *MessageServiceMessagePostResult) FastWrite(buf []byte) int
for compatibility
func (*MessageServiceMessagePostResult) FastWriteNocopy ¶
func (p *MessageServiceMessagePostResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MessageServiceMessagePostResult) Field0DeepEqual ¶
func (p *MessageServiceMessagePostResult) Field0DeepEqual(src *MessagePostReponse) bool
func (*MessageServiceMessagePostResult) GetResult ¶
func (p *MessageServiceMessagePostResult) GetResult() interface{}
func (*MessageServiceMessagePostResult) GetSuccess ¶
func (p *MessageServiceMessagePostResult) GetSuccess() (v *MessagePostReponse)
func (*MessageServiceMessagePostResult) InitDefault ¶
func (p *MessageServiceMessagePostResult) InitDefault()
func (*MessageServiceMessagePostResult) IsSetSuccess ¶
func (p *MessageServiceMessagePostResult) IsSetSuccess() bool
func (*MessageServiceMessagePostResult) Read ¶
func (p *MessageServiceMessagePostResult) Read(iprot thrift.TProtocol) (err error)
func (*MessageServiceMessagePostResult) ReadField0 ¶
func (p *MessageServiceMessagePostResult) ReadField0(iprot thrift.TProtocol) error
func (*MessageServiceMessagePostResult) SetSuccess ¶
func (p *MessageServiceMessagePostResult) SetSuccess(x interface{})
func (*MessageServiceMessagePostResult) String ¶
func (p *MessageServiceMessagePostResult) 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.