Documentation ¶
Index ¶
- Variables
- type ActionRequest
- func (p *ActionRequest) BLength() int
- func (p *ActionRequest) DeepEqual(ano *ActionRequest) bool
- func (p *ActionRequest) FastRead(buf []byte) (int, error)
- func (p *ActionRequest) FastReadField1(buf []byte) (int, error)
- func (p *ActionRequest) FastReadField2(buf []byte) (int, error)
- func (p *ActionRequest) FastReadField3(buf []byte) (int, error)
- func (p *ActionRequest) FastWrite(buf []byte) int
- func (p *ActionRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ActionRequest) Field1DeepEqual(src string) bool
- func (p *ActionRequest) Field2DeepEqual(src int64) bool
- func (p *ActionRequest) Field3DeepEqual(src int32) bool
- func (p *ActionRequest) GetActionType() (v int32)
- func (p *ActionRequest) GetToken() (v string)
- func (p *ActionRequest) GetVideoId() (v int64)
- func (p *ActionRequest) InitDefault()
- func (p *ActionRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *ActionRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *ActionRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *ActionRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *ActionRequest) SetActionType(val int32)
- func (p *ActionRequest) SetToken(val string)
- func (p *ActionRequest) SetVideoId(val int64)
- func (p *ActionRequest) String() string
- func (p *ActionRequest) Write(oprot thrift.TProtocol) (err error)
- type ActionResponse
- func (p *ActionResponse) BLength() int
- func (p *ActionResponse) DeepEqual(ano *ActionResponse) bool
- func (p *ActionResponse) FastRead(buf []byte) (int, error)
- func (p *ActionResponse) FastReadField1(buf []byte) (int, error)
- func (p *ActionResponse) FastReadField2(buf []byte) (int, error)
- func (p *ActionResponse) FastWrite(buf []byte) int
- func (p *ActionResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ActionResponse) Field1DeepEqual(src int32) bool
- func (p *ActionResponse) Field2DeepEqual(src *string) bool
- func (p *ActionResponse) GetStatusCode() (v int32)
- func (p *ActionResponse) GetStatusMsg() (v string)
- func (p *ActionResponse) InitDefault()
- func (p *ActionResponse) IsSetStatusMsg() bool
- func (p *ActionResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *ActionResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *ActionResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *ActionResponse) SetStatusCode(val int32)
- func (p *ActionResponse) SetStatusMsg(val *string)
- func (p *ActionResponse) String() string
- func (p *ActionResponse) Write(oprot thrift.TProtocol) (err error)
- type FavoriteService
- type FavoriteServiceClient
- func NewFavoriteServiceClient(c thrift.TClient) *FavoriteServiceClient
- func NewFavoriteServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *FavoriteServiceClient
- func NewFavoriteServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FavoriteServiceClient
- type FavoriteServiceFavoriteActionArgs
- func (p *FavoriteServiceFavoriteActionArgs) BLength() int
- func (p *FavoriteServiceFavoriteActionArgs) DeepEqual(ano *FavoriteServiceFavoriteActionArgs) bool
- func (p *FavoriteServiceFavoriteActionArgs) FastRead(buf []byte) (int, error)
- func (p *FavoriteServiceFavoriteActionArgs) FastReadField1(buf []byte) (int, error)
- func (p *FavoriteServiceFavoriteActionArgs) FastWrite(buf []byte) int
- func (p *FavoriteServiceFavoriteActionArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *FavoriteServiceFavoriteActionArgs) Field1DeepEqual(src *ActionRequest) bool
- func (p *FavoriteServiceFavoriteActionArgs) GetFirstArgument() interface{}
- func (p *FavoriteServiceFavoriteActionArgs) GetReq() (v *ActionRequest)
- func (p *FavoriteServiceFavoriteActionArgs) InitDefault()
- func (p *FavoriteServiceFavoriteActionArgs) IsSetReq() bool
- func (p *FavoriteServiceFavoriteActionArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteActionArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteActionArgs) SetReq(val *ActionRequest)
- func (p *FavoriteServiceFavoriteActionArgs) String() string
- func (p *FavoriteServiceFavoriteActionArgs) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteActionResult
- func (p *FavoriteServiceFavoriteActionResult) BLength() int
- func (p *FavoriteServiceFavoriteActionResult) DeepEqual(ano *FavoriteServiceFavoriteActionResult) bool
- func (p *FavoriteServiceFavoriteActionResult) FastRead(buf []byte) (int, error)
- func (p *FavoriteServiceFavoriteActionResult) FastReadField0(buf []byte) (int, error)
- func (p *FavoriteServiceFavoriteActionResult) FastWrite(buf []byte) int
- func (p *FavoriteServiceFavoriteActionResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *FavoriteServiceFavoriteActionResult) Field0DeepEqual(src *ActionResponse) bool
- func (p *FavoriteServiceFavoriteActionResult) GetResult() interface{}
- func (p *FavoriteServiceFavoriteActionResult) GetSuccess() (v *ActionResponse)
- func (p *FavoriteServiceFavoriteActionResult) InitDefault()
- func (p *FavoriteServiceFavoriteActionResult) IsSetSuccess() bool
- func (p *FavoriteServiceFavoriteActionResult) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteActionResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteActionResult) SetSuccess(x interface{})
- func (p *FavoriteServiceFavoriteActionResult) String() string
- func (p *FavoriteServiceFavoriteActionResult) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteListArgs
- func (p *FavoriteServiceFavoriteListArgs) BLength() int
- func (p *FavoriteServiceFavoriteListArgs) DeepEqual(ano *FavoriteServiceFavoriteListArgs) bool
- func (p *FavoriteServiceFavoriteListArgs) FastRead(buf []byte) (int, error)
- func (p *FavoriteServiceFavoriteListArgs) FastReadField1(buf []byte) (int, error)
- func (p *FavoriteServiceFavoriteListArgs) FastWrite(buf []byte) int
- func (p *FavoriteServiceFavoriteListArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *FavoriteServiceFavoriteListArgs) Field1DeepEqual(src *ListRequest) bool
- func (p *FavoriteServiceFavoriteListArgs) GetFirstArgument() interface{}
- func (p *FavoriteServiceFavoriteListArgs) GetReq() (v *ListRequest)
- func (p *FavoriteServiceFavoriteListArgs) InitDefault()
- func (p *FavoriteServiceFavoriteListArgs) IsSetReq() bool
- func (p *FavoriteServiceFavoriteListArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteListArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteListArgs) SetReq(val *ListRequest)
- func (p *FavoriteServiceFavoriteListArgs) String() string
- func (p *FavoriteServiceFavoriteListArgs) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceFavoriteListResult
- func (p *FavoriteServiceFavoriteListResult) BLength() int
- func (p *FavoriteServiceFavoriteListResult) DeepEqual(ano *FavoriteServiceFavoriteListResult) bool
- func (p *FavoriteServiceFavoriteListResult) FastRead(buf []byte) (int, error)
- func (p *FavoriteServiceFavoriteListResult) FastReadField0(buf []byte) (int, error)
- func (p *FavoriteServiceFavoriteListResult) FastWrite(buf []byte) int
- func (p *FavoriteServiceFavoriteListResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *FavoriteServiceFavoriteListResult) Field0DeepEqual(src *ListResponse) bool
- func (p *FavoriteServiceFavoriteListResult) GetResult() interface{}
- func (p *FavoriteServiceFavoriteListResult) GetSuccess() (v *ListResponse)
- func (p *FavoriteServiceFavoriteListResult) InitDefault()
- func (p *FavoriteServiceFavoriteListResult) IsSetSuccess() bool
- func (p *FavoriteServiceFavoriteListResult) Read(iprot thrift.TProtocol) (err error)
- func (p *FavoriteServiceFavoriteListResult) ReadField0(iprot thrift.TProtocol) error
- func (p *FavoriteServiceFavoriteListResult) SetSuccess(x interface{})
- func (p *FavoriteServiceFavoriteListResult) String() string
- func (p *FavoriteServiceFavoriteListResult) Write(oprot thrift.TProtocol) (err error)
- type FavoriteServiceProcessor
- func (p *FavoriteServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *FavoriteServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *FavoriteServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *FavoriteServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type ListRequest
- func (p *ListRequest) BLength() int
- func (p *ListRequest) DeepEqual(ano *ListRequest) bool
- func (p *ListRequest) FastRead(buf []byte) (int, error)
- func (p *ListRequest) FastReadField1(buf []byte) (int, error)
- func (p *ListRequest) FastReadField2(buf []byte) (int, error)
- func (p *ListRequest) FastWrite(buf []byte) int
- func (p *ListRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ListRequest) Field1DeepEqual(src int64) bool
- func (p *ListRequest) Field2DeepEqual(src string) bool
- func (p *ListRequest) GetToken() (v string)
- func (p *ListRequest) GetUserId() (v int64)
- func (p *ListRequest) InitDefault()
- func (p *ListRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *ListRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *ListRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *ListRequest) SetToken(val string)
- func (p *ListRequest) SetUserId(val int64)
- func (p *ListRequest) String() string
- func (p *ListRequest) Write(oprot thrift.TProtocol) (err error)
- type ListResponse
- func (p *ListResponse) BLength() int
- func (p *ListResponse) DeepEqual(ano *ListResponse) bool
- func (p *ListResponse) FastRead(buf []byte) (int, error)
- func (p *ListResponse) FastReadField1(buf []byte) (int, error)
- func (p *ListResponse) FastReadField2(buf []byte) (int, error)
- func (p *ListResponse) FastReadField3(buf []byte) (int, error)
- func (p *ListResponse) FastWrite(buf []byte) int
- func (p *ListResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *ListResponse) Field1DeepEqual(src int32) bool
- func (p *ListResponse) Field2DeepEqual(src *string) bool
- func (p *ListResponse) Field3DeepEqual(src []*feed.Video) bool
- func (p *ListResponse) GetStatusCode() (v int32)
- func (p *ListResponse) GetStatusMsg() (v string)
- func (p *ListResponse) GetVideoList() (v []*feed.Video)
- func (p *ListResponse) InitDefault()
- func (p *ListResponse) IsSetStatusMsg() bool
- func (p *ListResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *ListResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *ListResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *ListResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *ListResponse) SetStatusCode(val int32)
- func (p *ListResponse) SetStatusMsg(val *string)
- func (p *ListResponse) SetVideoList(val []*feed.Video)
- func (p *ListResponse) String() string
- func (p *ListResponse) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionResponse_StatusMsg_DEFAULT string
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
View Source
var ListResponse_StatusMsg_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type ActionRequest ¶
type ActionRequest struct { Token string `thrift:"token,1,required" frugal:"1,required,string" json:"token"` VideoId int64 `thrift:"video_id,2,required" frugal:"2,required,i64" json:"video_id"` ActionType int32 `thrift:"action_type,3,required" frugal:"3,required,i32" json:"action_type"` }
var FavoriteServiceFavoriteActionArgs_Req_DEFAULT *ActionRequest
func NewActionRequest ¶
func NewActionRequest() *ActionRequest
func (*ActionRequest) BLength ¶
func (p *ActionRequest) BLength() int
func (*ActionRequest) DeepEqual ¶
func (p *ActionRequest) DeepEqual(ano *ActionRequest) bool
func (*ActionRequest) FastReadField1 ¶
func (p *ActionRequest) FastReadField1(buf []byte) (int, error)
func (*ActionRequest) FastReadField2 ¶
func (p *ActionRequest) FastReadField2(buf []byte) (int, error)
func (*ActionRequest) FastReadField3 ¶
func (p *ActionRequest) FastReadField3(buf []byte) (int, error)
func (*ActionRequest) FastWrite ¶
func (p *ActionRequest) FastWrite(buf []byte) int
for compatibility
func (*ActionRequest) FastWriteNocopy ¶
func (p *ActionRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ActionRequest) Field1DeepEqual ¶
func (p *ActionRequest) Field1DeepEqual(src string) bool
func (*ActionRequest) Field2DeepEqual ¶
func (p *ActionRequest) Field2DeepEqual(src int64) bool
func (*ActionRequest) Field3DeepEqual ¶
func (p *ActionRequest) Field3DeepEqual(src int32) bool
func (*ActionRequest) GetActionType ¶
func (p *ActionRequest) GetActionType() (v int32)
func (*ActionRequest) GetToken ¶
func (p *ActionRequest) GetToken() (v string)
func (*ActionRequest) GetVideoId ¶
func (p *ActionRequest) GetVideoId() (v int64)
func (*ActionRequest) InitDefault ¶
func (p *ActionRequest) InitDefault()
func (*ActionRequest) ReadField1 ¶
func (p *ActionRequest) ReadField1(iprot thrift.TProtocol) error
func (*ActionRequest) ReadField2 ¶
func (p *ActionRequest) ReadField2(iprot thrift.TProtocol) error
func (*ActionRequest) ReadField3 ¶
func (p *ActionRequest) ReadField3(iprot thrift.TProtocol) error
func (*ActionRequest) SetActionType ¶
func (p *ActionRequest) SetActionType(val int32)
func (*ActionRequest) SetToken ¶
func (p *ActionRequest) SetToken(val string)
func (*ActionRequest) SetVideoId ¶
func (p *ActionRequest) SetVideoId(val int64)
func (*ActionRequest) String ¶
func (p *ActionRequest) String() string
type ActionResponse ¶
type ActionResponse 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"` }
var FavoriteServiceFavoriteActionResult_Success_DEFAULT *ActionResponse
func NewActionResponse ¶
func NewActionResponse() *ActionResponse
func (*ActionResponse) BLength ¶
func (p *ActionResponse) BLength() int
func (*ActionResponse) DeepEqual ¶
func (p *ActionResponse) DeepEqual(ano *ActionResponse) bool
func (*ActionResponse) FastReadField1 ¶
func (p *ActionResponse) FastReadField1(buf []byte) (int, error)
func (*ActionResponse) FastReadField2 ¶
func (p *ActionResponse) FastReadField2(buf []byte) (int, error)
func (*ActionResponse) FastWrite ¶
func (p *ActionResponse) FastWrite(buf []byte) int
for compatibility
func (*ActionResponse) FastWriteNocopy ¶
func (p *ActionResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ActionResponse) Field1DeepEqual ¶
func (p *ActionResponse) Field1DeepEqual(src int32) bool
func (*ActionResponse) Field2DeepEqual ¶
func (p *ActionResponse) Field2DeepEqual(src *string) bool
func (*ActionResponse) GetStatusCode ¶
func (p *ActionResponse) GetStatusCode() (v int32)
func (*ActionResponse) GetStatusMsg ¶
func (p *ActionResponse) GetStatusMsg() (v string)
func (*ActionResponse) InitDefault ¶
func (p *ActionResponse) InitDefault()
func (*ActionResponse) IsSetStatusMsg ¶
func (p *ActionResponse) IsSetStatusMsg() bool
func (*ActionResponse) ReadField1 ¶
func (p *ActionResponse) ReadField1(iprot thrift.TProtocol) error
func (*ActionResponse) ReadField2 ¶
func (p *ActionResponse) ReadField2(iprot thrift.TProtocol) error
func (*ActionResponse) SetStatusCode ¶
func (p *ActionResponse) SetStatusCode(val int32)
func (*ActionResponse) SetStatusMsg ¶
func (p *ActionResponse) SetStatusMsg(val *string)
func (*ActionResponse) String ¶
func (p *ActionResponse) String() string
type FavoriteService ¶
type FavoriteService interface { FavoriteAction(ctx context.Context, req *ActionRequest) (r *ActionResponse, err error) FavoriteList(ctx context.Context, req *ListRequest) (r *ListResponse, err error) }
type FavoriteServiceClient ¶
type FavoriteServiceClient struct {
// contains filtered or unexported fields
}
func NewFavoriteServiceClient ¶
func NewFavoriteServiceClient(c thrift.TClient) *FavoriteServiceClient
func NewFavoriteServiceClientFactory ¶
func NewFavoriteServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *FavoriteServiceClient
func NewFavoriteServiceClientProtocol ¶
func NewFavoriteServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *FavoriteServiceClient
func (*FavoriteServiceClient) Client_ ¶
func (p *FavoriteServiceClient) Client_() thrift.TClient
func (*FavoriteServiceClient) FavoriteAction ¶
func (p *FavoriteServiceClient) FavoriteAction(ctx context.Context, req *ActionRequest) (r *ActionResponse, err error)
func (*FavoriteServiceClient) FavoriteList ¶
func (p *FavoriteServiceClient) FavoriteList(ctx context.Context, req *ListRequest) (r *ListResponse, err error)
type FavoriteServiceFavoriteActionArgs ¶
type FavoriteServiceFavoriteActionArgs struct {
Req *ActionRequest `thrift:"req,1" frugal:"1,default,ActionRequest" json:"req"`
}
func NewFavoriteServiceFavoriteActionArgs ¶
func NewFavoriteServiceFavoriteActionArgs() *FavoriteServiceFavoriteActionArgs
func (*FavoriteServiceFavoriteActionArgs) BLength ¶
func (p *FavoriteServiceFavoriteActionArgs) BLength() int
func (*FavoriteServiceFavoriteActionArgs) DeepEqual ¶
func (p *FavoriteServiceFavoriteActionArgs) DeepEqual(ano *FavoriteServiceFavoriteActionArgs) bool
func (*FavoriteServiceFavoriteActionArgs) FastRead ¶
func (p *FavoriteServiceFavoriteActionArgs) FastRead(buf []byte) (int, error)
func (*FavoriteServiceFavoriteActionArgs) FastReadField1 ¶
func (p *FavoriteServiceFavoriteActionArgs) FastReadField1(buf []byte) (int, error)
func (*FavoriteServiceFavoriteActionArgs) FastWrite ¶
func (p *FavoriteServiceFavoriteActionArgs) FastWrite(buf []byte) int
for compatibility
func (*FavoriteServiceFavoriteActionArgs) FastWriteNocopy ¶
func (p *FavoriteServiceFavoriteActionArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*FavoriteServiceFavoriteActionArgs) Field1DeepEqual ¶
func (p *FavoriteServiceFavoriteActionArgs) Field1DeepEqual(src *ActionRequest) bool
func (*FavoriteServiceFavoriteActionArgs) GetFirstArgument ¶
func (p *FavoriteServiceFavoriteActionArgs) GetFirstArgument() interface{}
func (*FavoriteServiceFavoriteActionArgs) GetReq ¶
func (p *FavoriteServiceFavoriteActionArgs) GetReq() (v *ActionRequest)
func (*FavoriteServiceFavoriteActionArgs) InitDefault ¶
func (p *FavoriteServiceFavoriteActionArgs) InitDefault()
func (*FavoriteServiceFavoriteActionArgs) IsSetReq ¶
func (p *FavoriteServiceFavoriteActionArgs) IsSetReq() bool
func (*FavoriteServiceFavoriteActionArgs) Read ¶
func (p *FavoriteServiceFavoriteActionArgs) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteActionArgs) ReadField1 ¶
func (p *FavoriteServiceFavoriteActionArgs) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteActionArgs) SetReq ¶
func (p *FavoriteServiceFavoriteActionArgs) SetReq(val *ActionRequest)
func (*FavoriteServiceFavoriteActionArgs) String ¶
func (p *FavoriteServiceFavoriteActionArgs) String() string
type FavoriteServiceFavoriteActionResult ¶
type FavoriteServiceFavoriteActionResult struct {
Success *ActionResponse `thrift:"success,0,optional" frugal:"0,optional,ActionResponse" json:"success,omitempty"`
}
func NewFavoriteServiceFavoriteActionResult ¶
func NewFavoriteServiceFavoriteActionResult() *FavoriteServiceFavoriteActionResult
func (*FavoriteServiceFavoriteActionResult) BLength ¶
func (p *FavoriteServiceFavoriteActionResult) BLength() int
func (*FavoriteServiceFavoriteActionResult) DeepEqual ¶
func (p *FavoriteServiceFavoriteActionResult) DeepEqual(ano *FavoriteServiceFavoriteActionResult) bool
func (*FavoriteServiceFavoriteActionResult) FastRead ¶
func (p *FavoriteServiceFavoriteActionResult) FastRead(buf []byte) (int, error)
func (*FavoriteServiceFavoriteActionResult) FastReadField0 ¶
func (p *FavoriteServiceFavoriteActionResult) FastReadField0(buf []byte) (int, error)
func (*FavoriteServiceFavoriteActionResult) FastWrite ¶
func (p *FavoriteServiceFavoriteActionResult) FastWrite(buf []byte) int
for compatibility
func (*FavoriteServiceFavoriteActionResult) FastWriteNocopy ¶
func (p *FavoriteServiceFavoriteActionResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*FavoriteServiceFavoriteActionResult) Field0DeepEqual ¶
func (p *FavoriteServiceFavoriteActionResult) Field0DeepEqual(src *ActionResponse) bool
func (*FavoriteServiceFavoriteActionResult) GetResult ¶
func (p *FavoriteServiceFavoriteActionResult) GetResult() interface{}
func (*FavoriteServiceFavoriteActionResult) GetSuccess ¶
func (p *FavoriteServiceFavoriteActionResult) GetSuccess() (v *ActionResponse)
func (*FavoriteServiceFavoriteActionResult) InitDefault ¶
func (p *FavoriteServiceFavoriteActionResult) InitDefault()
func (*FavoriteServiceFavoriteActionResult) IsSetSuccess ¶
func (p *FavoriteServiceFavoriteActionResult) IsSetSuccess() bool
func (*FavoriteServiceFavoriteActionResult) Read ¶
func (p *FavoriteServiceFavoriteActionResult) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteActionResult) ReadField0 ¶
func (p *FavoriteServiceFavoriteActionResult) ReadField0(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteActionResult) SetSuccess ¶
func (p *FavoriteServiceFavoriteActionResult) SetSuccess(x interface{})
func (*FavoriteServiceFavoriteActionResult) String ¶
func (p *FavoriteServiceFavoriteActionResult) String() string
type FavoriteServiceFavoriteListArgs ¶
type FavoriteServiceFavoriteListArgs struct {
Req *ListRequest `thrift:"req,1" frugal:"1,default,ListRequest" json:"req"`
}
func NewFavoriteServiceFavoriteListArgs ¶
func NewFavoriteServiceFavoriteListArgs() *FavoriteServiceFavoriteListArgs
func (*FavoriteServiceFavoriteListArgs) BLength ¶
func (p *FavoriteServiceFavoriteListArgs) BLength() int
func (*FavoriteServiceFavoriteListArgs) DeepEqual ¶
func (p *FavoriteServiceFavoriteListArgs) DeepEqual(ano *FavoriteServiceFavoriteListArgs) bool
func (*FavoriteServiceFavoriteListArgs) FastRead ¶
func (p *FavoriteServiceFavoriteListArgs) FastRead(buf []byte) (int, error)
func (*FavoriteServiceFavoriteListArgs) FastReadField1 ¶
func (p *FavoriteServiceFavoriteListArgs) FastReadField1(buf []byte) (int, error)
func (*FavoriteServiceFavoriteListArgs) FastWrite ¶
func (p *FavoriteServiceFavoriteListArgs) FastWrite(buf []byte) int
for compatibility
func (*FavoriteServiceFavoriteListArgs) FastWriteNocopy ¶
func (p *FavoriteServiceFavoriteListArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*FavoriteServiceFavoriteListArgs) Field1DeepEqual ¶
func (p *FavoriteServiceFavoriteListArgs) Field1DeepEqual(src *ListRequest) bool
func (*FavoriteServiceFavoriteListArgs) GetFirstArgument ¶
func (p *FavoriteServiceFavoriteListArgs) GetFirstArgument() interface{}
func (*FavoriteServiceFavoriteListArgs) GetReq ¶
func (p *FavoriteServiceFavoriteListArgs) GetReq() (v *ListRequest)
func (*FavoriteServiceFavoriteListArgs) InitDefault ¶
func (p *FavoriteServiceFavoriteListArgs) InitDefault()
func (*FavoriteServiceFavoriteListArgs) IsSetReq ¶
func (p *FavoriteServiceFavoriteListArgs) IsSetReq() bool
func (*FavoriteServiceFavoriteListArgs) Read ¶
func (p *FavoriteServiceFavoriteListArgs) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteListArgs) ReadField1 ¶
func (p *FavoriteServiceFavoriteListArgs) ReadField1(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteListArgs) SetReq ¶
func (p *FavoriteServiceFavoriteListArgs) SetReq(val *ListRequest)
func (*FavoriteServiceFavoriteListArgs) String ¶
func (p *FavoriteServiceFavoriteListArgs) String() string
type FavoriteServiceFavoriteListResult ¶
type FavoriteServiceFavoriteListResult struct {
Success *ListResponse `thrift:"success,0,optional" frugal:"0,optional,ListResponse" json:"success,omitempty"`
}
func NewFavoriteServiceFavoriteListResult ¶
func NewFavoriteServiceFavoriteListResult() *FavoriteServiceFavoriteListResult
func (*FavoriteServiceFavoriteListResult) BLength ¶
func (p *FavoriteServiceFavoriteListResult) BLength() int
func (*FavoriteServiceFavoriteListResult) DeepEqual ¶
func (p *FavoriteServiceFavoriteListResult) DeepEqual(ano *FavoriteServiceFavoriteListResult) bool
func (*FavoriteServiceFavoriteListResult) FastRead ¶
func (p *FavoriteServiceFavoriteListResult) FastRead(buf []byte) (int, error)
func (*FavoriteServiceFavoriteListResult) FastReadField0 ¶
func (p *FavoriteServiceFavoriteListResult) FastReadField0(buf []byte) (int, error)
func (*FavoriteServiceFavoriteListResult) FastWrite ¶
func (p *FavoriteServiceFavoriteListResult) FastWrite(buf []byte) int
for compatibility
func (*FavoriteServiceFavoriteListResult) FastWriteNocopy ¶
func (p *FavoriteServiceFavoriteListResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*FavoriteServiceFavoriteListResult) Field0DeepEqual ¶
func (p *FavoriteServiceFavoriteListResult) Field0DeepEqual(src *ListResponse) bool
func (*FavoriteServiceFavoriteListResult) GetResult ¶
func (p *FavoriteServiceFavoriteListResult) GetResult() interface{}
func (*FavoriteServiceFavoriteListResult) GetSuccess ¶
func (p *FavoriteServiceFavoriteListResult) GetSuccess() (v *ListResponse)
func (*FavoriteServiceFavoriteListResult) InitDefault ¶
func (p *FavoriteServiceFavoriteListResult) InitDefault()
func (*FavoriteServiceFavoriteListResult) IsSetSuccess ¶
func (p *FavoriteServiceFavoriteListResult) IsSetSuccess() bool
func (*FavoriteServiceFavoriteListResult) Read ¶
func (p *FavoriteServiceFavoriteListResult) Read(iprot thrift.TProtocol) (err error)
func (*FavoriteServiceFavoriteListResult) ReadField0 ¶
func (p *FavoriteServiceFavoriteListResult) ReadField0(iprot thrift.TProtocol) error
func (*FavoriteServiceFavoriteListResult) SetSuccess ¶
func (p *FavoriteServiceFavoriteListResult) SetSuccess(x interface{})
func (*FavoriteServiceFavoriteListResult) String ¶
func (p *FavoriteServiceFavoriteListResult) String() string
type FavoriteServiceProcessor ¶
type FavoriteServiceProcessor struct {
// contains filtered or unexported fields
}
func NewFavoriteServiceProcessor ¶
func NewFavoriteServiceProcessor(handler FavoriteService) *FavoriteServiceProcessor
func (*FavoriteServiceProcessor) AddToProcessorMap ¶
func (p *FavoriteServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*FavoriteServiceProcessor) GetProcessorFunction ¶
func (p *FavoriteServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*FavoriteServiceProcessor) Process ¶
func (p *FavoriteServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*FavoriteServiceProcessor) ProcessorMap ¶
func (p *FavoriteServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type ListRequest ¶
type ListRequest struct { UserId int64 `thrift:"user_id,1,required" frugal:"1,required,i64" json:"user_id"` Token string `thrift:"token,2,required" frugal:"2,required,string" json:"token"` }
var FavoriteServiceFavoriteListArgs_Req_DEFAULT *ListRequest
func NewListRequest ¶
func NewListRequest() *ListRequest
func (*ListRequest) BLength ¶
func (p *ListRequest) BLength() int
func (*ListRequest) DeepEqual ¶
func (p *ListRequest) DeepEqual(ano *ListRequest) bool
func (*ListRequest) FastReadField1 ¶
func (p *ListRequest) FastReadField1(buf []byte) (int, error)
func (*ListRequest) FastReadField2 ¶
func (p *ListRequest) FastReadField2(buf []byte) (int, error)
func (*ListRequest) FastWriteNocopy ¶
func (p *ListRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ListRequest) Field1DeepEqual ¶
func (p *ListRequest) Field1DeepEqual(src int64) bool
func (*ListRequest) Field2DeepEqual ¶
func (p *ListRequest) Field2DeepEqual(src string) bool
func (*ListRequest) GetToken ¶
func (p *ListRequest) GetToken() (v string)
func (*ListRequest) GetUserId ¶
func (p *ListRequest) GetUserId() (v int64)
func (*ListRequest) InitDefault ¶
func (p *ListRequest) InitDefault()
func (*ListRequest) ReadField1 ¶
func (p *ListRequest) ReadField1(iprot thrift.TProtocol) error
func (*ListRequest) ReadField2 ¶
func (p *ListRequest) ReadField2(iprot thrift.TProtocol) error
func (*ListRequest) SetToken ¶
func (p *ListRequest) SetToken(val string)
func (*ListRequest) SetUserId ¶
func (p *ListRequest) SetUserId(val int64)
func (*ListRequest) String ¶
func (p *ListRequest) String() string
type ListResponse ¶
type ListResponse 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 []*feed.Video `thrift:"video_list,3,required" frugal:"3,required,list<feed.Video>" json:"video_list"` }
var FavoriteServiceFavoriteListResult_Success_DEFAULT *ListResponse
func NewListResponse ¶
func NewListResponse() *ListResponse
func (*ListResponse) BLength ¶
func (p *ListResponse) BLength() int
func (*ListResponse) DeepEqual ¶
func (p *ListResponse) DeepEqual(ano *ListResponse) bool
func (*ListResponse) FastReadField1 ¶
func (p *ListResponse) FastReadField1(buf []byte) (int, error)
func (*ListResponse) FastReadField2 ¶
func (p *ListResponse) FastReadField2(buf []byte) (int, error)
func (*ListResponse) FastReadField3 ¶
func (p *ListResponse) FastReadField3(buf []byte) (int, error)
func (*ListResponse) FastWriteNocopy ¶
func (p *ListResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*ListResponse) Field1DeepEqual ¶
func (p *ListResponse) Field1DeepEqual(src int32) bool
func (*ListResponse) Field2DeepEqual ¶
func (p *ListResponse) Field2DeepEqual(src *string) bool
func (*ListResponse) Field3DeepEqual ¶
func (p *ListResponse) Field3DeepEqual(src []*feed.Video) bool
func (*ListResponse) GetStatusCode ¶
func (p *ListResponse) GetStatusCode() (v int32)
func (*ListResponse) GetStatusMsg ¶
func (p *ListResponse) GetStatusMsg() (v string)
func (*ListResponse) GetVideoList ¶
func (p *ListResponse) GetVideoList() (v []*feed.Video)
func (*ListResponse) InitDefault ¶
func (p *ListResponse) InitDefault()
func (*ListResponse) IsSetStatusMsg ¶
func (p *ListResponse) IsSetStatusMsg() bool
func (*ListResponse) ReadField1 ¶
func (p *ListResponse) ReadField1(iprot thrift.TProtocol) error
func (*ListResponse) ReadField2 ¶
func (p *ListResponse) ReadField2(iprot thrift.TProtocol) error
func (*ListResponse) ReadField3 ¶
func (p *ListResponse) ReadField3(iprot thrift.TProtocol) error
func (*ListResponse) SetStatusCode ¶
func (p *ListResponse) SetStatusCode(val int32)
func (*ListResponse) SetStatusMsg ¶
func (p *ListResponse) SetStatusMsg(val *string)
func (*ListResponse) SetVideoList ¶
func (p *ListResponse) SetVideoList(val []*feed.Video)
func (*ListResponse) String ¶
func (p *ListResponse) String() string
Click to show internal directories.
Click to hide internal directories.