feed

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FeedRequest_LatestTime_DEFAULT int64
View Source
var FeedResponse_NextTime_DEFAULT int64
View Source
var KitexUnusedProtection = struct{}{}

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

Functions

This section is empty.

Types

type FeedRequest

type FeedRequest struct {
	LatestTime *int64 `thrift:"LatestTime,1,optional" frugal:"1,optional,i64" json:"LatestTime,omitempty"`
	UserViewId int64  `thrift:"UserViewId,2,required" frugal:"2,required,i64" json:"UserViewId"`
}
var FeedServiceGetFeedArgs_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 int64) bool

func (*FeedRequest) GetLatestTime

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

func (*FeedRequest) GetUserViewId added in v0.0.2

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

func (*FeedRequest) InitDefault

func (p *FeedRequest) InitDefault()

func (*FeedRequest) IsSetLatestTime

func (p *FeedRequest) IsSetLatestTime() 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) SetUserViewId added in v0.0.2

func (p *FeedRequest) SetUserViewId(val int64)

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 {
	VideoList []*rpcmodel.Video `thrift:"VideoList,1,required" frugal:"1,required,list<rpcmodel.Video>" json:"VideoList"`
	NextTime  *int64            `thrift:"NextTime,2,optional" frugal:"2,optional,i64" json:"NextTime,omitempty"`
}
var FeedServiceGetFeedResult_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) 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 []*rpcmodel.Video) bool

func (*FeedResponse) Field2DeepEqual

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

func (*FeedResponse) GetNextTime

func (p *FeedResponse) GetNextTime() (v int64)

func (*FeedResponse) GetVideoList

func (p *FeedResponse) GetVideoList() (v []*rpcmodel.Video)

func (*FeedResponse) InitDefault

func (p *FeedResponse) InitDefault()

func (*FeedResponse) IsSetNextTime

func (p *FeedResponse) IsSetNextTime() 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) SetNextTime

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

func (*FeedResponse) SetVideoList

func (p *FeedResponse) SetVideoList(val []*rpcmodel.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 {
	GetFeed(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) GetFeed

func (p *FeedServiceClient) GetFeed(ctx context.Context, req *FeedRequest) (r *FeedResponse, err error)

type FeedServiceGetFeedArgs

type FeedServiceGetFeedArgs struct {
	Req *FeedRequest `thrift:"req,1" frugal:"1,default,FeedRequest" json:"req"`
}

func NewFeedServiceGetFeedArgs

func NewFeedServiceGetFeedArgs() *FeedServiceGetFeedArgs

func (*FeedServiceGetFeedArgs) BLength

func (p *FeedServiceGetFeedArgs) BLength() int

func (*FeedServiceGetFeedArgs) DeepEqual

func (*FeedServiceGetFeedArgs) FastRead

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

func (*FeedServiceGetFeedArgs) FastReadField1

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

func (*FeedServiceGetFeedArgs) FastWrite

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

for compatibility

func (*FeedServiceGetFeedArgs) FastWriteNocopy

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

func (*FeedServiceGetFeedArgs) Field1DeepEqual

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

func (*FeedServiceGetFeedArgs) GetFirstArgument

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

func (*FeedServiceGetFeedArgs) GetReq

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

func (*FeedServiceGetFeedArgs) InitDefault

func (p *FeedServiceGetFeedArgs) InitDefault()

func (*FeedServiceGetFeedArgs) IsSetReq

func (p *FeedServiceGetFeedArgs) IsSetReq() bool

func (*FeedServiceGetFeedArgs) Read

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

func (*FeedServiceGetFeedArgs) ReadField1

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

func (*FeedServiceGetFeedArgs) SetReq

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

func (*FeedServiceGetFeedArgs) String

func (p *FeedServiceGetFeedArgs) String() string

func (*FeedServiceGetFeedArgs) Write

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

type FeedServiceGetFeedResult

type FeedServiceGetFeedResult struct {
	Success *FeedResponse `thrift:"success,0,optional" frugal:"0,optional,FeedResponse" json:"success,omitempty"`
}

func NewFeedServiceGetFeedResult

func NewFeedServiceGetFeedResult() *FeedServiceGetFeedResult

func (*FeedServiceGetFeedResult) BLength

func (p *FeedServiceGetFeedResult) BLength() int

func (*FeedServiceGetFeedResult) DeepEqual

func (*FeedServiceGetFeedResult) FastRead

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

func (*FeedServiceGetFeedResult) FastReadField0

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

func (*FeedServiceGetFeedResult) FastWrite

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

for compatibility

func (*FeedServiceGetFeedResult) FastWriteNocopy

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

func (*FeedServiceGetFeedResult) Field0DeepEqual

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

func (*FeedServiceGetFeedResult) GetResult

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

func (*FeedServiceGetFeedResult) GetSuccess

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

func (*FeedServiceGetFeedResult) InitDefault

func (p *FeedServiceGetFeedResult) InitDefault()

func (*FeedServiceGetFeedResult) IsSetSuccess

func (p *FeedServiceGetFeedResult) IsSetSuccess() bool

func (*FeedServiceGetFeedResult) Read

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

func (*FeedServiceGetFeedResult) ReadField0

func (p *FeedServiceGetFeedResult) ReadField0(iprot thrift.TProtocol) error

func (*FeedServiceGetFeedResult) SetSuccess

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

func (*FeedServiceGetFeedResult) String

func (p *FeedServiceGetFeedResult) String() string

func (*FeedServiceGetFeedResult) Write

func (p *FeedServiceGetFeedResult) 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

Directories

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

Jump to

Keyboard shortcuts

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