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: 8 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 KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

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" frugal:"1,optional,i64" json:"latest_time,omitempty"`
	Token      *string `thrift:"token,2,optional" frugal:"2,optional,string" json:"token,omitempty"`
}
var FeedServiceFeedArgs_Req_DEFAULT *FeedRequest

func NewFeedRequest

func NewFeedRequest() *FeedRequest

func (*FeedRequest) BLength

func (p *FeedRequest) BLength() int

func (*FeedRequest) DeepEqual

func (p *FeedRequest) DeepEqual(ano *FeedRequest) bool

func (*FeedRequest) FastRead

func (p *FeedRequest) FastRead(buf []byte) (int, error)

func (*FeedRequest) FastReadField1

func (p *FeedRequest) FastReadField1(buf []byte) (int, error)

func (*FeedRequest) FastReadField2

func (p *FeedRequest) FastReadField2(buf []byte) (int, error)

func (*FeedRequest) FastWrite

func (p *FeedRequest) FastWrite(buf []byte) int

for compatibility

func (*FeedRequest) FastWriteNocopy

func (p *FeedRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*FeedRequest) Field1DeepEqual

func (p *FeedRequest) Field1DeepEqual(src *int64) bool

func (*FeedRequest) Field2DeepEqual

func (p *FeedRequest) Field2DeepEqual(src *string) bool

func (*FeedRequest) GetLatestTime

func (p *FeedRequest) GetLatestTime() (v int64)

func (*FeedRequest) GetToken

func (p *FeedRequest) GetToken() (v string)

func (*FeedRequest) InitDefault

func (p *FeedRequest) InitDefault()

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

func (p *FeedRequest) SetLatestTime(val *int64)

func (*FeedRequest) SetToken

func (p *FeedRequest) SetToken(val *string)

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" frugal:"1,required,i32" json:"status_code"`
	StatusMsg  *string  `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"`
	VideoList  []*Video `thrift:"video_list,3,required" frugal:"3,required,list<Video>" json:"video_list"`
	NextTime   *int64   `thrift:"next_time,4,optional" frugal:"4,optional,i64" json:"next_time,omitempty"`
}
var FeedServiceFeedResult_Success_DEFAULT *FeedResponse

func NewFeedResponse

func NewFeedResponse() *FeedResponse

func (*FeedResponse) BLength

func (p *FeedResponse) BLength() int

func (*FeedResponse) DeepEqual

func (p *FeedResponse) DeepEqual(ano *FeedResponse) bool

func (*FeedResponse) FastRead

func (p *FeedResponse) FastRead(buf []byte) (int, error)

func (*FeedResponse) FastReadField1

func (p *FeedResponse) FastReadField1(buf []byte) (int, error)

func (*FeedResponse) FastReadField2

func (p *FeedResponse) FastReadField2(buf []byte) (int, error)

func (*FeedResponse) FastReadField3

func (p *FeedResponse) FastReadField3(buf []byte) (int, error)

func (*FeedResponse) FastReadField4

func (p *FeedResponse) FastReadField4(buf []byte) (int, error)

func (*FeedResponse) FastWrite

func (p *FeedResponse) FastWrite(buf []byte) int

for compatibility

func (*FeedResponse) FastWriteNocopy

func (p *FeedResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*FeedResponse) Field1DeepEqual

func (p *FeedResponse) Field1DeepEqual(src int32) bool

func (*FeedResponse) Field2DeepEqual

func (p *FeedResponse) Field2DeepEqual(src *string) bool

func (*FeedResponse) Field3DeepEqual

func (p *FeedResponse) Field3DeepEqual(src []*Video) bool

func (*FeedResponse) Field4DeepEqual

func (p *FeedResponse) Field4DeepEqual(src *int64) bool

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

func (p *FeedResponse) InitDefault()

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

func (p *FeedResponse) SetNextTime(val *int64)

func (*FeedResponse) SetStatusCode

func (p *FeedResponse) SetStatusCode(val int32)

func (*FeedResponse) SetStatusMsg

func (p *FeedResponse) SetStatusMsg(val *string)

func (*FeedResponse) SetVideoList

func (p *FeedResponse) SetVideoList(val []*Video)

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" frugal:"1,default,FeedRequest" json:"req"`
}

func NewFeedServiceFeedArgs

func NewFeedServiceFeedArgs() *FeedServiceFeedArgs

func (*FeedServiceFeedArgs) BLength

func (p *FeedServiceFeedArgs) BLength() int

func (*FeedServiceFeedArgs) DeepEqual

func (p *FeedServiceFeedArgs) DeepEqual(ano *FeedServiceFeedArgs) bool

func (*FeedServiceFeedArgs) FastRead

func (p *FeedServiceFeedArgs) FastRead(buf []byte) (int, error)

func (*FeedServiceFeedArgs) FastReadField1

func (p *FeedServiceFeedArgs) FastReadField1(buf []byte) (int, error)

func (*FeedServiceFeedArgs) FastWrite

func (p *FeedServiceFeedArgs) FastWrite(buf []byte) int

for compatibility

func (*FeedServiceFeedArgs) FastWriteNocopy

func (p *FeedServiceFeedArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*FeedServiceFeedArgs) Field1DeepEqual

func (p *FeedServiceFeedArgs) Field1DeepEqual(src *FeedRequest) bool

func (*FeedServiceFeedArgs) GetFirstArgument

func (p *FeedServiceFeedArgs) GetFirstArgument() interface{}

func (*FeedServiceFeedArgs) GetReq

func (p *FeedServiceFeedArgs) GetReq() (v *FeedRequest)

func (*FeedServiceFeedArgs) InitDefault

func (p *FeedServiceFeedArgs) InitDefault()

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

func (p *FeedServiceFeedArgs) SetReq(val *FeedRequest)

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" frugal:"0,optional,FeedResponse" json:"success,omitempty"`
}

func NewFeedServiceFeedResult

func NewFeedServiceFeedResult() *FeedServiceFeedResult

func (*FeedServiceFeedResult) BLength

func (p *FeedServiceFeedResult) BLength() int

func (*FeedServiceFeedResult) DeepEqual

func (*FeedServiceFeedResult) FastRead

func (p *FeedServiceFeedResult) FastRead(buf []byte) (int, error)

func (*FeedServiceFeedResult) FastReadField0

func (p *FeedServiceFeedResult) FastReadField0(buf []byte) (int, error)

func (*FeedServiceFeedResult) FastWrite

func (p *FeedServiceFeedResult) FastWrite(buf []byte) int

for compatibility

func (*FeedServiceFeedResult) FastWriteNocopy

func (p *FeedServiceFeedResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*FeedServiceFeedResult) Field0DeepEqual

func (p *FeedServiceFeedResult) Field0DeepEqual(src *FeedResponse) bool

func (*FeedServiceFeedResult) GetResult

func (p *FeedServiceFeedResult) GetResult() interface{}

func (*FeedServiceFeedResult) GetSuccess

func (p *FeedServiceFeedResult) GetSuccess() (v *FeedResponse)

func (*FeedServiceFeedResult) InitDefault

func (p *FeedServiceFeedResult) InitDefault()

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

func (p *FeedServiceFeedResult) SetSuccess(x interface{})

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" frugal:"1,required,i64" json:"id"`
	Author        *user.User `thrift:"author,2,required" frugal:"2,required,user.User" json:"author"`
	PlayUrl       string     `thrift:"play_url,3,required" frugal:"3,required,string" json:"play_url"`
	CoverUrl      string     `thrift:"cover_url,4,required" frugal:"4,required,string" json:"cover_url"`
	FavoriteCount int64      `thrift:"favorite_count,5,required" frugal:"5,required,i64" json:"favorite_count"`
	CommentCount  int64      `thrift:"comment_count,6,required" frugal:"6,required,i64" json:"comment_count"`
	IsFavorite    bool       `thrift:"is_favorite,7,required" frugal:"7,required,bool" json:"is_favorite"`
	Title         string     `thrift:"title,8,required" frugal:"8,required,string" json:"title"`
}

func NewVideo

func NewVideo() *Video

func (*Video) BLength

func (p *Video) BLength() int

func (*Video) DeepEqual

func (p *Video) DeepEqual(ano *Video) bool

func (*Video) FastRead

func (p *Video) FastRead(buf []byte) (int, error)

func (*Video) FastReadField1

func (p *Video) FastReadField1(buf []byte) (int, error)

func (*Video) FastReadField2

func (p *Video) FastReadField2(buf []byte) (int, error)

func (*Video) FastReadField3

func (p *Video) FastReadField3(buf []byte) (int, error)

func (*Video) FastReadField4

func (p *Video) FastReadField4(buf []byte) (int, error)

func (*Video) FastReadField5

func (p *Video) FastReadField5(buf []byte) (int, error)

func (*Video) FastReadField6

func (p *Video) FastReadField6(buf []byte) (int, error)

func (*Video) FastReadField7

func (p *Video) FastReadField7(buf []byte) (int, error)

func (*Video) FastReadField8

func (p *Video) FastReadField8(buf []byte) (int, error)

func (*Video) FastWrite

func (p *Video) FastWrite(buf []byte) int

for compatibility

func (*Video) FastWriteNocopy

func (p *Video) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*Video) Field1DeepEqual

func (p *Video) Field1DeepEqual(src int64) bool

func (*Video) Field2DeepEqual

func (p *Video) Field2DeepEqual(src *user.User) bool

func (*Video) Field3DeepEqual

func (p *Video) Field3DeepEqual(src string) bool

func (*Video) Field4DeepEqual

func (p *Video) Field4DeepEqual(src string) bool

func (*Video) Field5DeepEqual

func (p *Video) Field5DeepEqual(src int64) bool

func (*Video) Field6DeepEqual

func (p *Video) Field6DeepEqual(src int64) bool

func (*Video) Field7DeepEqual

func (p *Video) Field7DeepEqual(src bool) bool

func (*Video) Field8DeepEqual

func (p *Video) Field8DeepEqual(src string) bool

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

func (p *Video) InitDefault()

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

func (p *Video) SetAuthor(val *user.User)

func (*Video) SetCommentCount

func (p *Video) SetCommentCount(val int64)

func (*Video) SetCoverUrl

func (p *Video) SetCoverUrl(val string)

func (*Video) SetFavoriteCount

func (p *Video) SetFavoriteCount(val int64)

func (*Video) SetId

func (p *Video) SetId(val int64)

func (*Video) SetIsFavorite

func (p *Video) SetIsFavorite(val bool)

func (*Video) SetPlayUrl

func (p *Video) SetPlayUrl(val string)

func (*Video) SetTitle

func (p *Video) SetTitle(val string)

func (*Video) String

func (p *Video) String() string

func (*Video) Write

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

Directories

Path Synopsis
Code generated by Kitex v0.5.2.
Code generated by Kitex v0.5.2.

Jump to

Keyboard shortcuts

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