Documentation ¶
Index ¶
- Variables
- type ActionRequest
- 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) 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) String() string
- func (p *ActionRequest) Write(oprot thrift.TProtocol) (err error)
- type ActionResponse
- func (p *ActionResponse) GetComment() (v *Comment)
- func (p *ActionResponse) GetStatusCode() (v int32)
- func (p *ActionResponse) GetStatusMsg() (v string)
- 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) String() string
- func (p *ActionResponse) Write(oprot thrift.TProtocol) (err error)
- type Comment
- 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) 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) 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) GetReq() (v *ActionRequest)
- 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) String() string
- func (p *CommentServiceCommentActionArgs) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceCommentActionResult
- func (p *CommentServiceCommentActionResult) GetSuccess() (v *ActionResponse)
- 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) String() string
- func (p *CommentServiceCommentActionResult) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceCommentListArgs
- func (p *CommentServiceCommentListArgs) GetReq() (v *ListRequest)
- 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) String() string
- func (p *CommentServiceCommentListArgs) Write(oprot thrift.TProtocol) (err error)
- type CommentServiceCommentListResult
- func (p *CommentServiceCommentListResult) GetSuccess() (v *ListResponse)
- 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) 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) GetToken() (v string)
- func (p *ListRequest) GetVideoID() (v int64)
- 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) String() string
- func (p *ListRequest) Write(oprot thrift.TProtocol) (err error)
- type ListResponse
- func (p *ListResponse) GetCommentList() (v []*Comment)
- func (p *ListResponse) GetStatusCode() (v int32)
- func (p *ListResponse) GetStatusMsg() (v string)
- 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) 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 ListResponse_StatusMsg_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type ActionRequest ¶
type ActionRequest struct { Token string `thrift:"token,1,required" form:"token,required" json:"token,required" query:"token,required"` VideoID int64 `thrift:"video_id,2,required" form:"video_id,required" json:"video_id,required" query:"video_id,required"` ActionType int32 `thrift:"action_type,3,required" form:"action_type,required" json:"action_type,required" query:"action_type,required"` CommentText *string `thrift:"comment_text,4,optional" form:"comment_text" json:"comment_text,omitempty" query:"comment_text"` CommentID *int64 `thrift:"comment_id,5,optional" form:"comment_id" json:"comment_id,omitempty" query:"comment_id"` }
var CommentServiceCommentActionArgs_Req_DEFAULT *ActionRequest
func NewActionRequest ¶
func NewActionRequest() *ActionRequest
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) 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) String ¶
func (p *ActionRequest) String() string
type ActionResponse ¶
type ActionResponse struct { StatusCode int32 `thrift:"status_code,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"` StatusMsg *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` Comment *Comment `thrift:"comment,3,optional" form:"comment" json:"comment,omitempty" query:"comment"` }
var CommentServiceCommentActionResult_Success_DEFAULT *ActionResponse
func NewActionResponse ¶
func NewActionResponse() *ActionResponse
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) 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) String ¶
func (p *ActionResponse) String() string
type Comment ¶
type Comment struct { ID int64 `thrift:"id,1,required" form:"id,required" json:"id,required" query:"id,required"` User *user.User `thrift:"user,2,required" form:"user,required" json:"user,required" query:"user,required"` Content string `thrift:"content,3,required" form:"content,required" json:"content,required" query:"content,required"` CreateDate string `thrift:"create_date,4,required" form:"create_date,required" json:"create_date,required" query:"create_date,required"` }
var ActionResponse_Comment_DEFAULT *Comment
func NewComment ¶
func NewComment() *Comment
func (*Comment) GetContent ¶
func (*Comment) GetCreateDate ¶
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"`
}
func NewCommentServiceCommentActionArgs ¶
func NewCommentServiceCommentActionArgs() *CommentServiceCommentActionArgs
func (*CommentServiceCommentActionArgs) GetReq ¶
func (p *CommentServiceCommentActionArgs) GetReq() (v *ActionRequest)
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) String ¶
func (p *CommentServiceCommentActionArgs) String() string
type CommentServiceCommentActionResult ¶
type CommentServiceCommentActionResult struct {
Success *ActionResponse `thrift:"success,0,optional"`
}
func NewCommentServiceCommentActionResult ¶
func NewCommentServiceCommentActionResult() *CommentServiceCommentActionResult
func (*CommentServiceCommentActionResult) GetSuccess ¶
func (p *CommentServiceCommentActionResult) GetSuccess() (v *ActionResponse)
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) String ¶
func (p *CommentServiceCommentActionResult) String() string
type CommentServiceCommentListArgs ¶
type CommentServiceCommentListArgs struct {
Req *ListRequest `thrift:"req,1"`
}
func NewCommentServiceCommentListArgs ¶
func NewCommentServiceCommentListArgs() *CommentServiceCommentListArgs
func (*CommentServiceCommentListArgs) GetReq ¶
func (p *CommentServiceCommentListArgs) GetReq() (v *ListRequest)
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) String ¶
func (p *CommentServiceCommentListArgs) String() string
type CommentServiceCommentListResult ¶
type CommentServiceCommentListResult struct {
Success *ListResponse `thrift:"success,0,optional"`
}
func NewCommentServiceCommentListResult ¶
func NewCommentServiceCommentListResult() *CommentServiceCommentListResult
func (*CommentServiceCommentListResult) GetSuccess ¶
func (p *CommentServiceCommentListResult) GetSuccess() (v *ListResponse)
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) 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" form:"token,required" json:"token,required" query:"token,required"` VideoID int64 `thrift:"video_id,2,required" form:"video_id,required" json:"video_id,required" query:"video_id,required"` }
var CommentServiceCommentListArgs_Req_DEFAULT *ListRequest
func NewListRequest ¶
func NewListRequest() *ListRequest
func (*ListRequest) GetToken ¶
func (p *ListRequest) GetToken() (v string)
func (*ListRequest) GetVideoID ¶
func (p *ListRequest) GetVideoID() (v int64)
func (*ListRequest) ReadField1 ¶
func (p *ListRequest) ReadField1(iprot thrift.TProtocol) error
func (*ListRequest) ReadField2 ¶
func (p *ListRequest) ReadField2(iprot thrift.TProtocol) error
func (*ListRequest) String ¶
func (p *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { StatusCode int32 `thrift:"status_code,1,required" form:"status_code,required" json:"status_code,required" query:"status_code,required"` StatusMsg *string `thrift:"status_msg,2,optional" form:"status_msg" json:"status_msg,omitempty" query:"status_msg"` CommentList []*Comment `thrift:"comment_list,3,required" form:"comment_list,required" json:"comment_list,required" query:"comment_list,required"` }
var CommentServiceCommentListResult_Success_DEFAULT *ListResponse
func NewListResponse ¶
func NewListResponse() *ListResponse
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) 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) String ¶
func (p *ListResponse) String() string
Click to show internal directories.
Click to hide internal directories.