Documentation ¶
Index ¶
- Variables
- type CommentInfo
- func (p *CommentInfo) BLength() int
- func (p *CommentInfo) DeepEqual(ano *CommentInfo) bool
- func (p *CommentInfo) FastRead(buf []byte) (int, error)
- func (p *CommentInfo) FastReadField1(buf []byte) (int, error)
- func (p *CommentInfo) FastReadField2(buf []byte) (int, error)
- func (p *CommentInfo) FastReadField3(buf []byte) (int, error)
- func (p *CommentInfo) FastReadField4(buf []byte) (int, error)
- func (p *CommentInfo) FastWrite(buf []byte) int
- func (p *CommentInfo) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentInfo) Field1DeepEqual(src int64) bool
- func (p *CommentInfo) Field2DeepEqual(src *user.UserInfo) bool
- func (p *CommentInfo) Field3DeepEqual(src string) bool
- func (p *CommentInfo) Field4DeepEqual(src string) bool
- func (p *CommentInfo) GetContent() (v string)
- func (p *CommentInfo) GetCreateDate() (v string)
- func (p *CommentInfo) GetId() (v int64)
- func (p *CommentInfo) GetUser() (v *user.UserInfo)
- func (p *CommentInfo) InitDefault()
- func (p *CommentInfo) IsSetUser() bool
- func (p *CommentInfo) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentInfo) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentInfo) ReadField2(iprot thrift.TProtocol) error
- func (p *CommentInfo) ReadField3(iprot thrift.TProtocol) error
- func (p *CommentInfo) ReadField4(iprot thrift.TProtocol) error
- func (p *CommentInfo) SetContent(val string)
- func (p *CommentInfo) SetCreateDate(val string)
- func (p *CommentInfo) SetId(val int64)
- func (p *CommentInfo) SetUser(val *user.UserInfo)
- func (p *CommentInfo) String() string
- func (p *CommentInfo) Write(oprot thrift.TProtocol) (err error)
- type CommentListRequest
- func (p *CommentListRequest) BLength() int
- func (p *CommentListRequest) DeepEqual(ano *CommentListRequest) bool
- func (p *CommentListRequest) FastRead(buf []byte) (int, error)
- func (p *CommentListRequest) FastReadField1(buf []byte) (int, error)
- func (p *CommentListRequest) FastReadField2(buf []byte) (int, error)
- func (p *CommentListRequest) FastWrite(buf []byte) int
- func (p *CommentListRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentListRequest) Field1DeepEqual(src int64) bool
- func (p *CommentListRequest) Field2DeepEqual(src int64) bool
- func (p *CommentListRequest) GetUserId() (v int64)
- func (p *CommentListRequest) GetVideoId() (v int64)
- func (p *CommentListRequest) InitDefault()
- func (p *CommentListRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentListRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentListRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *CommentListRequest) SetUserId(val int64)
- func (p *CommentListRequest) SetVideoId(val int64)
- func (p *CommentListRequest) String() string
- func (p *CommentListRequest) Write(oprot thrift.TProtocol) (err error)
- type CommentListResponse
- func (p *CommentListResponse) BLength() int
- func (p *CommentListResponse) DeepEqual(ano *CommentListResponse) bool
- func (p *CommentListResponse) FastRead(buf []byte) (int, error)
- func (p *CommentListResponse) FastReadField1(buf []byte) (int, error)
- func (p *CommentListResponse) FastReadField2(buf []byte) (int, error)
- func (p *CommentListResponse) FastReadField4(buf []byte) (int, error)
- func (p *CommentListResponse) FastWrite(buf []byte) int
- func (p *CommentListResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentListResponse) Field1DeepEqual(src int64) bool
- func (p *CommentListResponse) Field2DeepEqual(src *string) bool
- func (p *CommentListResponse) Field4DeepEqual(src []*CommentInfo) bool
- func (p *CommentListResponse) GetCommentList() (v []*CommentInfo)
- func (p *CommentListResponse) GetStatusCode() (v int64)
- func (p *CommentListResponse) GetStatusMsg() (v string)
- func (p *CommentListResponse) InitDefault()
- func (p *CommentListResponse) IsSetCommentList() bool
- func (p *CommentListResponse) IsSetStatusMsg() bool
- func (p *CommentListResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentListResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentListResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *CommentListResponse) ReadField4(iprot thrift.TProtocol) error
- func (p *CommentListResponse) SetCommentList(val []*CommentInfo)
- func (p *CommentListResponse) SetStatusCode(val int64)
- func (p *CommentListResponse) SetStatusMsg(val *string)
- func (p *CommentListResponse) String() string
- func (p *CommentListResponse) Write(oprot thrift.TProtocol) (err error)
- type CommentRequest
- func (p *CommentRequest) BLength() int
- func (p *CommentRequest) DeepEqual(ano *CommentRequest) bool
- func (p *CommentRequest) FastRead(buf []byte) (int, error)
- func (p *CommentRequest) FastReadField1(buf []byte) (int, error)
- func (p *CommentRequest) FastReadField2(buf []byte) (int, error)
- func (p *CommentRequest) FastReadField3(buf []byte) (int, error)
- func (p *CommentRequest) FastReadField4(buf []byte) (int, error)
- func (p *CommentRequest) FastReadField5(buf []byte) (int, error)
- func (p *CommentRequest) FastWrite(buf []byte) int
- func (p *CommentRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentRequest) Field1DeepEqual(src int64) bool
- func (p *CommentRequest) Field2DeepEqual(src int64) bool
- func (p *CommentRequest) Field3DeepEqual(src bool) bool
- func (p *CommentRequest) Field4DeepEqual(src *string) bool
- func (p *CommentRequest) Field5DeepEqual(src *int64) bool
- func (p *CommentRequest) GetActionType() (v bool)
- func (p *CommentRequest) GetCommentId() (v int64)
- func (p *CommentRequest) GetCommentText() (v string)
- func (p *CommentRequest) GetUserId() (v int64)
- func (p *CommentRequest) GetVideoId() (v int64)
- func (p *CommentRequest) InitDefault()
- func (p *CommentRequest) IsSetCommentId() bool
- func (p *CommentRequest) IsSetCommentText() bool
- func (p *CommentRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *CommentRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *CommentRequest) ReadField4(iprot thrift.TProtocol) error
- func (p *CommentRequest) ReadField5(iprot thrift.TProtocol) error
- func (p *CommentRequest) SetActionType(val bool)
- func (p *CommentRequest) SetCommentId(val *int64)
- func (p *CommentRequest) SetCommentText(val *string)
- func (p *CommentRequest) SetUserId(val int64)
- func (p *CommentRequest) SetVideoId(val int64)
- func (p *CommentRequest) String() string
- func (p *CommentRequest) Write(oprot thrift.TProtocol) (err error)
- type CommentResponse
- func (p *CommentResponse) BLength() int
- func (p *CommentResponse) DeepEqual(ano *CommentResponse) bool
- func (p *CommentResponse) FastRead(buf []byte) (int, error)
- func (p *CommentResponse) FastReadField1(buf []byte) (int, error)
- func (p *CommentResponse) FastReadField2(buf []byte) (int, error)
- func (p *CommentResponse) FastReadField3(buf []byte) (int, error)
- func (p *CommentResponse) FastWrite(buf []byte) int
- func (p *CommentResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentResponse) Field1DeepEqual(src int64) bool
- func (p *CommentResponse) Field2DeepEqual(src *string) bool
- func (p *CommentResponse) Field3DeepEqual(src *CommentInfo) bool
- func (p *CommentResponse) GetComment() (v *CommentInfo)
- func (p *CommentResponse) GetStatusCode() (v int64)
- func (p *CommentResponse) GetStatusMsg() (v string)
- func (p *CommentResponse) InitDefault()
- func (p *CommentResponse) IsSetComment() bool
- func (p *CommentResponse) IsSetStatusMsg() bool
- func (p *CommentResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *CommentResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *CommentResponse) SetComment(val *CommentInfo)
- func (p *CommentResponse) SetStatusCode(val int64)
- func (p *CommentResponse) SetStatusMsg(val *string)
- func (p *CommentResponse) String() string
- func (p *CommentResponse) Write(oprot thrift.TProtocol) (err error)
- type CommentService
- type CommentServiceClient
- func NewCommentServiceClient(c thrift.TClient) *CommentServiceClient
- func NewCommentServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *CommentServiceClient
- func NewCommentServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *CommentServiceClient
- func (p *CommentServiceClient) Client_() thrift.TClient
- func (p *CommentServiceClient) CommentAction(ctx context.Context, request *CommentRequest) (r *CommentResponse, err error)
- func (p *CommentServiceClient) GetCommentList(ctx context.Context, request *CommentListRequest) (r *CommentListResponse, err error)
- type CommentServiceCommentActionArgs
- func (p *CommentServiceCommentActionArgs) BLength() int
- func (p *CommentServiceCommentActionArgs) DeepEqual(ano *CommentServiceCommentActionArgs) bool
- func (p *CommentServiceCommentActionArgs) FastRead(buf []byte) (int, error)
- func (p *CommentServiceCommentActionArgs) FastReadField1(buf []byte) (int, error)
- func (p *CommentServiceCommentActionArgs) FastWrite(buf []byte) int
- func (p *CommentServiceCommentActionArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentServiceCommentActionArgs) Field1DeepEqual(src *CommentRequest) bool
- func (p *CommentServiceCommentActionArgs) GetFirstArgument() interface{}
- func (p *CommentServiceCommentActionArgs) GetRequest() (v *CommentRequest)
- func (p *CommentServiceCommentActionArgs) InitDefault()
- func (p *CommentServiceCommentActionArgs) IsSetRequest() bool
- func (p *CommentServiceCommentActionArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceCommentActionArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentServiceCommentActionArgs) SetRequest(val *CommentRequest)
- func (p *CommentServiceCommentActionArgs) String() string
- func (p *CommentServiceCommentActionArgs) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceCommentActionResult
- func (p *CommentServiceCommentActionResult) BLength() int
- func (p *CommentServiceCommentActionResult) DeepEqual(ano *CommentServiceCommentActionResult) bool
- func (p *CommentServiceCommentActionResult) FastRead(buf []byte) (int, error)
- func (p *CommentServiceCommentActionResult) FastReadField0(buf []byte) (int, error)
- func (p *CommentServiceCommentActionResult) FastWrite(buf []byte) int
- func (p *CommentServiceCommentActionResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentServiceCommentActionResult) Field0DeepEqual(src *CommentResponse) bool
- func (p *CommentServiceCommentActionResult) GetResult() interface{}
- func (p *CommentServiceCommentActionResult) GetSuccess() (v *CommentResponse)
- func (p *CommentServiceCommentActionResult) InitDefault()
- func (p *CommentServiceCommentActionResult) IsSetSuccess() bool
- func (p *CommentServiceCommentActionResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceCommentActionResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommentServiceCommentActionResult) SetSuccess(x interface{})
- func (p *CommentServiceCommentActionResult) String() string
- func (p *CommentServiceCommentActionResult) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceGetCommentListArgs
- func (p *CommentServiceGetCommentListArgs) BLength() int
- func (p *CommentServiceGetCommentListArgs) DeepEqual(ano *CommentServiceGetCommentListArgs) bool
- func (p *CommentServiceGetCommentListArgs) FastRead(buf []byte) (int, error)
- func (p *CommentServiceGetCommentListArgs) FastReadField1(buf []byte) (int, error)
- func (p *CommentServiceGetCommentListArgs) FastWrite(buf []byte) int
- func (p *CommentServiceGetCommentListArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentServiceGetCommentListArgs) Field1DeepEqual(src *CommentListRequest) bool
- func (p *CommentServiceGetCommentListArgs) GetFirstArgument() interface{}
- func (p *CommentServiceGetCommentListArgs) GetRequest() (v *CommentListRequest)
- func (p *CommentServiceGetCommentListArgs) InitDefault()
- func (p *CommentServiceGetCommentListArgs) IsSetRequest() bool
- func (p *CommentServiceGetCommentListArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceGetCommentListArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentServiceGetCommentListArgs) SetRequest(val *CommentListRequest)
- func (p *CommentServiceGetCommentListArgs) String() string
- func (p *CommentServiceGetCommentListArgs) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceGetCommentListResult
- func (p *CommentServiceGetCommentListResult) BLength() int
- func (p *CommentServiceGetCommentListResult) DeepEqual(ano *CommentServiceGetCommentListResult) bool
- func (p *CommentServiceGetCommentListResult) FastRead(buf []byte) (int, error)
- func (p *CommentServiceGetCommentListResult) FastReadField0(buf []byte) (int, error)
- func (p *CommentServiceGetCommentListResult) FastWrite(buf []byte) int
- func (p *CommentServiceGetCommentListResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentServiceGetCommentListResult) Field0DeepEqual(src *CommentListResponse) bool
- func (p *CommentServiceGetCommentListResult) GetResult() interface{}
- func (p *CommentServiceGetCommentListResult) GetSuccess() (v *CommentListResponse)
- func (p *CommentServiceGetCommentListResult) InitDefault()
- func (p *CommentServiceGetCommentListResult) IsSetSuccess() bool
- func (p *CommentServiceGetCommentListResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceGetCommentListResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommentServiceGetCommentListResult) SetSuccess(x interface{})
- func (p *CommentServiceGetCommentListResult) String() string
- func (p *CommentServiceGetCommentListResult) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceProcessor
- func (p *CommentServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *CommentServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *CommentServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *CommentServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var CommentInfo_User_DEFAULT *user.UserInfo
View Source
var CommentListResponse_CommentList_DEFAULT []*CommentInfo
View Source
var CommentListResponse_StatusMsg_DEFAULT string
View Source
var CommentRequest_CommentId_DEFAULT int64
View Source
var CommentRequest_CommentText_DEFAULT string
View Source
var CommentResponse_StatusMsg_DEFAULT string
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
Functions ¶
This section is empty.
Types ¶
type CommentInfo ¶
type CommentInfo struct { Id int64 `thrift:"id,1" frugal:"1,default,i64" json:"id"` User *user.UserInfo `thrift:"user,2" frugal:"2,default,user.UserInfo" json:"user"` Content string `thrift:"content,3" frugal:"3,default,string" json:"content"` CreateDate string `thrift:"create_date,4" frugal:"4,default,string" json:"create_date"` }
var CommentResponse_Comment_DEFAULT *CommentInfo
func NewCommentInfo ¶
func NewCommentInfo() *CommentInfo
func (*CommentInfo) BLength ¶
func (p *CommentInfo) BLength() int
func (*CommentInfo) DeepEqual ¶
func (p *CommentInfo) DeepEqual(ano *CommentInfo) bool
func (*CommentInfo) FastReadField1 ¶
func (p *CommentInfo) FastReadField1(buf []byte) (int, error)
func (*CommentInfo) FastReadField2 ¶
func (p *CommentInfo) FastReadField2(buf []byte) (int, error)
func (*CommentInfo) FastReadField3 ¶
func (p *CommentInfo) FastReadField3(buf []byte) (int, error)
func (*CommentInfo) FastReadField4 ¶
func (p *CommentInfo) FastReadField4(buf []byte) (int, error)
func (*CommentInfo) FastWriteNocopy ¶
func (p *CommentInfo) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentInfo) Field1DeepEqual ¶
func (p *CommentInfo) Field1DeepEqual(src int64) bool
func (*CommentInfo) Field2DeepEqual ¶
func (p *CommentInfo) Field2DeepEqual(src *user.UserInfo) bool
func (*CommentInfo) Field3DeepEqual ¶
func (p *CommentInfo) Field3DeepEqual(src string) bool
func (*CommentInfo) Field4DeepEqual ¶
func (p *CommentInfo) Field4DeepEqual(src string) bool
func (*CommentInfo) GetContent ¶
func (p *CommentInfo) GetContent() (v string)
func (*CommentInfo) GetCreateDate ¶
func (p *CommentInfo) GetCreateDate() (v string)
func (*CommentInfo) GetId ¶
func (p *CommentInfo) GetId() (v int64)
func (*CommentInfo) GetUser ¶
func (p *CommentInfo) GetUser() (v *user.UserInfo)
func (*CommentInfo) InitDefault ¶
func (p *CommentInfo) InitDefault()
func (*CommentInfo) IsSetUser ¶
func (p *CommentInfo) IsSetUser() bool
func (*CommentInfo) ReadField1 ¶
func (p *CommentInfo) ReadField1(iprot thrift.TProtocol) error
func (*CommentInfo) ReadField2 ¶
func (p *CommentInfo) ReadField2(iprot thrift.TProtocol) error
func (*CommentInfo) ReadField3 ¶
func (p *CommentInfo) ReadField3(iprot thrift.TProtocol) error
func (*CommentInfo) ReadField4 ¶
func (p *CommentInfo) ReadField4(iprot thrift.TProtocol) error
func (*CommentInfo) SetContent ¶
func (p *CommentInfo) SetContent(val string)
func (*CommentInfo) SetCreateDate ¶
func (p *CommentInfo) SetCreateDate(val string)
func (*CommentInfo) SetId ¶
func (p *CommentInfo) SetId(val int64)
func (*CommentInfo) SetUser ¶
func (p *CommentInfo) SetUser(val *user.UserInfo)
func (*CommentInfo) String ¶
func (p *CommentInfo) String() string
type CommentListRequest ¶
type CommentListRequest struct { UserId int64 `thrift:"user_id,1" frugal:"1,default,i64" json:"user_id"` VideoId int64 `thrift:"video_id,2" frugal:"2,default,i64" json:"video_id"` }
var CommentServiceGetCommentListArgs_Request_DEFAULT *CommentListRequest
func NewCommentListRequest ¶
func NewCommentListRequest() *CommentListRequest
func (*CommentListRequest) BLength ¶
func (p *CommentListRequest) BLength() int
func (*CommentListRequest) DeepEqual ¶
func (p *CommentListRequest) DeepEqual(ano *CommentListRequest) bool
func (*CommentListRequest) FastRead ¶
func (p *CommentListRequest) FastRead(buf []byte) (int, error)
func (*CommentListRequest) FastReadField1 ¶
func (p *CommentListRequest) FastReadField1(buf []byte) (int, error)
func (*CommentListRequest) FastReadField2 ¶
func (p *CommentListRequest) FastReadField2(buf []byte) (int, error)
func (*CommentListRequest) FastWrite ¶
func (p *CommentListRequest) FastWrite(buf []byte) int
for compatibility
func (*CommentListRequest) FastWriteNocopy ¶
func (p *CommentListRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentListRequest) Field1DeepEqual ¶
func (p *CommentListRequest) Field1DeepEqual(src int64) bool
func (*CommentListRequest) Field2DeepEqual ¶
func (p *CommentListRequest) Field2DeepEqual(src int64) bool
func (*CommentListRequest) GetUserId ¶
func (p *CommentListRequest) GetUserId() (v int64)
func (*CommentListRequest) GetVideoId ¶
func (p *CommentListRequest) GetVideoId() (v int64)
func (*CommentListRequest) InitDefault ¶
func (p *CommentListRequest) InitDefault()
func (*CommentListRequest) Read ¶
func (p *CommentListRequest) Read(iprot thrift.TProtocol) (err error)
func (*CommentListRequest) ReadField1 ¶
func (p *CommentListRequest) ReadField1(iprot thrift.TProtocol) error
func (*CommentListRequest) ReadField2 ¶
func (p *CommentListRequest) ReadField2(iprot thrift.TProtocol) error
func (*CommentListRequest) SetUserId ¶
func (p *CommentListRequest) SetUserId(val int64)
func (*CommentListRequest) SetVideoId ¶
func (p *CommentListRequest) SetVideoId(val int64)
func (*CommentListRequest) String ¶
func (p *CommentListRequest) String() string
type CommentListResponse ¶
type CommentListResponse struct { StatusCode int64 `thrift:"status_code,1" frugal:"1,default,i64" json:"status_code"` StatusMsg *string `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"` CommentList []*CommentInfo `thrift:"comment_list,4,optional" frugal:"4,optional,list<CommentInfo>" json:"comment_list,omitempty"` }
var CommentServiceGetCommentListResult_Success_DEFAULT *CommentListResponse
func NewCommentListResponse ¶
func NewCommentListResponse() *CommentListResponse
func (*CommentListResponse) BLength ¶
func (p *CommentListResponse) BLength() int
func (*CommentListResponse) DeepEqual ¶
func (p *CommentListResponse) DeepEqual(ano *CommentListResponse) bool
func (*CommentListResponse) FastRead ¶
func (p *CommentListResponse) FastRead(buf []byte) (int, error)
func (*CommentListResponse) FastReadField1 ¶
func (p *CommentListResponse) FastReadField1(buf []byte) (int, error)
func (*CommentListResponse) FastReadField2 ¶
func (p *CommentListResponse) FastReadField2(buf []byte) (int, error)
func (*CommentListResponse) FastReadField4 ¶
func (p *CommentListResponse) FastReadField4(buf []byte) (int, error)
func (*CommentListResponse) FastWrite ¶
func (p *CommentListResponse) FastWrite(buf []byte) int
for compatibility
func (*CommentListResponse) FastWriteNocopy ¶
func (p *CommentListResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentListResponse) Field1DeepEqual ¶
func (p *CommentListResponse) Field1DeepEqual(src int64) bool
func (*CommentListResponse) Field2DeepEqual ¶
func (p *CommentListResponse) Field2DeepEqual(src *string) bool
func (*CommentListResponse) Field4DeepEqual ¶
func (p *CommentListResponse) Field4DeepEqual(src []*CommentInfo) bool
func (*CommentListResponse) GetCommentList ¶
func (p *CommentListResponse) GetCommentList() (v []*CommentInfo)
func (*CommentListResponse) GetStatusCode ¶
func (p *CommentListResponse) GetStatusCode() (v int64)
func (*CommentListResponse) GetStatusMsg ¶
func (p *CommentListResponse) GetStatusMsg() (v string)
func (*CommentListResponse) InitDefault ¶
func (p *CommentListResponse) InitDefault()
func (*CommentListResponse) IsSetCommentList ¶
func (p *CommentListResponse) IsSetCommentList() bool
func (*CommentListResponse) IsSetStatusMsg ¶
func (p *CommentListResponse) IsSetStatusMsg() bool
func (*CommentListResponse) Read ¶
func (p *CommentListResponse) Read(iprot thrift.TProtocol) (err error)
func (*CommentListResponse) ReadField1 ¶
func (p *CommentListResponse) ReadField1(iprot thrift.TProtocol) error
func (*CommentListResponse) ReadField2 ¶
func (p *CommentListResponse) ReadField2(iprot thrift.TProtocol) error
func (*CommentListResponse) ReadField4 ¶
func (p *CommentListResponse) ReadField4(iprot thrift.TProtocol) error
func (*CommentListResponse) SetCommentList ¶
func (p *CommentListResponse) SetCommentList(val []*CommentInfo)
func (*CommentListResponse) SetStatusCode ¶
func (p *CommentListResponse) SetStatusCode(val int64)
func (*CommentListResponse) SetStatusMsg ¶
func (p *CommentListResponse) SetStatusMsg(val *string)
func (*CommentListResponse) String ¶
func (p *CommentListResponse) String() string
type CommentRequest ¶
type CommentRequest struct { UserId int64 `thrift:"user_id,1" frugal:"1,default,i64" json:"user_id"` VideoId int64 `thrift:"video_id,2" frugal:"2,default,i64" json:"video_id"` ActionType bool `thrift:"action_type,3" frugal:"3,default,bool" json:"action_type"` CommentText *string `thrift:"comment_text,4,optional" frugal:"4,optional,string" json:"comment_text,omitempty"` CommentId *int64 `thrift:"comment_id,5,optional" frugal:"5,optional,i64" json:"comment_id,omitempty"` }
var CommentServiceCommentActionArgs_Request_DEFAULT *CommentRequest
func NewCommentRequest ¶
func NewCommentRequest() *CommentRequest
func (*CommentRequest) BLength ¶
func (p *CommentRequest) BLength() int
func (*CommentRequest) DeepEqual ¶
func (p *CommentRequest) DeepEqual(ano *CommentRequest) bool
func (*CommentRequest) FastReadField1 ¶
func (p *CommentRequest) FastReadField1(buf []byte) (int, error)
func (*CommentRequest) FastReadField2 ¶
func (p *CommentRequest) FastReadField2(buf []byte) (int, error)
func (*CommentRequest) FastReadField3 ¶
func (p *CommentRequest) FastReadField3(buf []byte) (int, error)
func (*CommentRequest) FastReadField4 ¶
func (p *CommentRequest) FastReadField4(buf []byte) (int, error)
func (*CommentRequest) FastReadField5 ¶
func (p *CommentRequest) FastReadField5(buf []byte) (int, error)
func (*CommentRequest) FastWrite ¶
func (p *CommentRequest) FastWrite(buf []byte) int
for compatibility
func (*CommentRequest) FastWriteNocopy ¶
func (p *CommentRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentRequest) Field1DeepEqual ¶
func (p *CommentRequest) Field1DeepEqual(src int64) bool
func (*CommentRequest) Field2DeepEqual ¶
func (p *CommentRequest) Field2DeepEqual(src int64) bool
func (*CommentRequest) Field3DeepEqual ¶
func (p *CommentRequest) Field3DeepEqual(src bool) bool
func (*CommentRequest) Field4DeepEqual ¶
func (p *CommentRequest) Field4DeepEqual(src *string) bool
func (*CommentRequest) Field5DeepEqual ¶
func (p *CommentRequest) Field5DeepEqual(src *int64) bool
func (*CommentRequest) GetActionType ¶
func (p *CommentRequest) GetActionType() (v bool)
func (*CommentRequest) GetCommentId ¶
func (p *CommentRequest) GetCommentId() (v int64)
func (*CommentRequest) GetCommentText ¶
func (p *CommentRequest) GetCommentText() (v string)
func (*CommentRequest) GetUserId ¶
func (p *CommentRequest) GetUserId() (v int64)
func (*CommentRequest) GetVideoId ¶
func (p *CommentRequest) GetVideoId() (v int64)
func (*CommentRequest) InitDefault ¶
func (p *CommentRequest) InitDefault()
func (*CommentRequest) IsSetCommentId ¶
func (p *CommentRequest) IsSetCommentId() bool
func (*CommentRequest) IsSetCommentText ¶
func (p *CommentRequest) IsSetCommentText() bool
func (*CommentRequest) ReadField1 ¶
func (p *CommentRequest) ReadField1(iprot thrift.TProtocol) error
func (*CommentRequest) ReadField2 ¶
func (p *CommentRequest) ReadField2(iprot thrift.TProtocol) error
func (*CommentRequest) ReadField3 ¶
func (p *CommentRequest) ReadField3(iprot thrift.TProtocol) error
func (*CommentRequest) ReadField4 ¶
func (p *CommentRequest) ReadField4(iprot thrift.TProtocol) error
func (*CommentRequest) ReadField5 ¶
func (p *CommentRequest) ReadField5(iprot thrift.TProtocol) error
func (*CommentRequest) SetActionType ¶
func (p *CommentRequest) SetActionType(val bool)
func (*CommentRequest) SetCommentId ¶
func (p *CommentRequest) SetCommentId(val *int64)
func (*CommentRequest) SetCommentText ¶
func (p *CommentRequest) SetCommentText(val *string)
func (*CommentRequest) SetUserId ¶
func (p *CommentRequest) SetUserId(val int64)
func (*CommentRequest) SetVideoId ¶
func (p *CommentRequest) SetVideoId(val int64)
func (*CommentRequest) String ¶
func (p *CommentRequest) String() string
type CommentResponse ¶
type CommentResponse struct { StatusCode int64 `thrift:"status_code,1" frugal:"1,default,i64" json:"status_code"` StatusMsg *string `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"` Comment *CommentInfo `thrift:"comment,3,optional" frugal:"3,optional,CommentInfo" json:"comment,omitempty"` }
var CommentServiceCommentActionResult_Success_DEFAULT *CommentResponse
func NewCommentResponse ¶
func NewCommentResponse() *CommentResponse
func (*CommentResponse) BLength ¶
func (p *CommentResponse) BLength() int
func (*CommentResponse) DeepEqual ¶
func (p *CommentResponse) DeepEqual(ano *CommentResponse) bool
func (*CommentResponse) FastReadField1 ¶
func (p *CommentResponse) FastReadField1(buf []byte) (int, error)
func (*CommentResponse) FastReadField2 ¶
func (p *CommentResponse) FastReadField2(buf []byte) (int, error)
func (*CommentResponse) FastReadField3 ¶
func (p *CommentResponse) FastReadField3(buf []byte) (int, error)
func (*CommentResponse) FastWrite ¶
func (p *CommentResponse) FastWrite(buf []byte) int
for compatibility
func (*CommentResponse) FastWriteNocopy ¶
func (p *CommentResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentResponse) Field1DeepEqual ¶
func (p *CommentResponse) Field1DeepEqual(src int64) bool
func (*CommentResponse) Field2DeepEqual ¶
func (p *CommentResponse) Field2DeepEqual(src *string) bool
func (*CommentResponse) Field3DeepEqual ¶
func (p *CommentResponse) Field3DeepEqual(src *CommentInfo) bool
func (*CommentResponse) GetComment ¶
func (p *CommentResponse) GetComment() (v *CommentInfo)
func (*CommentResponse) GetStatusCode ¶
func (p *CommentResponse) GetStatusCode() (v int64)
func (*CommentResponse) GetStatusMsg ¶
func (p *CommentResponse) GetStatusMsg() (v string)
func (*CommentResponse) InitDefault ¶
func (p *CommentResponse) InitDefault()
func (*CommentResponse) IsSetComment ¶
func (p *CommentResponse) IsSetComment() bool
func (*CommentResponse) IsSetStatusMsg ¶
func (p *CommentResponse) IsSetStatusMsg() bool
func (*CommentResponse) ReadField1 ¶
func (p *CommentResponse) ReadField1(iprot thrift.TProtocol) error
func (*CommentResponse) ReadField2 ¶
func (p *CommentResponse) ReadField2(iprot thrift.TProtocol) error
func (*CommentResponse) ReadField3 ¶
func (p *CommentResponse) ReadField3(iprot thrift.TProtocol) error
func (*CommentResponse) SetComment ¶
func (p *CommentResponse) SetComment(val *CommentInfo)
func (*CommentResponse) SetStatusCode ¶
func (p *CommentResponse) SetStatusCode(val int64)
func (*CommentResponse) SetStatusMsg ¶
func (p *CommentResponse) SetStatusMsg(val *string)
func (*CommentResponse) String ¶
func (p *CommentResponse) String() string
type CommentService ¶
type CommentService interface { CommentAction(ctx context.Context, request *CommentRequest) (r *CommentResponse, err error) GetCommentList(ctx context.Context, request *CommentListRequest) (r *CommentListResponse, err error) }
type CommentServiceClient ¶
type CommentServiceClient struct {
// contains filtered or unexported fields
}
func NewCommentServiceClient ¶
func NewCommentServiceClient(c thrift.TClient) *CommentServiceClient
func NewCommentServiceClientFactory ¶
func NewCommentServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *CommentServiceClient
func NewCommentServiceClientProtocol ¶
func NewCommentServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *CommentServiceClient
func (*CommentServiceClient) Client_ ¶
func (p *CommentServiceClient) Client_() thrift.TClient
func (*CommentServiceClient) CommentAction ¶
func (p *CommentServiceClient) CommentAction(ctx context.Context, request *CommentRequest) (r *CommentResponse, err error)
func (*CommentServiceClient) GetCommentList ¶
func (p *CommentServiceClient) GetCommentList(ctx context.Context, request *CommentListRequest) (r *CommentListResponse, err error)
type CommentServiceCommentActionArgs ¶
type CommentServiceCommentActionArgs struct {
Request *CommentRequest `thrift:"request,1" frugal:"1,default,CommentRequest" json:"request"`
}
func NewCommentServiceCommentActionArgs ¶
func NewCommentServiceCommentActionArgs() *CommentServiceCommentActionArgs
func (*CommentServiceCommentActionArgs) BLength ¶
func (p *CommentServiceCommentActionArgs) BLength() int
func (*CommentServiceCommentActionArgs) DeepEqual ¶
func (p *CommentServiceCommentActionArgs) DeepEqual(ano *CommentServiceCommentActionArgs) bool
func (*CommentServiceCommentActionArgs) FastRead ¶
func (p *CommentServiceCommentActionArgs) FastRead(buf []byte) (int, error)
func (*CommentServiceCommentActionArgs) FastReadField1 ¶
func (p *CommentServiceCommentActionArgs) FastReadField1(buf []byte) (int, error)
func (*CommentServiceCommentActionArgs) FastWrite ¶
func (p *CommentServiceCommentActionArgs) FastWrite(buf []byte) int
for compatibility
func (*CommentServiceCommentActionArgs) FastWriteNocopy ¶
func (p *CommentServiceCommentActionArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentServiceCommentActionArgs) Field1DeepEqual ¶
func (p *CommentServiceCommentActionArgs) Field1DeepEqual(src *CommentRequest) bool
func (*CommentServiceCommentActionArgs) GetFirstArgument ¶
func (p *CommentServiceCommentActionArgs) GetFirstArgument() interface{}
func (*CommentServiceCommentActionArgs) GetRequest ¶
func (p *CommentServiceCommentActionArgs) GetRequest() (v *CommentRequest)
func (*CommentServiceCommentActionArgs) InitDefault ¶
func (p *CommentServiceCommentActionArgs) InitDefault()
func (*CommentServiceCommentActionArgs) IsSetRequest ¶
func (p *CommentServiceCommentActionArgs) IsSetRequest() bool
func (*CommentServiceCommentActionArgs) Read ¶
func (p *CommentServiceCommentActionArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommentServiceCommentActionArgs) ReadField1 ¶
func (p *CommentServiceCommentActionArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommentServiceCommentActionArgs) SetRequest ¶
func (p *CommentServiceCommentActionArgs) SetRequest(val *CommentRequest)
func (*CommentServiceCommentActionArgs) String ¶
func (p *CommentServiceCommentActionArgs) String() string
type CommentServiceCommentActionResult ¶
type CommentServiceCommentActionResult struct {
Success *CommentResponse `thrift:"success,0,optional" frugal:"0,optional,CommentResponse" json:"success,omitempty"`
}
func NewCommentServiceCommentActionResult ¶
func NewCommentServiceCommentActionResult() *CommentServiceCommentActionResult
func (*CommentServiceCommentActionResult) BLength ¶
func (p *CommentServiceCommentActionResult) BLength() int
func (*CommentServiceCommentActionResult) DeepEqual ¶
func (p *CommentServiceCommentActionResult) DeepEqual(ano *CommentServiceCommentActionResult) bool
func (*CommentServiceCommentActionResult) FastRead ¶
func (p *CommentServiceCommentActionResult) FastRead(buf []byte) (int, error)
func (*CommentServiceCommentActionResult) FastReadField0 ¶
func (p *CommentServiceCommentActionResult) FastReadField0(buf []byte) (int, error)
func (*CommentServiceCommentActionResult) FastWrite ¶
func (p *CommentServiceCommentActionResult) FastWrite(buf []byte) int
for compatibility
func (*CommentServiceCommentActionResult) FastWriteNocopy ¶
func (p *CommentServiceCommentActionResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentServiceCommentActionResult) Field0DeepEqual ¶
func (p *CommentServiceCommentActionResult) Field0DeepEqual(src *CommentResponse) bool
func (*CommentServiceCommentActionResult) GetResult ¶
func (p *CommentServiceCommentActionResult) GetResult() interface{}
func (*CommentServiceCommentActionResult) GetSuccess ¶
func (p *CommentServiceCommentActionResult) GetSuccess() (v *CommentResponse)
func (*CommentServiceCommentActionResult) InitDefault ¶
func (p *CommentServiceCommentActionResult) InitDefault()
func (*CommentServiceCommentActionResult) IsSetSuccess ¶
func (p *CommentServiceCommentActionResult) IsSetSuccess() bool
func (*CommentServiceCommentActionResult) Read ¶
func (p *CommentServiceCommentActionResult) Read(iprot thrift.TProtocol) (err error)
func (*CommentServiceCommentActionResult) ReadField0 ¶
func (p *CommentServiceCommentActionResult) ReadField0(iprot thrift.TProtocol) error
func (*CommentServiceCommentActionResult) SetSuccess ¶
func (p *CommentServiceCommentActionResult) SetSuccess(x interface{})
func (*CommentServiceCommentActionResult) String ¶
func (p *CommentServiceCommentActionResult) String() string
type CommentServiceGetCommentListArgs ¶
type CommentServiceGetCommentListArgs struct {
Request *CommentListRequest `thrift:"request,1" frugal:"1,default,CommentListRequest" json:"request"`
}
func NewCommentServiceGetCommentListArgs ¶
func NewCommentServiceGetCommentListArgs() *CommentServiceGetCommentListArgs
func (*CommentServiceGetCommentListArgs) BLength ¶
func (p *CommentServiceGetCommentListArgs) BLength() int
func (*CommentServiceGetCommentListArgs) DeepEqual ¶
func (p *CommentServiceGetCommentListArgs) DeepEqual(ano *CommentServiceGetCommentListArgs) bool
func (*CommentServiceGetCommentListArgs) FastRead ¶
func (p *CommentServiceGetCommentListArgs) FastRead(buf []byte) (int, error)
func (*CommentServiceGetCommentListArgs) FastReadField1 ¶
func (p *CommentServiceGetCommentListArgs) FastReadField1(buf []byte) (int, error)
func (*CommentServiceGetCommentListArgs) FastWrite ¶
func (p *CommentServiceGetCommentListArgs) FastWrite(buf []byte) int
for compatibility
func (*CommentServiceGetCommentListArgs) FastWriteNocopy ¶
func (p *CommentServiceGetCommentListArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentServiceGetCommentListArgs) Field1DeepEqual ¶
func (p *CommentServiceGetCommentListArgs) Field1DeepEqual(src *CommentListRequest) bool
func (*CommentServiceGetCommentListArgs) GetFirstArgument ¶
func (p *CommentServiceGetCommentListArgs) GetFirstArgument() interface{}
func (*CommentServiceGetCommentListArgs) GetRequest ¶
func (p *CommentServiceGetCommentListArgs) GetRequest() (v *CommentListRequest)
func (*CommentServiceGetCommentListArgs) InitDefault ¶
func (p *CommentServiceGetCommentListArgs) InitDefault()
func (*CommentServiceGetCommentListArgs) IsSetRequest ¶
func (p *CommentServiceGetCommentListArgs) IsSetRequest() bool
func (*CommentServiceGetCommentListArgs) Read ¶
func (p *CommentServiceGetCommentListArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommentServiceGetCommentListArgs) ReadField1 ¶
func (p *CommentServiceGetCommentListArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommentServiceGetCommentListArgs) SetRequest ¶
func (p *CommentServiceGetCommentListArgs) SetRequest(val *CommentListRequest)
func (*CommentServiceGetCommentListArgs) String ¶
func (p *CommentServiceGetCommentListArgs) String() string
type CommentServiceGetCommentListResult ¶
type CommentServiceGetCommentListResult struct {
Success *CommentListResponse `thrift:"success,0,optional" frugal:"0,optional,CommentListResponse" json:"success,omitempty"`
}
func NewCommentServiceGetCommentListResult ¶
func NewCommentServiceGetCommentListResult() *CommentServiceGetCommentListResult
func (*CommentServiceGetCommentListResult) BLength ¶
func (p *CommentServiceGetCommentListResult) BLength() int
func (*CommentServiceGetCommentListResult) DeepEqual ¶
func (p *CommentServiceGetCommentListResult) DeepEqual(ano *CommentServiceGetCommentListResult) bool
func (*CommentServiceGetCommentListResult) FastRead ¶
func (p *CommentServiceGetCommentListResult) FastRead(buf []byte) (int, error)
func (*CommentServiceGetCommentListResult) FastReadField0 ¶
func (p *CommentServiceGetCommentListResult) FastReadField0(buf []byte) (int, error)
func (*CommentServiceGetCommentListResult) FastWrite ¶
func (p *CommentServiceGetCommentListResult) FastWrite(buf []byte) int
for compatibility
func (*CommentServiceGetCommentListResult) FastWriteNocopy ¶
func (p *CommentServiceGetCommentListResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentServiceGetCommentListResult) Field0DeepEqual ¶
func (p *CommentServiceGetCommentListResult) Field0DeepEqual(src *CommentListResponse) bool
func (*CommentServiceGetCommentListResult) GetResult ¶
func (p *CommentServiceGetCommentListResult) GetResult() interface{}
func (*CommentServiceGetCommentListResult) GetSuccess ¶
func (p *CommentServiceGetCommentListResult) GetSuccess() (v *CommentListResponse)
func (*CommentServiceGetCommentListResult) InitDefault ¶
func (p *CommentServiceGetCommentListResult) InitDefault()
func (*CommentServiceGetCommentListResult) IsSetSuccess ¶
func (p *CommentServiceGetCommentListResult) IsSetSuccess() bool
func (*CommentServiceGetCommentListResult) Read ¶
func (p *CommentServiceGetCommentListResult) Read(iprot thrift.TProtocol) (err error)
func (*CommentServiceGetCommentListResult) ReadField0 ¶
func (p *CommentServiceGetCommentListResult) ReadField0(iprot thrift.TProtocol) error
func (*CommentServiceGetCommentListResult) SetSuccess ¶
func (p *CommentServiceGetCommentListResult) SetSuccess(x interface{})
func (*CommentServiceGetCommentListResult) String ¶
func (p *CommentServiceGetCommentListResult) String() string
type CommentServiceProcessor ¶
type CommentServiceProcessor struct {
// contains filtered or unexported fields
}
func NewCommentServiceProcessor ¶
func NewCommentServiceProcessor(handler CommentService) *CommentServiceProcessor
func (*CommentServiceProcessor) AddToProcessorMap ¶
func (p *CommentServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*CommentServiceProcessor) GetProcessorFunction ¶
func (p *CommentServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*CommentServiceProcessor) Process ¶
func (p *CommentServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*CommentServiceProcessor) ProcessorMap ¶
func (p *CommentServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.