publish

package
v0.0.0-...-d63e0d4 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

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

View Source
var PublishActionResponse_StatusMsg_DEFAULT string
View Source
var PublishListResponse_StatusMsg_DEFAULT string
View Source
var User_Avatar_DEFAULT string
View Source
var User_BackgroundImage_DEFAULT string
View Source
var User_FavoriteCount_DEFAULT int64
View Source
var User_FollowCount_DEFAULT int64
View Source
var User_FollowerCount_DEFAULT int64
View Source
var User_Signature_DEFAULT string
View Source
var User_TotalFavorited_DEFAULT string
View Source
var User_WorkCount_DEFAULT int64

Functions

This section is empty.

Types

type PublishActionRequest

type PublishActionRequest struct {
	Token string `thrift:"token,1" frugal:"1,default,string" json:"token"`
	Data  []byte `thrift:"data,2" frugal:"2,default,binary" json:"data"`
	Title string `thrift:"title,3" frugal:"3,default,string" json:"title"`
}
var PublishServicePublishActionArgs_Req_DEFAULT *PublishActionRequest

func NewPublishActionRequest

func NewPublishActionRequest() *PublishActionRequest

func (*PublishActionRequest) BLength

func (p *PublishActionRequest) BLength() int

func (*PublishActionRequest) DeepEqual

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

func (*PublishActionRequest) FastRead

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

func (*PublishActionRequest) FastReadField1

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

func (*PublishActionRequest) FastReadField2

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

func (*PublishActionRequest) FastReadField3

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

func (*PublishActionRequest) FastWrite

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

for compatibility

func (*PublishActionRequest) FastWriteNocopy

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

func (*PublishActionRequest) Field1DeepEqual

func (p *PublishActionRequest) Field1DeepEqual(src string) bool

func (*PublishActionRequest) Field2DeepEqual

func (p *PublishActionRequest) Field2DeepEqual(src []byte) bool

func (*PublishActionRequest) Field3DeepEqual

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

func (*PublishActionRequest) GetData

func (p *PublishActionRequest) GetData() (v []byte)

func (*PublishActionRequest) GetTitle

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

func (*PublishActionRequest) GetToken

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

func (*PublishActionRequest) InitDefault

func (p *PublishActionRequest) InitDefault()

func (*PublishActionRequest) Read

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

func (*PublishActionRequest) ReadField1

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

func (*PublishActionRequest) ReadField2

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

func (*PublishActionRequest) ReadField3

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

func (*PublishActionRequest) SetData

func (p *PublishActionRequest) SetData(val []byte)

func (*PublishActionRequest) SetTitle

func (p *PublishActionRequest) SetTitle(val string)

func (*PublishActionRequest) SetToken

func (p *PublishActionRequest) SetToken(val string)

func (*PublishActionRequest) String

func (p *PublishActionRequest) String() string

func (*PublishActionRequest) Write

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

type PublishActionResponse

type PublishActionResponse struct {
	StatusCode int32   `thrift:"status_code,1" frugal:"1,default,i32" json:"status_code"`
	StatusMsg  *string `thrift:"status_msg,2,optional" frugal:"2,optional,string" json:"status_msg,omitempty"`
}
var PublishServicePublishActionResult_Success_DEFAULT *PublishActionResponse

func NewPublishActionResponse

func NewPublishActionResponse() *PublishActionResponse

func (*PublishActionResponse) BLength

func (p *PublishActionResponse) BLength() int

func (*PublishActionResponse) DeepEqual

func (*PublishActionResponse) FastRead

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

func (*PublishActionResponse) FastReadField1

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

func (*PublishActionResponse) FastReadField2

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

func (*PublishActionResponse) FastWrite

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

for compatibility

func (*PublishActionResponse) FastWriteNocopy

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

func (*PublishActionResponse) Field1DeepEqual

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

func (*PublishActionResponse) Field2DeepEqual

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

func (*PublishActionResponse) GetStatusCode

func (p *PublishActionResponse) GetStatusCode() (v int32)

func (*PublishActionResponse) GetStatusMsg

func (p *PublishActionResponse) GetStatusMsg() (v string)

func (*PublishActionResponse) InitDefault

func (p *PublishActionResponse) InitDefault()

func (*PublishActionResponse) IsSetStatusMsg

func (p *PublishActionResponse) IsSetStatusMsg() bool

func (*PublishActionResponse) Read

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

func (*PublishActionResponse) ReadField1

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

func (*PublishActionResponse) ReadField2

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

func (*PublishActionResponse) SetStatusCode

func (p *PublishActionResponse) SetStatusCode(val int32)

func (*PublishActionResponse) SetStatusMsg

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

func (*PublishActionResponse) String

func (p *PublishActionResponse) String() string

func (*PublishActionResponse) Write

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

type PublishListRequest

type PublishListRequest struct {
	UserId int64  `thrift:"user_id,1" frugal:"1,default,i64" json:"user_id"`
	Token  string `thrift:"token,2" frugal:"2,default,string" json:"token"`
}
var PublishServicePublishListArgs_Req_DEFAULT *PublishListRequest

func NewPublishListRequest

func NewPublishListRequest() *PublishListRequest

func (*PublishListRequest) BLength

func (p *PublishListRequest) BLength() int

func (*PublishListRequest) DeepEqual

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

func (*PublishListRequest) FastRead

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

func (*PublishListRequest) FastReadField1

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

func (*PublishListRequest) FastReadField2

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

func (*PublishListRequest) FastWrite

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

for compatibility

func (*PublishListRequest) FastWriteNocopy

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

func (*PublishListRequest) Field1DeepEqual

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

func (*PublishListRequest) Field2DeepEqual

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

func (*PublishListRequest) GetToken

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

func (*PublishListRequest) GetUserId

func (p *PublishListRequest) GetUserId() (v int64)

func (*PublishListRequest) InitDefault

func (p *PublishListRequest) InitDefault()

func (*PublishListRequest) Read

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

func (*PublishListRequest) ReadField1

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

func (*PublishListRequest) ReadField2

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

func (*PublishListRequest) SetToken

func (p *PublishListRequest) SetToken(val string)

func (*PublishListRequest) SetUserId

func (p *PublishListRequest) SetUserId(val int64)

func (*PublishListRequest) String

func (p *PublishListRequest) String() string

func (*PublishListRequest) Write

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

type PublishListResponse

type PublishListResponse struct {
	StatusCode int32    `thrift:"status_code,1" frugal:"1,default,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" frugal:"3,default,list<Video>" json:"video_list"`
}
var PublishServicePublishListResult_Success_DEFAULT *PublishListResponse

func NewPublishListResponse

func NewPublishListResponse() *PublishListResponse

func (*PublishListResponse) BLength

func (p *PublishListResponse) BLength() int

func (*PublishListResponse) DeepEqual

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

func (*PublishListResponse) FastRead

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

func (*PublishListResponse) FastReadField1

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

func (*PublishListResponse) FastReadField2

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

func (*PublishListResponse) FastReadField3

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

func (*PublishListResponse) FastWrite

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

for compatibility

func (*PublishListResponse) FastWriteNocopy

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

func (*PublishListResponse) Field1DeepEqual

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

func (*PublishListResponse) Field2DeepEqual

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

func (*PublishListResponse) Field3DeepEqual

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

func (*PublishListResponse) GetStatusCode

func (p *PublishListResponse) GetStatusCode() (v int32)

func (*PublishListResponse) GetStatusMsg

func (p *PublishListResponse) GetStatusMsg() (v string)

func (*PublishListResponse) GetVideoList

func (p *PublishListResponse) GetVideoList() (v []*Video)

func (*PublishListResponse) InitDefault

func (p *PublishListResponse) InitDefault()

func (*PublishListResponse) IsSetStatusMsg

func (p *PublishListResponse) IsSetStatusMsg() bool

func (*PublishListResponse) Read

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

func (*PublishListResponse) ReadField1

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

func (*PublishListResponse) ReadField2

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

func (*PublishListResponse) ReadField3

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

func (*PublishListResponse) SetStatusCode

func (p *PublishListResponse) SetStatusCode(val int32)

func (*PublishListResponse) SetStatusMsg

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

func (*PublishListResponse) SetVideoList

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

func (*PublishListResponse) String

func (p *PublishListResponse) String() string

func (*PublishListResponse) Write

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

type PublishService

type PublishService interface {
	PublishList(ctx context.Context, req *PublishListRequest) (r *PublishListResponse, err error)

	PublishAction(ctx context.Context, req *PublishActionRequest) (r *PublishActionResponse, err error)
}

type PublishServiceClient

type PublishServiceClient struct {
	// contains filtered or unexported fields
}

func NewPublishServiceClient

func NewPublishServiceClient(c thrift.TClient) *PublishServiceClient

func NewPublishServiceClientProtocol

func NewPublishServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *PublishServiceClient

func (*PublishServiceClient) Client_

func (p *PublishServiceClient) Client_() thrift.TClient

func (*PublishServiceClient) PublishAction

func (*PublishServiceClient) PublishList

type PublishServiceProcessor

type PublishServiceProcessor struct {
	// contains filtered or unexported fields
}

func NewPublishServiceProcessor

func NewPublishServiceProcessor(handler PublishService) *PublishServiceProcessor

func (*PublishServiceProcessor) AddToProcessorMap

func (p *PublishServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*PublishServiceProcessor) GetProcessorFunction

func (p *PublishServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*PublishServiceProcessor) Process

func (p *PublishServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*PublishServiceProcessor) ProcessorMap

type PublishServicePublishActionArgs

type PublishServicePublishActionArgs struct {
	Req *PublishActionRequest `thrift:"Req,1" frugal:"1,default,PublishActionRequest" json:"Req"`
}

func NewPublishServicePublishActionArgs

func NewPublishServicePublishActionArgs() *PublishServicePublishActionArgs

func (*PublishServicePublishActionArgs) BLength

func (p *PublishServicePublishActionArgs) BLength() int

func (*PublishServicePublishActionArgs) DeepEqual

func (*PublishServicePublishActionArgs) FastRead

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

func (*PublishServicePublishActionArgs) FastReadField1

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

func (*PublishServicePublishActionArgs) FastWrite

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

for compatibility

func (*PublishServicePublishActionArgs) FastWriteNocopy

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

func (*PublishServicePublishActionArgs) Field1DeepEqual

func (*PublishServicePublishActionArgs) GetFirstArgument

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

func (*PublishServicePublishActionArgs) GetReq

func (*PublishServicePublishActionArgs) InitDefault

func (p *PublishServicePublishActionArgs) InitDefault()

func (*PublishServicePublishActionArgs) IsSetReq

func (p *PublishServicePublishActionArgs) IsSetReq() bool

func (*PublishServicePublishActionArgs) Read

func (*PublishServicePublishActionArgs) ReadField1

func (*PublishServicePublishActionArgs) SetReq

func (*PublishServicePublishActionArgs) String

func (*PublishServicePublishActionArgs) Write

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

type PublishServicePublishActionResult

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

func NewPublishServicePublishActionResult

func NewPublishServicePublishActionResult() *PublishServicePublishActionResult

func (*PublishServicePublishActionResult) BLength

func (*PublishServicePublishActionResult) DeepEqual

func (*PublishServicePublishActionResult) FastRead

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

func (*PublishServicePublishActionResult) FastReadField0

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

func (*PublishServicePublishActionResult) FastWrite

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

for compatibility

func (*PublishServicePublishActionResult) FastWriteNocopy

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

func (*PublishServicePublishActionResult) Field0DeepEqual

func (*PublishServicePublishActionResult) GetResult

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

func (*PublishServicePublishActionResult) GetSuccess

func (*PublishServicePublishActionResult) InitDefault

func (p *PublishServicePublishActionResult) InitDefault()

func (*PublishServicePublishActionResult) IsSetSuccess

func (p *PublishServicePublishActionResult) IsSetSuccess() bool

func (*PublishServicePublishActionResult) Read

func (*PublishServicePublishActionResult) ReadField0

func (*PublishServicePublishActionResult) SetSuccess

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

func (*PublishServicePublishActionResult) String

func (*PublishServicePublishActionResult) Write

type PublishServicePublishListArgs

type PublishServicePublishListArgs struct {
	Req *PublishListRequest `thrift:"Req,1" frugal:"1,default,PublishListRequest" json:"Req"`
}

func NewPublishServicePublishListArgs

func NewPublishServicePublishListArgs() *PublishServicePublishListArgs

func (*PublishServicePublishListArgs) BLength

func (p *PublishServicePublishListArgs) BLength() int

func (*PublishServicePublishListArgs) DeepEqual

func (*PublishServicePublishListArgs) FastRead

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

func (*PublishServicePublishListArgs) FastReadField1

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

func (*PublishServicePublishListArgs) FastWrite

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

for compatibility

func (*PublishServicePublishListArgs) FastWriteNocopy

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

func (*PublishServicePublishListArgs) Field1DeepEqual

func (p *PublishServicePublishListArgs) Field1DeepEqual(src *PublishListRequest) bool

func (*PublishServicePublishListArgs) GetFirstArgument

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

func (*PublishServicePublishListArgs) GetReq

func (*PublishServicePublishListArgs) InitDefault

func (p *PublishServicePublishListArgs) InitDefault()

func (*PublishServicePublishListArgs) IsSetReq

func (p *PublishServicePublishListArgs) IsSetReq() bool

func (*PublishServicePublishListArgs) Read

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

func (*PublishServicePublishListArgs) ReadField1

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

func (*PublishServicePublishListArgs) SetReq

func (*PublishServicePublishListArgs) String

func (*PublishServicePublishListArgs) Write

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

type PublishServicePublishListResult

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

func NewPublishServicePublishListResult

func NewPublishServicePublishListResult() *PublishServicePublishListResult

func (*PublishServicePublishListResult) BLength

func (p *PublishServicePublishListResult) BLength() int

func (*PublishServicePublishListResult) DeepEqual

func (*PublishServicePublishListResult) FastRead

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

func (*PublishServicePublishListResult) FastReadField0

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

func (*PublishServicePublishListResult) FastWrite

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

for compatibility

func (*PublishServicePublishListResult) FastWriteNocopy

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

func (*PublishServicePublishListResult) Field0DeepEqual

func (p *PublishServicePublishListResult) Field0DeepEqual(src *PublishListResponse) bool

func (*PublishServicePublishListResult) GetResult

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

func (*PublishServicePublishListResult) GetSuccess

func (*PublishServicePublishListResult) InitDefault

func (p *PublishServicePublishListResult) InitDefault()

func (*PublishServicePublishListResult) IsSetSuccess

func (p *PublishServicePublishListResult) IsSetSuccess() bool

func (*PublishServicePublishListResult) Read

func (*PublishServicePublishListResult) ReadField0

func (*PublishServicePublishListResult) SetSuccess

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

func (*PublishServicePublishListResult) String

func (*PublishServicePublishListResult) Write

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

type User

type User struct {
	Id              int64   `thrift:"id,1" frugal:"1,default,i64" json:"id"`
	Name            string  `thrift:"name,2" frugal:"2,default,string" json:"name"`
	FollowCount     *int64  `thrift:"follow_count,3,optional" frugal:"3,optional,i64" json:"follow_count,omitempty"`
	FollowerCount   *int64  `thrift:"follower_count,4,optional" frugal:"4,optional,i64" json:"follower_count,omitempty"`
	IsFollow        bool    `thrift:"is_follow,5" frugal:"5,default,bool" json:"is_follow"`
	Avatar          *string `thrift:"avatar,6,optional" frugal:"6,optional,string" json:"avatar,omitempty"`
	BackgroundImage *string `thrift:"background_image,7,optional" frugal:"7,optional,string" json:"background_image,omitempty"`
	Signature       *string `thrift:"signature,8,optional" frugal:"8,optional,string" json:"signature,omitempty"`
	TotalFavorited  *string `thrift:"total_favorited,9,optional" frugal:"9,optional,string" json:"total_favorited,omitempty"`
	WorkCount       *int64  `thrift:"work_count,10,optional" frugal:"10,optional,i64" json:"work_count,omitempty"`
	FavoriteCount   *int64  `thrift:"favorite_count,11,optional" frugal:"11,optional,i64" json:"favorite_count,omitempty"`
}
var Video_Author_DEFAULT *User

func NewUser

func NewUser() *User

func (*User) BLength

func (p *User) BLength() int

func (*User) DeepEqual

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

func (*User) FastRead

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

func (*User) FastReadField1

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

func (*User) FastReadField10

func (p *User) FastReadField10(buf []byte) (int, error)

func (*User) FastReadField11

func (p *User) FastReadField11(buf []byte) (int, error)

func (*User) FastReadField2

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

func (*User) FastReadField3

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

func (*User) FastReadField4

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

func (*User) FastReadField5

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

func (*User) FastReadField6

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

func (*User) FastReadField7

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

func (*User) FastReadField8

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

func (*User) FastReadField9

func (p *User) FastReadField9(buf []byte) (int, error)

func (*User) FastWrite

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

for compatibility

func (*User) FastWriteNocopy

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

func (*User) Field10DeepEqual

func (p *User) Field10DeepEqual(src *int64) bool

func (*User) Field11DeepEqual

func (p *User) Field11DeepEqual(src *int64) bool

func (*User) Field1DeepEqual

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

func (*User) Field2DeepEqual

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

func (*User) Field3DeepEqual

func (p *User) Field3DeepEqual(src *int64) bool

func (*User) Field4DeepEqual

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

func (*User) Field5DeepEqual

func (p *User) Field5DeepEqual(src bool) bool

func (*User) Field6DeepEqual

func (p *User) Field6DeepEqual(src *string) bool

func (*User) Field7DeepEqual

func (p *User) Field7DeepEqual(src *string) bool

func (*User) Field8DeepEqual

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

func (*User) Field9DeepEqual

func (p *User) Field9DeepEqual(src *string) bool

func (*User) GetAvatar

func (p *User) GetAvatar() (v string)

func (*User) GetBackgroundImage

func (p *User) GetBackgroundImage() (v string)

func (*User) GetFavoriteCount

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

func (*User) GetFollowCount

func (p *User) GetFollowCount() (v int64)

func (*User) GetFollowerCount

func (p *User) GetFollowerCount() (v int64)

func (*User) GetId

func (p *User) GetId() (v int64)

func (*User) GetIsFollow

func (p *User) GetIsFollow() (v bool)

func (*User) GetName

func (p *User) GetName() (v string)

func (*User) GetSignature

func (p *User) GetSignature() (v string)

func (*User) GetTotalFavorited

func (p *User) GetTotalFavorited() (v string)

func (*User) GetWorkCount

func (p *User) GetWorkCount() (v int64)

func (*User) InitDefault

func (p *User) InitDefault()

func (*User) IsSetAvatar

func (p *User) IsSetAvatar() bool

func (*User) IsSetBackgroundImage

func (p *User) IsSetBackgroundImage() bool

func (*User) IsSetFavoriteCount

func (p *User) IsSetFavoriteCount() bool

func (*User) IsSetFollowCount

func (p *User) IsSetFollowCount() bool

func (*User) IsSetFollowerCount

func (p *User) IsSetFollowerCount() bool

func (*User) IsSetSignature

func (p *User) IsSetSignature() bool

func (*User) IsSetTotalFavorited

func (p *User) IsSetTotalFavorited() bool

func (*User) IsSetWorkCount

func (p *User) IsSetWorkCount() bool

func (*User) Read

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

func (*User) ReadField1

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

func (*User) ReadField10

func (p *User) ReadField10(iprot thrift.TProtocol) error

func (*User) ReadField11

func (p *User) ReadField11(iprot thrift.TProtocol) error

func (*User) ReadField2

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

func (*User) ReadField3

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

func (*User) ReadField4

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

func (*User) ReadField5

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

func (*User) ReadField6

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

func (*User) ReadField7

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

func (*User) ReadField8

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

func (*User) ReadField9

func (p *User) ReadField9(iprot thrift.TProtocol) error

func (*User) SetAvatar

func (p *User) SetAvatar(val *string)

func (*User) SetBackgroundImage

func (p *User) SetBackgroundImage(val *string)

func (*User) SetFavoriteCount

func (p *User) SetFavoriteCount(val *int64)

func (*User) SetFollowCount

func (p *User) SetFollowCount(val *int64)

func (*User) SetFollowerCount

func (p *User) SetFollowerCount(val *int64)

func (*User) SetId

func (p *User) SetId(val int64)

func (*User) SetIsFollow

func (p *User) SetIsFollow(val bool)

func (*User) SetName

func (p *User) SetName(val string)

func (*User) SetSignature

func (p *User) SetSignature(val *string)

func (*User) SetTotalFavorited

func (p *User) SetTotalFavorited(val *string)

func (*User) SetWorkCount

func (p *User) SetWorkCount(val *int64)

func (*User) String

func (p *User) String() string

func (*User) Write

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

type Video

type Video struct {
	Id            int64  `thrift:"id,1" frugal:"1,default,i64" json:"id"`
	Author        *User  `thrift:"author,2" frugal:"2,default,User" json:"author"`
	PlayUrl       string `thrift:"play_url,3" frugal:"3,default,string" json:"play_url"`
	CoverUrl      string `thrift:"cover_url,4" frugal:"4,default,string" json:"cover_url"`
	FavoriteCount int64  `thrift:"favorite_count,5" frugal:"5,default,i64" json:"favorite_count"`
	CommentCount  int64  `thrift:"comment_count,6" frugal:"6,default,i64" json:"comment_count"`
	IsFavorite    bool   `thrift:"is_favorite,7" frugal:"7,default,bool" json:"is_favorite"`
	Title         string `thrift:"title,8" frugal:"8,default,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) 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)

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)

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