Documentation ¶
Index ¶
- Variables
- type ActionRequest
- func (p *ActionRequest) BLength() int
- func (p *ActionRequest) DeepEqual(ano *ActionRequest) bool
- func (p *ActionRequest) FastRead(buf []byte) (int, error)
- func (p *ActionRequest) FastReadField1(buf []byte) (int, error)
- func (p *ActionRequest) FastReadField2(buf []byte) (int, error)
- func (p *ActionRequest) FastReadField3(buf []byte) (int, error)
- func (p *ActionRequest) FastReadField4(buf []byte) (int, error)
- func (p *ActionRequest) FastReadField5(buf []byte) (int, error)
- func (p *ActionRequest) FastWrite(buf []byte) int
- func (p *ActionRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ActionRequest) Field1DeepEqual(src string) bool
- func (p *ActionRequest) Field2DeepEqual(src int64) bool
- func (p *ActionRequest) Field3DeepEqual(src int32) bool
- func (p *ActionRequest) Field4DeepEqual(src *string) bool
- func (p *ActionRequest) Field5DeepEqual(src *int64) bool
- func (p *ActionRequest) GetActionType() (v int32)
- func (p *ActionRequest) GetCommentId() (v int64)
- func (p *ActionRequest) GetCommentText() (v string)
- func (p *ActionRequest) GetToken() (v string)
- func (p *ActionRequest) GetVideoId() (v int64)
- func (p *ActionRequest) InitDefault()
- func (p *ActionRequest) IsSetCommentId() bool
- func (p *ActionRequest) IsSetCommentText() bool
- func (p *ActionRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *ActionRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *ActionRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *ActionRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *ActionRequest) ReadField4(iprot thrift.TProtocol) error
- func (p *ActionRequest) ReadField5(iprot thrift.TProtocol) error
- func (p *ActionRequest) SetActionType(val int32)
- func (p *ActionRequest) SetCommentId(val *int64)
- func (p *ActionRequest) SetCommentText(val *string)
- func (p *ActionRequest) SetToken(val string)
- func (p *ActionRequest) SetVideoId(val int64)
- func (p *ActionRequest) String() string
- func (p *ActionRequest) Write(oprot thrift.TProtocol) (err error)
- type ActionResponse
- func (p *ActionResponse) BLength() int
- func (p *ActionResponse) DeepEqual(ano *ActionResponse) bool
- func (p *ActionResponse) FastRead(buf []byte) (int, error)
- func (p *ActionResponse) FastReadField1(buf []byte) (int, error)
- func (p *ActionResponse) FastReadField2(buf []byte) (int, error)
- func (p *ActionResponse) FastReadField3(buf []byte) (int, error)
- func (p *ActionResponse) FastWrite(buf []byte) int
- func (p *ActionResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ActionResponse) Field1DeepEqual(src int32) bool
- func (p *ActionResponse) Field2DeepEqual(src *string) bool
- func (p *ActionResponse) Field3DeepEqual(src *Comment) bool
- func (p *ActionResponse) GetComment() (v *Comment)
- func (p *ActionResponse) GetStatusCode() (v int32)
- func (p *ActionResponse) GetStatusMsg() (v string)
- func (p *ActionResponse) InitDefault()
- func (p *ActionResponse) IsSetComment() bool
- func (p *ActionResponse) IsSetStatusMsg() bool
- func (p *ActionResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *ActionResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *ActionResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *ActionResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *ActionResponse) SetComment(val *Comment)
- func (p *ActionResponse) SetStatusCode(val int32)
- func (p *ActionResponse) SetStatusMsg(val *string)
- func (p *ActionResponse) String() string
- func (p *ActionResponse) Write(oprot thrift.TProtocol) (err error)
- type Comment
- func (p *Comment) BLength() int
- func (p *Comment) DeepEqual(ano *Comment) bool
- func (p *Comment) FastRead(buf []byte) (int, error)
- func (p *Comment) FastReadField1(buf []byte) (int, error)
- func (p *Comment) FastReadField2(buf []byte) (int, error)
- func (p *Comment) FastReadField3(buf []byte) (int, error)
- func (p *Comment) FastReadField4(buf []byte) (int, error)
- func (p *Comment) FastWrite(buf []byte) int
- func (p *Comment) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Comment) Field1DeepEqual(src int64) bool
- func (p *Comment) Field2DeepEqual(src *user.User) bool
- func (p *Comment) Field3DeepEqual(src string) bool
- func (p *Comment) Field4DeepEqual(src string) bool
- func (p *Comment) GetContent() (v string)
- func (p *Comment) GetCreateDate() (v string)
- func (p *Comment) GetId() (v int64)
- func (p *Comment) GetUser() (v *user.User)
- func (p *Comment) InitDefault()
- func (p *Comment) IsSetUser() bool
- func (p *Comment) Read(iprot thrift.TProtocol) (err error)
- func (p *Comment) ReadField1(iprot thrift.TProtocol) error
- func (p *Comment) ReadField2(iprot thrift.TProtocol) error
- func (p *Comment) ReadField3(iprot thrift.TProtocol) error
- func (p *Comment) ReadField4(iprot thrift.TProtocol) error
- func (p *Comment) SetContent(val string)
- func (p *Comment) SetCreateDate(val string)
- func (p *Comment) SetId(val int64)
- func (p *Comment) SetUser(val *user.User)
- func (p *Comment) String() string
- func (p *Comment) 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
- 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 *ActionRequest) bool
- func (p *CommentServiceCommentActionArgs) GetFirstArgument() interface{}
- func (p *CommentServiceCommentActionArgs) GetReq() (v *ActionRequest)
- func (p *CommentServiceCommentActionArgs) InitDefault()
- func (p *CommentServiceCommentActionArgs) IsSetReq() bool
- func (p *CommentServiceCommentActionArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceCommentActionArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentServiceCommentActionArgs) SetReq(val *ActionRequest)
- 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 *ActionResponse) bool
- func (p *CommentServiceCommentActionResult) GetResult() interface{}
- func (p *CommentServiceCommentActionResult) GetSuccess() (v *ActionResponse)
- 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 CommentServiceCommentListArgs
- func (p *CommentServiceCommentListArgs) BLength() int
- func (p *CommentServiceCommentListArgs) DeepEqual(ano *CommentServiceCommentListArgs) bool
- func (p *CommentServiceCommentListArgs) FastRead(buf []byte) (int, error)
- func (p *CommentServiceCommentListArgs) FastReadField1(buf []byte) (int, error)
- func (p *CommentServiceCommentListArgs) FastWrite(buf []byte) int
- func (p *CommentServiceCommentListArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentServiceCommentListArgs) Field1DeepEqual(src *ListRequest) bool
- func (p *CommentServiceCommentListArgs) GetFirstArgument() interface{}
- func (p *CommentServiceCommentListArgs) GetReq() (v *ListRequest)
- func (p *CommentServiceCommentListArgs) InitDefault()
- func (p *CommentServiceCommentListArgs) IsSetReq() bool
- func (p *CommentServiceCommentListArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceCommentListArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentServiceCommentListArgs) SetReq(val *ListRequest)
- func (p *CommentServiceCommentListArgs) String() string
- func (p *CommentServiceCommentListArgs) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceCommentListResult
- func (p *CommentServiceCommentListResult) BLength() int
- func (p *CommentServiceCommentListResult) DeepEqual(ano *CommentServiceCommentListResult) bool
- func (p *CommentServiceCommentListResult) FastRead(buf []byte) (int, error)
- func (p *CommentServiceCommentListResult) FastReadField0(buf []byte) (int, error)
- func (p *CommentServiceCommentListResult) FastWrite(buf []byte) int
- func (p *CommentServiceCommentListResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CommentServiceCommentListResult) Field0DeepEqual(src *ListResponse) bool
- func (p *CommentServiceCommentListResult) GetResult() interface{}
- func (p *CommentServiceCommentListResult) GetSuccess() (v *ListResponse)
- func (p *CommentServiceCommentListResult) InitDefault()
- func (p *CommentServiceCommentListResult) IsSetSuccess() bool
- func (p *CommentServiceCommentListResult) Read(iprot thrift.TProtocol) (err error)
- func (p *CommentServiceCommentListResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommentServiceCommentListResult) SetSuccess(x interface{})
- func (p *CommentServiceCommentListResult) String() string
- func (p *CommentServiceCommentListResult) 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
- type ListRequest
- func (p *ListRequest) BLength() int
- func (p *ListRequest) DeepEqual(ano *ListRequest) bool
- func (p *ListRequest) FastRead(buf []byte) (int, error)
- func (p *ListRequest) FastReadField1(buf []byte) (int, error)
- func (p *ListRequest) FastReadField2(buf []byte) (int, error)
- func (p *ListRequest) FastWrite(buf []byte) int
- func (p *ListRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ListRequest) Field1DeepEqual(src string) bool
- func (p *ListRequest) Field2DeepEqual(src int64) bool
- func (p *ListRequest) GetToken() (v string)
- func (p *ListRequest) GetVideoId() (v int64)
- func (p *ListRequest) InitDefault()
- func (p *ListRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *ListRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *ListRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *ListRequest) SetToken(val string)
- func (p *ListRequest) SetVideoId(val int64)
- func (p *ListRequest) String() string
- func (p *ListRequest) Write(oprot thrift.TProtocol) (err error)
- type ListResponse
- func (p *ListResponse) BLength() int
- func (p *ListResponse) DeepEqual(ano *ListResponse) bool
- func (p *ListResponse) FastRead(buf []byte) (int, error)
- func (p *ListResponse) FastReadField1(buf []byte) (int, error)
- func (p *ListResponse) FastReadField2(buf []byte) (int, error)
- func (p *ListResponse) FastReadField3(buf []byte) (int, error)
- func (p *ListResponse) FastWrite(buf []byte) int
- func (p *ListResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ListResponse) Field1DeepEqual(src int32) bool
- func (p *ListResponse) Field2DeepEqual(src *string) bool
- func (p *ListResponse) Field3DeepEqual(src []*Comment) bool
- func (p *ListResponse) GetCommentList() (v []*Comment)
- func (p *ListResponse) GetStatusCode() (v int32)
- func (p *ListResponse) GetStatusMsg() (v string)
- func (p *ListResponse) InitDefault()
- func (p *ListResponse) IsSetStatusMsg() bool
- func (p *ListResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *ListResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *ListResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *ListResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *ListResponse) SetCommentList(val []*Comment)
- func (p *ListResponse) SetStatusCode(val int32)
- func (p *ListResponse) SetStatusMsg(val *string)
- func (p *ListResponse) String() string
- func (p *ListResponse) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionRequest_CommentId_DEFAULT int64
View Source
var ActionRequest_CommentText_DEFAULT string
View Source
var ActionResponse_StatusMsg_DEFAULT string
View Source
var Comment_User_DEFAULT *user.User
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
View Source
var ListResponse_StatusMsg_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type ActionRequest ¶
type ActionRequest struct { Token string `thrift:"token,1,required" frugal:"1,required,string" json:"token"` VideoId int64 `thrift:"video_id,2,required" frugal:"2,required,i64" json:"video_id"` ActionType int32 `thrift:"action_type,3,required" frugal:"3,required,i32" 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_Req_DEFAULT *ActionRequest
func NewActionRequest ¶
func NewActionRequest() *ActionRequest
func (*ActionRequest) BLength ¶
func (p *ActionRequest) BLength() int
func (*ActionRequest) DeepEqual ¶
func (p *ActionRequest) DeepEqual(ano *ActionRequest) bool
func (*ActionRequest) FastReadField1 ¶
func (p *ActionRequest) FastReadField1(buf []byte) (int, error)
func (*ActionRequest) FastReadField2 ¶
func (p *ActionRequest) FastReadField2(buf []byte) (int, error)
func (*ActionRequest) FastReadField3 ¶
func (p *ActionRequest) FastReadField3(buf []byte) (int, error)
func (*ActionRequest) FastReadField4 ¶
func (p *ActionRequest) FastReadField4(buf []byte) (int, error)
func (*ActionRequest) FastReadField5 ¶
func (p *ActionRequest) FastReadField5(buf []byte) (int, error)
func (*ActionRequest) FastWrite ¶
func (p *ActionRequest) FastWrite(buf []byte) int
for compatibility
func (*ActionRequest) FastWriteNocopy ¶
func (p *ActionRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ActionRequest) Field1DeepEqual ¶
func (p *ActionRequest) Field1DeepEqual(src string) bool
func (*ActionRequest) Field2DeepEqual ¶
func (p *ActionRequest) Field2DeepEqual(src int64) bool
func (*ActionRequest) Field3DeepEqual ¶
func (p *ActionRequest) Field3DeepEqual(src int32) bool
func (*ActionRequest) Field4DeepEqual ¶
func (p *ActionRequest) Field4DeepEqual(src *string) bool
func (*ActionRequest) Field5DeepEqual ¶
func (p *ActionRequest) Field5DeepEqual(src *int64) bool
func (*ActionRequest) GetActionType ¶
func (p *ActionRequest) GetActionType() (v int32)
func (*ActionRequest) GetCommentId ¶
func (p *ActionRequest) GetCommentId() (v int64)
func (*ActionRequest) GetCommentText ¶
func (p *ActionRequest) GetCommentText() (v string)
func (*ActionRequest) GetToken ¶
func (p *ActionRequest) GetToken() (v string)
func (*ActionRequest) GetVideoId ¶
func (p *ActionRequest) GetVideoId() (v int64)
func (*ActionRequest) InitDefault ¶
func (p *ActionRequest) InitDefault()
func (*ActionRequest) IsSetCommentId ¶
func (p *ActionRequest) IsSetCommentId() bool
func (*ActionRequest) IsSetCommentText ¶
func (p *ActionRequest) IsSetCommentText() bool
func (*ActionRequest) ReadField1 ¶
func (p *ActionRequest) ReadField1(iprot thrift.TProtocol) error
func (*ActionRequest) ReadField2 ¶
func (p *ActionRequest) ReadField2(iprot thrift.TProtocol) error
func (*ActionRequest) ReadField3 ¶
func (p *ActionRequest) ReadField3(iprot thrift.TProtocol) error
func (*ActionRequest) ReadField4 ¶
func (p *ActionRequest) ReadField4(iprot thrift.TProtocol) error
func (*ActionRequest) ReadField5 ¶
func (p *ActionRequest) ReadField5(iprot thrift.TProtocol) error
func (*ActionRequest) SetActionType ¶
func (p *ActionRequest) SetActionType(val int32)
func (*ActionRequest) SetCommentId ¶
func (p *ActionRequest) SetCommentId(val *int64)
func (*ActionRequest) SetCommentText ¶
func (p *ActionRequest) SetCommentText(val *string)
func (*ActionRequest) SetToken ¶
func (p *ActionRequest) SetToken(val string)
func (*ActionRequest) SetVideoId ¶
func (p *ActionRequest) SetVideoId(val int64)
func (*ActionRequest) String ¶
func (p *ActionRequest) String() string
type ActionResponse ¶
type ActionResponse struct { StatusCode int32 `thrift:"status_code,1,required" frugal:"1,required,i32" json:"status_code"` StatusMsg *string `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"` Comment *Comment `thrift:"comment,3,optional" frugal:"3,optional,Comment" json:"comment,omitempty"` }
var CommentServiceCommentActionResult_Success_DEFAULT *ActionResponse
func NewActionResponse ¶
func NewActionResponse() *ActionResponse
func (*ActionResponse) BLength ¶
func (p *ActionResponse) BLength() int
func (*ActionResponse) DeepEqual ¶
func (p *ActionResponse) DeepEqual(ano *ActionResponse) bool
func (*ActionResponse) FastReadField1 ¶
func (p *ActionResponse) FastReadField1(buf []byte) (int, error)
func (*ActionResponse) FastReadField2 ¶
func (p *ActionResponse) FastReadField2(buf []byte) (int, error)
func (*ActionResponse) FastReadField3 ¶
func (p *ActionResponse) FastReadField3(buf []byte) (int, error)
func (*ActionResponse) FastWrite ¶
func (p *ActionResponse) FastWrite(buf []byte) int
for compatibility
func (*ActionResponse) FastWriteNocopy ¶
func (p *ActionResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ActionResponse) Field1DeepEqual ¶
func (p *ActionResponse) Field1DeepEqual(src int32) bool
func (*ActionResponse) Field2DeepEqual ¶
func (p *ActionResponse) Field2DeepEqual(src *string) bool
func (*ActionResponse) Field3DeepEqual ¶
func (p *ActionResponse) Field3DeepEqual(src *Comment) bool
func (*ActionResponse) GetComment ¶
func (p *ActionResponse) GetComment() (v *Comment)
func (*ActionResponse) GetStatusCode ¶
func (p *ActionResponse) GetStatusCode() (v int32)
func (*ActionResponse) GetStatusMsg ¶
func (p *ActionResponse) GetStatusMsg() (v string)
func (*ActionResponse) InitDefault ¶
func (p *ActionResponse) InitDefault()
func (*ActionResponse) IsSetComment ¶
func (p *ActionResponse) IsSetComment() bool
func (*ActionResponse) IsSetStatusMsg ¶
func (p *ActionResponse) IsSetStatusMsg() bool
func (*ActionResponse) ReadField1 ¶
func (p *ActionResponse) ReadField1(iprot thrift.TProtocol) error
func (*ActionResponse) ReadField2 ¶
func (p *ActionResponse) ReadField2(iprot thrift.TProtocol) error
func (*ActionResponse) ReadField3 ¶
func (p *ActionResponse) ReadField3(iprot thrift.TProtocol) error
func (*ActionResponse) SetComment ¶
func (p *ActionResponse) SetComment(val *Comment)
func (*ActionResponse) SetStatusCode ¶
func (p *ActionResponse) SetStatusCode(val int32)
func (*ActionResponse) SetStatusMsg ¶
func (p *ActionResponse) SetStatusMsg(val *string)
func (*ActionResponse) String ¶
func (p *ActionResponse) String() string
type Comment ¶
type Comment struct { Id int64 `thrift:"id,1,required" frugal:"1,required,i64" json:"id"` User *user.User `thrift:"user,2,required" frugal:"2,required,user.User" json:"user"` Content string `thrift:"content,3,required" frugal:"3,required,string" json:"content"` CreateDate string `thrift:"create_date,4,required" frugal:"4,required,string" json:"create_date"` }
var ActionResponse_Comment_DEFAULT *Comment
func NewComment ¶
func NewComment() *Comment
func (*Comment) FastWriteNocopy ¶
func (p *Comment) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Comment) Field1DeepEqual ¶
func (*Comment) Field3DeepEqual ¶
func (*Comment) Field4DeepEqual ¶
func (*Comment) GetContent ¶
func (*Comment) GetCreateDate ¶
func (*Comment) InitDefault ¶
func (p *Comment) InitDefault()
func (*Comment) SetContent ¶
func (*Comment) SetCreateDate ¶
type CommentService ¶
type CommentService interface { CommentAction(ctx context.Context, req *ActionRequest) (r *ActionResponse, err error) CommentList(ctx context.Context, req *ListRequest) (r *ListResponse, 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, req *ActionRequest) (r *ActionResponse, err error)
func (*CommentServiceClient) CommentList ¶
func (p *CommentServiceClient) CommentList(ctx context.Context, req *ListRequest) (r *ListResponse, err error)
type CommentServiceCommentActionArgs ¶
type CommentServiceCommentActionArgs struct {
Req *ActionRequest `thrift:"req,1" frugal:"1,default,ActionRequest" json:"req"`
}
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 *ActionRequest) bool
func (*CommentServiceCommentActionArgs) GetFirstArgument ¶
func (p *CommentServiceCommentActionArgs) GetFirstArgument() interface{}
func (*CommentServiceCommentActionArgs) GetReq ¶
func (p *CommentServiceCommentActionArgs) GetReq() (v *ActionRequest)
func (*CommentServiceCommentActionArgs) InitDefault ¶
func (p *CommentServiceCommentActionArgs) InitDefault()
func (*CommentServiceCommentActionArgs) IsSetReq ¶
func (p *CommentServiceCommentActionArgs) IsSetReq() 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) SetReq ¶
func (p *CommentServiceCommentActionArgs) SetReq(val *ActionRequest)
func (*CommentServiceCommentActionArgs) String ¶
func (p *CommentServiceCommentActionArgs) String() string
type CommentServiceCommentActionResult ¶
type CommentServiceCommentActionResult struct {
Success *ActionResponse `thrift:"success,0,optional" frugal:"0,optional,ActionResponse" 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 *ActionResponse) bool
func (*CommentServiceCommentActionResult) GetResult ¶
func (p *CommentServiceCommentActionResult) GetResult() interface{}
func (*CommentServiceCommentActionResult) GetSuccess ¶
func (p *CommentServiceCommentActionResult) GetSuccess() (v *ActionResponse)
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 CommentServiceCommentListArgs ¶
type CommentServiceCommentListArgs struct {
Req *ListRequest `thrift:"req,1" frugal:"1,default,ListRequest" json:"req"`
}
func NewCommentServiceCommentListArgs ¶
func NewCommentServiceCommentListArgs() *CommentServiceCommentListArgs
func (*CommentServiceCommentListArgs) BLength ¶
func (p *CommentServiceCommentListArgs) BLength() int
func (*CommentServiceCommentListArgs) DeepEqual ¶
func (p *CommentServiceCommentListArgs) DeepEqual(ano *CommentServiceCommentListArgs) bool
func (*CommentServiceCommentListArgs) FastRead ¶
func (p *CommentServiceCommentListArgs) FastRead(buf []byte) (int, error)
func (*CommentServiceCommentListArgs) FastReadField1 ¶
func (p *CommentServiceCommentListArgs) FastReadField1(buf []byte) (int, error)
func (*CommentServiceCommentListArgs) FastWrite ¶
func (p *CommentServiceCommentListArgs) FastWrite(buf []byte) int
for compatibility
func (*CommentServiceCommentListArgs) FastWriteNocopy ¶
func (p *CommentServiceCommentListArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentServiceCommentListArgs) Field1DeepEqual ¶
func (p *CommentServiceCommentListArgs) Field1DeepEqual(src *ListRequest) bool
func (*CommentServiceCommentListArgs) GetFirstArgument ¶
func (p *CommentServiceCommentListArgs) GetFirstArgument() interface{}
func (*CommentServiceCommentListArgs) GetReq ¶
func (p *CommentServiceCommentListArgs) GetReq() (v *ListRequest)
func (*CommentServiceCommentListArgs) InitDefault ¶
func (p *CommentServiceCommentListArgs) InitDefault()
func (*CommentServiceCommentListArgs) IsSetReq ¶
func (p *CommentServiceCommentListArgs) IsSetReq() bool
func (*CommentServiceCommentListArgs) Read ¶
func (p *CommentServiceCommentListArgs) Read(iprot thrift.TProtocol) (err error)
func (*CommentServiceCommentListArgs) ReadField1 ¶
func (p *CommentServiceCommentListArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommentServiceCommentListArgs) SetReq ¶
func (p *CommentServiceCommentListArgs) SetReq(val *ListRequest)
func (*CommentServiceCommentListArgs) String ¶
func (p *CommentServiceCommentListArgs) String() string
type CommentServiceCommentListResult ¶
type CommentServiceCommentListResult struct {
Success *ListResponse `thrift:"success,0,optional" frugal:"0,optional,ListResponse" json:"success,omitempty"`
}
func NewCommentServiceCommentListResult ¶
func NewCommentServiceCommentListResult() *CommentServiceCommentListResult
func (*CommentServiceCommentListResult) BLength ¶
func (p *CommentServiceCommentListResult) BLength() int
func (*CommentServiceCommentListResult) DeepEqual ¶
func (p *CommentServiceCommentListResult) DeepEqual(ano *CommentServiceCommentListResult) bool
func (*CommentServiceCommentListResult) FastRead ¶
func (p *CommentServiceCommentListResult) FastRead(buf []byte) (int, error)
func (*CommentServiceCommentListResult) FastReadField0 ¶
func (p *CommentServiceCommentListResult) FastReadField0(buf []byte) (int, error)
func (*CommentServiceCommentListResult) FastWrite ¶
func (p *CommentServiceCommentListResult) FastWrite(buf []byte) int
for compatibility
func (*CommentServiceCommentListResult) FastWriteNocopy ¶
func (p *CommentServiceCommentListResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CommentServiceCommentListResult) Field0DeepEqual ¶
func (p *CommentServiceCommentListResult) Field0DeepEqual(src *ListResponse) bool
func (*CommentServiceCommentListResult) GetResult ¶
func (p *CommentServiceCommentListResult) GetResult() interface{}
func (*CommentServiceCommentListResult) GetSuccess ¶
func (p *CommentServiceCommentListResult) GetSuccess() (v *ListResponse)
func (*CommentServiceCommentListResult) InitDefault ¶
func (p *CommentServiceCommentListResult) InitDefault()
func (*CommentServiceCommentListResult) IsSetSuccess ¶
func (p *CommentServiceCommentListResult) IsSetSuccess() bool
func (*CommentServiceCommentListResult) Read ¶
func (p *CommentServiceCommentListResult) Read(iprot thrift.TProtocol) (err error)
func (*CommentServiceCommentListResult) ReadField0 ¶
func (p *CommentServiceCommentListResult) ReadField0(iprot thrift.TProtocol) error
func (*CommentServiceCommentListResult) SetSuccess ¶
func (p *CommentServiceCommentListResult) SetSuccess(x interface{})
func (*CommentServiceCommentListResult) String ¶
func (p *CommentServiceCommentListResult) 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
type ListRequest ¶
type ListRequest struct { Token string `thrift:"token,1,required" frugal:"1,required,string" json:"token"` VideoId int64 `thrift:"video_id,2,required" frugal:"2,required,i64" json:"video_id"` }
var CommentServiceCommentListArgs_Req_DEFAULT *ListRequest
func NewListRequest ¶
func NewListRequest() *ListRequest
func (*ListRequest) BLength ¶
func (p *ListRequest) BLength() int
func (*ListRequest) DeepEqual ¶
func (p *ListRequest) DeepEqual(ano *ListRequest) bool
func (*ListRequest) FastReadField1 ¶
func (p *ListRequest) FastReadField1(buf []byte) (int, error)
func (*ListRequest) FastReadField2 ¶
func (p *ListRequest) FastReadField2(buf []byte) (int, error)
func (*ListRequest) FastWriteNocopy ¶
func (p *ListRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ListRequest) Field1DeepEqual ¶
func (p *ListRequest) Field1DeepEqual(src string) bool
func (*ListRequest) Field2DeepEqual ¶
func (p *ListRequest) Field2DeepEqual(src int64) bool
func (*ListRequest) GetToken ¶
func (p *ListRequest) GetToken() (v string)
func (*ListRequest) GetVideoId ¶
func (p *ListRequest) GetVideoId() (v int64)
func (*ListRequest) InitDefault ¶
func (p *ListRequest) InitDefault()
func (*ListRequest) ReadField1 ¶
func (p *ListRequest) ReadField1(iprot thrift.TProtocol) error
func (*ListRequest) ReadField2 ¶
func (p *ListRequest) ReadField2(iprot thrift.TProtocol) error
func (*ListRequest) SetToken ¶
func (p *ListRequest) SetToken(val string)
func (*ListRequest) SetVideoId ¶
func (p *ListRequest) SetVideoId(val int64)
func (*ListRequest) String ¶
func (p *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { StatusCode int32 `thrift:"status_code,1,required" frugal:"1,required,i32" json:"status_code"` StatusMsg *string `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"` CommentList []*Comment `thrift:"comment_list,3,required" frugal:"3,required,list<Comment>" json:"comment_list"` }
var CommentServiceCommentListResult_Success_DEFAULT *ListResponse
func NewListResponse ¶
func NewListResponse() *ListResponse
func (*ListResponse) BLength ¶
func (p *ListResponse) BLength() int
func (*ListResponse) DeepEqual ¶
func (p *ListResponse) DeepEqual(ano *ListResponse) bool
func (*ListResponse) FastReadField1 ¶
func (p *ListResponse) FastReadField1(buf []byte) (int, error)
func (*ListResponse) FastReadField2 ¶
func (p *ListResponse) FastReadField2(buf []byte) (int, error)
func (*ListResponse) FastReadField3 ¶
func (p *ListResponse) FastReadField3(buf []byte) (int, error)
func (*ListResponse) FastWriteNocopy ¶
func (p *ListResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ListResponse) Field1DeepEqual ¶
func (p *ListResponse) Field1DeepEqual(src int32) bool
func (*ListResponse) Field2DeepEqual ¶
func (p *ListResponse) Field2DeepEqual(src *string) bool
func (*ListResponse) Field3DeepEqual ¶
func (p *ListResponse) Field3DeepEqual(src []*Comment) bool
func (*ListResponse) GetCommentList ¶
func (p *ListResponse) GetCommentList() (v []*Comment)
func (*ListResponse) GetStatusCode ¶
func (p *ListResponse) GetStatusCode() (v int32)
func (*ListResponse) GetStatusMsg ¶
func (p *ListResponse) GetStatusMsg() (v string)
func (*ListResponse) InitDefault ¶
func (p *ListResponse) InitDefault()
func (*ListResponse) IsSetStatusMsg ¶
func (p *ListResponse) IsSetStatusMsg() bool
func (*ListResponse) ReadField1 ¶
func (p *ListResponse) ReadField1(iprot thrift.TProtocol) error
func (*ListResponse) ReadField2 ¶
func (p *ListResponse) ReadField2(iprot thrift.TProtocol) error
func (*ListResponse) ReadField3 ¶
func (p *ListResponse) ReadField3(iprot thrift.TProtocol) error
func (*ListResponse) SetCommentList ¶
func (p *ListResponse) SetCommentList(val []*Comment)
func (*ListResponse) SetStatusCode ¶
func (p *ListResponse) SetStatusCode(val int32)
func (*ListResponse) SetStatusMsg ¶
func (p *ListResponse) SetStatusMsg(val *string)
func (*ListResponse) String ¶
func (p *ListResponse) String() string
Click to show internal directories.
Click to hide internal directories.