Documentation ¶
Index ¶
- Variables
- type FeedRequest
- func (p *FeedRequest) GetLatestTime() (v int64)
- func (p *FeedRequest) GetToken() (v string)
- func (p *FeedRequest) IsSetLatestTime() bool
- func (p *FeedRequest) IsSetToken() bool
- func (p *FeedRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *FeedRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *FeedRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *FeedRequest) String() string
- func (p *FeedRequest) Write(oprot thrift.TProtocol) (err error)
- type FeedResponse
- func (p *FeedResponse) GetNextTime() (v int64)
- func (p *FeedResponse) GetStatusCode() (v int32)
- func (p *FeedResponse) GetStatusMsg() (v string)
- func (p *FeedResponse) GetVideoList() (v []*Video)
- func (p *FeedResponse) IsSetNextTime() bool
- func (p *FeedResponse) IsSetStatusMsg() bool
- func (p *FeedResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *FeedResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *FeedResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *FeedResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *FeedResponse) ReadField4(iprot thrift.TProtocol) error
- func (p *FeedResponse) String() string
- func (p *FeedResponse) Write(oprot thrift.TProtocol) (err error)
- type FeedService
- type FeedServiceClient
- type FeedServiceFeedArgs
- func (p *FeedServiceFeedArgs) GetReq() (v *FeedRequest)
- func (p *FeedServiceFeedArgs) IsSetReq() bool
- func (p *FeedServiceFeedArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *FeedServiceFeedArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *FeedServiceFeedArgs) String() string
- func (p *FeedServiceFeedArgs) Write(oprot thrift.TProtocol) (err error)
- type FeedServiceFeedResult
- func (p *FeedServiceFeedResult) GetSuccess() (v *FeedResponse)
- func (p *FeedServiceFeedResult) IsSetSuccess() bool
- func (p *FeedServiceFeedResult) Read(iprot thrift.TProtocol) (err error)
- func (p *FeedServiceFeedResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FeedServiceFeedResult) String() string
- func (p *FeedServiceFeedResult) Write(oprot thrift.TProtocol) (err error)
- type FeedServiceProcessor
- func (p *FeedServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *FeedServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *FeedServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *FeedServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Video
- func (p *Video) GetAuthor() (v *user.User)
- func (p *Video) GetCommentCount() (v int64)
- func (p *Video) GetCoverURL() (v string)
- func (p *Video) GetFavoriteCount() (v int64)
- func (p *Video) GetID() (v int64)
- func (p *Video) GetIsFavorite() (v bool)
- func (p *Video) GetPlayURL() (v string)
- func (p *Video) GetTitle() (v string)
- func (p *Video) IsSetAuthor() bool
- func (p *Video) Read(iprot thrift.TProtocol) (err error)
- func (p *Video) ReadField1(iprot thrift.TProtocol) error
- func (p *Video) ReadField2(iprot thrift.TProtocol) error
- func (p *Video) ReadField3(iprot thrift.TProtocol) error
- func (p *Video) ReadField4(iprot thrift.TProtocol) error
- func (p *Video) ReadField5(iprot thrift.TProtocol) error
- func (p *Video) ReadField6(iprot thrift.TProtocol) error
- func (p *Video) ReadField7(iprot thrift.TProtocol) error
- func (p *Video) ReadField8(iprot thrift.TProtocol) error
- func (p *Video) String() string
- func (p *Video) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var FeedRequest_LatestTime_DEFAULT int64
View Source
var FeedRequest_Token_DEFAULT string
View Source
var FeedResponse_NextTime_DEFAULT int64
View Source
var FeedResponse_StatusMsg_DEFAULT string
View Source
var Video_Author_DEFAULT *user.User
Functions ¶
This section is empty.
Types ¶
type FeedRequest ¶
type FeedRequest struct { LatestTime *int64 `thrift:"latest_time,1,optional" form:"latest_time" json:"latest_time,omitempty" query:"latest_time"` Token *string `thrift:"token,2,optional" form:"token" json:"token,omitempty" query:"token"` }
视频流HTTP请求体
var FeedServiceFeedArgs_Req_DEFAULT *FeedRequest
func NewFeedRequest ¶
func NewFeedRequest() *FeedRequest
func (*FeedRequest) GetLatestTime ¶
func (p *FeedRequest) GetLatestTime() (v int64)
func (*FeedRequest) GetToken ¶
func (p *FeedRequest) GetToken() (v string)
func (*FeedRequest) IsSetLatestTime ¶
func (p *FeedRequest) IsSetLatestTime() bool
func (*FeedRequest) IsSetToken ¶
func (p *FeedRequest) IsSetToken() bool
func (*FeedRequest) ReadField1 ¶
func (p *FeedRequest) ReadField1(iprot thrift.TProtocol) error
func (*FeedRequest) ReadField2 ¶
func (p *FeedRequest) ReadField2(iprot thrift.TProtocol) error
func (*FeedRequest) String ¶
func (p *FeedRequest) String() string
type FeedResponse ¶
type FeedResponse 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"` VideoList []*Video `thrift:"video_list,3,required" form:"video_list,required" json:"video_list,required" query:"video_list,required"` NextTime *int64 `thrift:"next_time,4,optional" form:"next_time" json:"next_time,omitempty" query:"next_time"` }
视频流HTTP响应体
var FeedServiceFeedResult_Success_DEFAULT *FeedResponse
func NewFeedResponse ¶
func NewFeedResponse() *FeedResponse
func (*FeedResponse) GetNextTime ¶
func (p *FeedResponse) GetNextTime() (v int64)
func (*FeedResponse) GetStatusCode ¶
func (p *FeedResponse) GetStatusCode() (v int32)
func (*FeedResponse) GetStatusMsg ¶
func (p *FeedResponse) GetStatusMsg() (v string)
func (*FeedResponse) GetVideoList ¶
func (p *FeedResponse) GetVideoList() (v []*Video)
func (*FeedResponse) IsSetNextTime ¶
func (p *FeedResponse) IsSetNextTime() bool
func (*FeedResponse) IsSetStatusMsg ¶
func (p *FeedResponse) IsSetStatusMsg() bool
func (*FeedResponse) ReadField1 ¶
func (p *FeedResponse) ReadField1(iprot thrift.TProtocol) error
func (*FeedResponse) ReadField2 ¶
func (p *FeedResponse) ReadField2(iprot thrift.TProtocol) error
func (*FeedResponse) ReadField3 ¶
func (p *FeedResponse) ReadField3(iprot thrift.TProtocol) error
func (*FeedResponse) ReadField4 ¶
func (p *FeedResponse) ReadField4(iprot thrift.TProtocol) error
func (*FeedResponse) String ¶
func (p *FeedResponse) String() string
type FeedService ¶
type FeedService interface {
Feed(ctx context.Context, req *FeedRequest) (r *FeedResponse, err error)
}
type FeedServiceClient ¶
type FeedServiceClient struct {
// contains filtered or unexported fields
}
func NewFeedServiceClient ¶
func NewFeedServiceClient(c thrift.TClient) *FeedServiceClient
func NewFeedServiceClientFactory ¶
func NewFeedServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *FeedServiceClient
func NewFeedServiceClientProtocol ¶
func NewFeedServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FeedServiceClient
func (*FeedServiceClient) Client_ ¶
func (p *FeedServiceClient) Client_() thrift.TClient
func (*FeedServiceClient) Feed ¶
func (p *FeedServiceClient) Feed(ctx context.Context, req *FeedRequest) (r *FeedResponse, err error)
type FeedServiceFeedArgs ¶
type FeedServiceFeedArgs struct {
Req *FeedRequest `thrift:"req,1"`
}
func NewFeedServiceFeedArgs ¶
func NewFeedServiceFeedArgs() *FeedServiceFeedArgs
func (*FeedServiceFeedArgs) GetReq ¶
func (p *FeedServiceFeedArgs) GetReq() (v *FeedRequest)
func (*FeedServiceFeedArgs) IsSetReq ¶
func (p *FeedServiceFeedArgs) IsSetReq() bool
func (*FeedServiceFeedArgs) Read ¶
func (p *FeedServiceFeedArgs) Read(iprot thrift.TProtocol) (err error)
func (*FeedServiceFeedArgs) ReadField1 ¶
func (p *FeedServiceFeedArgs) ReadField1(iprot thrift.TProtocol) error
func (*FeedServiceFeedArgs) String ¶
func (p *FeedServiceFeedArgs) String() string
type FeedServiceFeedResult ¶
type FeedServiceFeedResult struct {
Success *FeedResponse `thrift:"success,0,optional"`
}
func NewFeedServiceFeedResult ¶
func NewFeedServiceFeedResult() *FeedServiceFeedResult
func (*FeedServiceFeedResult) GetSuccess ¶
func (p *FeedServiceFeedResult) GetSuccess() (v *FeedResponse)
func (*FeedServiceFeedResult) IsSetSuccess ¶
func (p *FeedServiceFeedResult) IsSetSuccess() bool
func (*FeedServiceFeedResult) Read ¶
func (p *FeedServiceFeedResult) Read(iprot thrift.TProtocol) (err error)
func (*FeedServiceFeedResult) ReadField0 ¶
func (p *FeedServiceFeedResult) ReadField0(iprot thrift.TProtocol) error
func (*FeedServiceFeedResult) String ¶
func (p *FeedServiceFeedResult) String() string
type FeedServiceProcessor ¶
type FeedServiceProcessor struct {
// contains filtered or unexported fields
}
func NewFeedServiceProcessor ¶
func NewFeedServiceProcessor(handler FeedService) *FeedServiceProcessor
func (*FeedServiceProcessor) AddToProcessorMap ¶
func (p *FeedServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*FeedServiceProcessor) GetProcessorFunction ¶
func (p *FeedServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*FeedServiceProcessor) Process ¶
func (p *FeedServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*FeedServiceProcessor) ProcessorMap ¶
func (p *FeedServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type Video ¶
type Video struct { ID int64 `thrift:"id,1,required" form:"id,required" json:"id,required" query:"id,required"` Author *user.User `thrift:"author,2,required" form:"author,required" json:"author,required" query:"author,required"` PlayURL string `thrift:"play_url,3,required" form:"play_url,required" json:"play_url,required" query:"play_url,required"` CoverURL string `thrift:"cover_url,4,required" form:"cover_url,required" json:"cover_url,required" query:"cover_url,required"` FavoriteCount int64 `` /* 128-byte string literal not displayed */ CommentCount int64 `thrift:"comment_count,6,required" form:"comment_count,required" json:"comment_count,required" query:"comment_count,required"` IsFavorite bool `thrift:"is_favorite,7,required" form:"is_favorite,required" json:"is_favorite,required" query:"is_favorite,required"` Title string `thrift:"title,8,required" form:"title,required" json:"title,required" query:"title,required"` }
视频信息
func (*Video) GetCommentCount ¶
func (*Video) GetCoverURL ¶
func (*Video) GetFavoriteCount ¶
func (*Video) GetIsFavorite ¶
func (*Video) GetPlayURL ¶
func (*Video) IsSetAuthor ¶
Click to show internal directories.
Click to hide internal directories.