Documentation ¶
Index ¶
- Variables
- type FeedRequest
- func (p *FeedRequest) BLength() int
- func (p *FeedRequest) DeepEqual(ano *FeedRequest) bool
- func (p *FeedRequest) FastRead(buf []byte) (int, error)
- func (p *FeedRequest) FastReadField1(buf []byte) (int, error)
- func (p *FeedRequest) FastReadField2(buf []byte) (int, error)
- func (p *FeedRequest) FastWrite(buf []byte) int
- func (p *FeedRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *FeedRequest) Field1DeepEqual(src *int64) bool
- func (p *FeedRequest) Field2DeepEqual(src int64) bool
- func (p *FeedRequest) GetLatestTime() (v int64)
- func (p *FeedRequest) GetUserViewId() (v int64)
- func (p *FeedRequest) InitDefault()
- func (p *FeedRequest) IsSetLatestTime() 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) SetLatestTime(val *int64)
- func (p *FeedRequest) SetUserViewId(val int64)
- func (p *FeedRequest) String() string
- func (p *FeedRequest) Write(oprot thrift.TProtocol) (err error)
- type FeedResponse
- func (p *FeedResponse) BLength() int
- func (p *FeedResponse) DeepEqual(ano *FeedResponse) bool
- func (p *FeedResponse) FastRead(buf []byte) (int, error)
- func (p *FeedResponse) FastReadField1(buf []byte) (int, error)
- func (p *FeedResponse) FastReadField2(buf []byte) (int, error)
- func (p *FeedResponse) FastWrite(buf []byte) int
- func (p *FeedResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *FeedResponse) Field1DeepEqual(src []*rpcmodel.Video) bool
- func (p *FeedResponse) Field2DeepEqual(src *int64) bool
- func (p *FeedResponse) GetNextTime() (v int64)
- func (p *FeedResponse) GetVideoList() (v []*rpcmodel.Video)
- func (p *FeedResponse) InitDefault()
- func (p *FeedResponse) IsSetNextTime() 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) SetNextTime(val *int64)
- func (p *FeedResponse) SetVideoList(val []*rpcmodel.Video)
- func (p *FeedResponse) String() string
- func (p *FeedResponse) Write(oprot thrift.TProtocol) (err error)
- type FeedService
- type FeedServiceClient
- type FeedServiceGetFeedArgs
- func (p *FeedServiceGetFeedArgs) BLength() int
- func (p *FeedServiceGetFeedArgs) DeepEqual(ano *FeedServiceGetFeedArgs) bool
- func (p *FeedServiceGetFeedArgs) FastRead(buf []byte) (int, error)
- func (p *FeedServiceGetFeedArgs) FastReadField1(buf []byte) (int, error)
- func (p *FeedServiceGetFeedArgs) FastWrite(buf []byte) int
- func (p *FeedServiceGetFeedArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *FeedServiceGetFeedArgs) Field1DeepEqual(src *FeedRequest) bool
- func (p *FeedServiceGetFeedArgs) GetFirstArgument() interface{}
- func (p *FeedServiceGetFeedArgs) GetReq() (v *FeedRequest)
- func (p *FeedServiceGetFeedArgs) InitDefault()
- func (p *FeedServiceGetFeedArgs) IsSetReq() bool
- func (p *FeedServiceGetFeedArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *FeedServiceGetFeedArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *FeedServiceGetFeedArgs) SetReq(val *FeedRequest)
- func (p *FeedServiceGetFeedArgs) String() string
- func (p *FeedServiceGetFeedArgs) Write(oprot thrift.TProtocol) (err error)
- type FeedServiceGetFeedResult
- func (p *FeedServiceGetFeedResult) BLength() int
- func (p *FeedServiceGetFeedResult) DeepEqual(ano *FeedServiceGetFeedResult) bool
- func (p *FeedServiceGetFeedResult) FastRead(buf []byte) (int, error)
- func (p *FeedServiceGetFeedResult) FastReadField0(buf []byte) (int, error)
- func (p *FeedServiceGetFeedResult) FastWrite(buf []byte) int
- func (p *FeedServiceGetFeedResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *FeedServiceGetFeedResult) Field0DeepEqual(src *FeedResponse) bool
- func (p *FeedServiceGetFeedResult) GetResult() interface{}
- func (p *FeedServiceGetFeedResult) GetSuccess() (v *FeedResponse)
- func (p *FeedServiceGetFeedResult) InitDefault()
- func (p *FeedServiceGetFeedResult) IsSetSuccess() bool
- func (p *FeedServiceGetFeedResult) Read(iprot thrift.TProtocol) (err error)
- func (p *FeedServiceGetFeedResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FeedServiceGetFeedResult) SetSuccess(x interface{})
- func (p *FeedServiceGetFeedResult) String() string
- func (p *FeedServiceGetFeedResult) 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
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) FastReadField1 ¶
func (p *FeedRequest) FastReadField1(buf []byte) (int, error)
func (*FeedRequest) FastReadField2 ¶
func (p *FeedRequest) FastReadField2(buf []byte) (int, error)
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) 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
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) FastReadField1 ¶
func (p *FeedResponse) FastReadField1(buf []byte) (int, error)
func (*FeedResponse) FastReadField2 ¶
func (p *FeedResponse) FastReadField2(buf []byte) (int, error)
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) 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
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 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) 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 (p *FeedServiceGetFeedArgs) DeepEqual(ano *FeedServiceGetFeedArgs) bool
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
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 (p *FeedServiceGetFeedResult) DeepEqual(ano *FeedServiceGetFeedResult) bool
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
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
Click to show internal directories.
Click to hide internal directories.