Documentation ¶
Index ¶
- Variables
- type Comment
- func (p *Comment) BLength() int
- func (p *Comment) DeepEqual(ano *Comment) bool
- func (p *Comment) FastRead(buf []byte) (int, error)
- func (p *Comment) FastReadField1(buf []byte) (int, error)
- func (p *Comment) FastReadField2(buf []byte) (int, error)
- func (p *Comment) FastReadField3(buf []byte) (int, error)
- func (p *Comment) FastReadField4(buf []byte) (int, error)
- func (p *Comment) FastWrite(buf []byte) int
- func (p *Comment) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Comment) Field1DeepEqual(src int64) bool
- func (p *Comment) Field2DeepEqual(src *User) bool
- func (p *Comment) Field3DeepEqual(src string) bool
- func (p *Comment) Field4DeepEqual(src string) bool
- func (p *Comment) GetContent() (v string)
- func (p *Comment) GetCreateDate() (v string)
- func (p *Comment) GetId() (v int64)
- func (p *Comment) GetUser() (v *User)
- func (p *Comment) InitDefault()
- func (p *Comment) IsSetUser() bool
- func (p *Comment) Read(iprot thrift.TProtocol) (err error)
- func (p *Comment) ReadField1(iprot thrift.TProtocol) error
- func (p *Comment) ReadField2(iprot thrift.TProtocol) error
- func (p *Comment) ReadField3(iprot thrift.TProtocol) error
- func (p *Comment) ReadField4(iprot thrift.TProtocol) error
- func (p *Comment) SetContent(val string)
- func (p *Comment) SetCreateDate(val string)
- func (p *Comment) SetId(val int64)
- func (p *Comment) SetUser(val *User)
- func (p *Comment) String() string
- func (p *Comment) Write(oprot thrift.TProtocol) (err error)
- type User
- func (p *User) BLength() int
- func (p *User) DeepEqual(ano *User) bool
- func (p *User) FastRead(buf []byte) (int, error)
- func (p *User) FastReadField1(buf []byte) (int, error)
- func (p *User) FastReadField2(buf []byte) (int, error)
- func (p *User) FastReadField3(buf []byte) (int, error)
- func (p *User) FastReadField4(buf []byte) (int, error)
- func (p *User) FastReadField5(buf []byte) (int, error)
- func (p *User) FastWrite(buf []byte) int
- func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *User) Field1DeepEqual(src int64) bool
- func (p *User) Field2DeepEqual(src string) bool
- func (p *User) Field3DeepEqual(src int64) bool
- func (p *User) Field4DeepEqual(src int64) bool
- func (p *User) Field5DeepEqual(src bool) bool
- func (p *User) GetFollowCount() (v int64)
- func (p *User) GetFollowerCount() (v int64)
- func (p *User) GetId() (v int64)
- func (p *User) GetIsFollow() (v bool)
- func (p *User) GetName() (v string)
- func (p *User) InitDefault()
- func (p *User) Read(iprot thrift.TProtocol) (err error)
- func (p *User) ReadField1(iprot thrift.TProtocol) error
- func (p *User) ReadField2(iprot thrift.TProtocol) error
- func (p *User) ReadField3(iprot thrift.TProtocol) error
- func (p *User) ReadField4(iprot thrift.TProtocol) error
- func (p *User) ReadField5(iprot thrift.TProtocol) error
- func (p *User) SetFollowCount(val int64)
- func (p *User) SetFollowerCount(val int64)
- func (p *User) SetId(val int64)
- func (p *User) SetIsFollow(val bool)
- func (p *User) SetName(val string)
- func (p *User) String() string
- func (p *User) Write(oprot thrift.TProtocol) (err error)
- type Video
- func (p *Video) BLength() int
- func (p *Video) DeepEqual(ano *Video) bool
- func (p *Video) FastRead(buf []byte) (int, error)
- func (p *Video) FastReadField1(buf []byte) (int, error)
- func (p *Video) FastReadField2(buf []byte) (int, error)
- func (p *Video) FastReadField3(buf []byte) (int, error)
- func (p *Video) FastReadField4(buf []byte) (int, error)
- func (p *Video) FastReadField5(buf []byte) (int, error)
- func (p *Video) FastReadField6(buf []byte) (int, error)
- func (p *Video) FastReadField7(buf []byte) (int, error)
- func (p *Video) FastReadField8(buf []byte) (int, error)
- func (p *Video) FastWrite(buf []byte) int
- func (p *Video) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *Video) Field1DeepEqual(src int64) bool
- func (p *Video) Field2DeepEqual(src *User) bool
- func (p *Video) Field3DeepEqual(src string) bool
- func (p *Video) Field4DeepEqual(src string) bool
- func (p *Video) Field5DeepEqual(src int64) bool
- func (p *Video) Field6DeepEqual(src int64) bool
- func (p *Video) Field7DeepEqual(src bool) bool
- func (p *Video) Field8DeepEqual(src string) bool
- func (p *Video) GetAuthor() (v *User)
- func (p *Video) GetCommentCount() (v int64)
- func (p *Video) GetCoverUrl() (v string)
- func (p *Video) GetFavoriteCount() (v int64)
- func (p *Video) GetId() (v int64)
- func (p *Video) GetIsFavorite() (v bool)
- func (p *Video) GetPlayUrl() (v string)
- func (p *Video) GetTitle() (v string)
- func (p *Video) InitDefault()
- func (p *Video) IsSetAuthor() bool
- func (p *Video) Read(iprot thrift.TProtocol) (err error)
- func (p *Video) ReadField1(iprot thrift.TProtocol) error
- func (p *Video) ReadField2(iprot thrift.TProtocol) error
- func (p *Video) ReadField3(iprot thrift.TProtocol) error
- func (p *Video) ReadField4(iprot thrift.TProtocol) error
- func (p *Video) ReadField5(iprot thrift.TProtocol) error
- func (p *Video) ReadField6(iprot thrift.TProtocol) error
- func (p *Video) ReadField7(iprot thrift.TProtocol) error
- func (p *Video) ReadField8(iprot thrift.TProtocol) error
- func (p *Video) SetAuthor(val *User)
- func (p *Video) SetCommentCount(val int64)
- func (p *Video) SetCoverUrl(val string)
- func (p *Video) SetFavoriteCount(val int64)
- func (p *Video) SetId(val int64)
- func (p *Video) SetIsFavorite(val bool)
- func (p *Video) SetPlayUrl(val string)
- func (p *Video) SetTitle(val string)
- func (p *Video) String() string
- func (p *Video) Write(oprot thrift.TProtocol) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct { Id int64 `thrift:"Id,1,required" frugal:"1,required,i64" json:"Id"` User *User `thrift:"User,2,required" frugal:"2,required,User" json:"User"` Content string `thrift:"Content,3,required" frugal:"3,required,string" json:"Content"` CreateDate string `thrift:"CreateDate,4,required" frugal:"4,required,string" json:"CreateDate"` }
func NewComment ¶
func NewComment() *Comment
func (*Comment) FastWriteNocopy ¶
func (p *Comment) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Comment) Field1DeepEqual ¶
func (*Comment) Field2DeepEqual ¶
func (*Comment) Field3DeepEqual ¶
func (*Comment) Field4DeepEqual ¶
func (*Comment) GetContent ¶
func (*Comment) GetCreateDate ¶
func (*Comment) InitDefault ¶
func (p *Comment) InitDefault()
func (*Comment) SetContent ¶
func (*Comment) SetCreateDate ¶
type User ¶
type User struct { Id int64 `thrift:"Id,1,required" frugal:"1,required,i64" json:"Id"` Name string `thrift:"Name,2,required" frugal:"2,required,string" json:"Name"` FollowCount int64 `thrift:"FollowCount,3,required" frugal:"3,required,i64" json:"FollowCount"` FollowerCount int64 `thrift:"FollowerCount,4,required" frugal:"4,required,i64" json:"FollowerCount"` IsFollow bool `thrift:"IsFollow,5,required" frugal:"5,required,bool" json:"IsFollow"` }
var Comment_User_DEFAULT *User
var Video_Author_DEFAULT *User
func (*User) FastWriteNocopy ¶
func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*User) Field1DeepEqual ¶
func (*User) Field2DeepEqual ¶
func (*User) Field3DeepEqual ¶
func (*User) Field4DeepEqual ¶
func (*User) Field5DeepEqual ¶
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) InitDefault ¶
func (p *User) InitDefault()
func (*User) SetFollowCount ¶
func (*User) SetFollowerCount ¶
func (*User) SetIsFollow ¶
type Video ¶
type Video struct { Id int64 `thrift:"Id,1,required" frugal:"1,required,i64" json:"Id"` Author *User `thrift:"author,2,required" frugal:"2,required,User" json:"author"` PlayUrl string `thrift:"PlayUrl,3,required" frugal:"3,required,string" json:"PlayUrl"` CoverUrl string `thrift:"CoverUrl,4,required" frugal:"4,required,string" json:"CoverUrl"` FavoriteCount int64 `thrift:"FavoriteCount,5,required" frugal:"5,required,i64" json:"FavoriteCount"` CommentCount int64 `thrift:"CommentCount,6,required" frugal:"6,required,i64" json:"CommentCount"` IsFavorite bool `thrift:"IsFavorite,7,required" frugal:"7,required,bool" json:"IsFavorite"` Title string `thrift:"Title,8,required" frugal:"8,required,string" json:"Title"` }
func (*Video) FastWriteNocopy ¶
func (p *Video) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*Video) Field1DeepEqual ¶
func (*Video) Field2DeepEqual ¶
func (*Video) Field3DeepEqual ¶
func (*Video) Field4DeepEqual ¶
func (*Video) Field5DeepEqual ¶
func (*Video) Field6DeepEqual ¶
func (*Video) Field7DeepEqual ¶
func (*Video) Field8DeepEqual ¶
func (*Video) GetCommentCount ¶
func (*Video) GetCoverUrl ¶
func (*Video) GetFavoriteCount ¶
func (*Video) GetIsFavorite ¶
func (*Video) GetPlayUrl ¶
func (*Video) InitDefault ¶
func (p *Video) InitDefault()
func (*Video) IsSetAuthor ¶
func (*Video) SetCommentCount ¶
func (*Video) SetCoverUrl ¶
func (*Video) SetFavoriteCount ¶
func (*Video) SetIsFavorite ¶
func (*Video) SetPlayUrl ¶
Click to show internal directories.
Click to hide internal directories.