feed

package
v0.0.0-...-671c73a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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) Read

func (p *FeedRequest) Read(iprot thrift.TProtocol) (err error)

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

func (*FeedRequest) Write

func (p *FeedRequest) Write(oprot thrift.TProtocol) (err error)

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) Read

func (p *FeedResponse) Read(iprot thrift.TProtocol) (err error)

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

func (*FeedResponse) Write

func (p *FeedResponse) Write(oprot thrift.TProtocol) (err error)

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 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

func (*FeedServiceFeedArgs) Write

func (p *FeedServiceFeedArgs) Write(oprot thrift.TProtocol) (err error)

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

func (*FeedServiceFeedResult) Write

func (p *FeedServiceFeedResult) Write(oprot thrift.TProtocol) (err error)

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 NewVideo

func NewVideo() *Video

func (*Video) GetAuthor

func (p *Video) GetAuthor() (v *user.User)

func (*Video) GetCommentCount

func (p *Video) GetCommentCount() (v int64)

func (*Video) GetCoverURL

func (p *Video) GetCoverURL() (v string)

func (*Video) GetFavoriteCount

func (p *Video) GetFavoriteCount() (v int64)

func (*Video) GetID

func (p *Video) GetID() (v int64)

func (*Video) GetIsFavorite

func (p *Video) GetIsFavorite() (v bool)

func (*Video) GetPlayURL

func (p *Video) GetPlayURL() (v string)

func (*Video) GetTitle

func (p *Video) GetTitle() (v string)

func (*Video) IsSetAuthor

func (p *Video) IsSetAuthor() bool

func (*Video) Read

func (p *Video) Read(iprot thrift.TProtocol) (err error)

func (*Video) ReadField1

func (p *Video) ReadField1(iprot thrift.TProtocol) error

func (*Video) ReadField2

func (p *Video) ReadField2(iprot thrift.TProtocol) error

func (*Video) ReadField3

func (p *Video) ReadField3(iprot thrift.TProtocol) error

func (*Video) ReadField4

func (p *Video) ReadField4(iprot thrift.TProtocol) error

func (*Video) ReadField5

func (p *Video) ReadField5(iprot thrift.TProtocol) error

func (*Video) ReadField6

func (p *Video) ReadField6(iprot thrift.TProtocol) error

func (*Video) ReadField7

func (p *Video) ReadField7(iprot thrift.TProtocol) error

func (*Video) ReadField8

func (p *Video) ReadField8(iprot thrift.TProtocol) error

func (*Video) String

func (p *Video) String() string

func (*Video) Write

func (p *Video) Write(oprot thrift.TProtocol) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL