Documentation
¶
Index ¶
- type Buf
- type Categories
- type Category
- type CheckID
- type Comment
- type Comments
- func (c *Comments) Add(key string, index int, data interface{})
- func (c *Comments) Cookie() *object.Cookie
- func (c *Comments) GetList() *object.QuerySettings
- func (c *Comments) IfNil() interface{}
- func (c *Comments) KeyLiked() string
- func (c *Comments) KeyRole() string
- func (c *Comments) LSlice() int
- func (c *Comments) MakeKeys(key string, data ...interface{})
- func (c *Comments) NewList() []interface{}
- func (c *Comments) PostOrCommentID(index int) int
- func (c *Comments) Return() *Buf
- func (c *Comments) Settings() *object.Settings
- type LCount
- type LikesCount
- func (lk *LikesCount) DislikeNil() *LCount
- func (lk *LikesCount) GetList() *object.QuerySettings
- func (lk *LikesCount) IfNil() interface{}
- func (lk *LikesCount) LikeNil() *LCount
- func (lk *LikesCount) MakeKeys(key string, data ...interface{})
- func (lk *LikesCount) NewList() []interface{}
- func (lk *LikesCount) Return() *Buf
- type Model
- type Models
- type Post
- type PostOrComment
- type Posts
- func (p *Posts) Add(key string, index int, data interface{})
- func (p *Posts) Cookie() *object.Cookie
- func (p *Posts) GetList() *object.QuerySettings
- func (p *Posts) IfNil() interface{}
- func (p *Posts) KeyLiked() string
- func (p *Posts) KeyRole() string
- func (p *Posts) LSlice() int
- func (p *Posts) MakeKeys(key string, data ...interface{})
- func (p *Posts) NewList() []interface{}
- func (p *Posts) PostOrCommentID(index int) int
- func (p *Posts) Return() *Buf
- func (p *Posts) Settings() *object.Settings
- type Ratio
- type Session
- type User
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buf ¶
type Buf struct { Category *Category Categories *Categories Comment *Comment Comments *Comments Like *Ratio LCount *LCount LikesCount *LikesCount Post *Post Posts *Posts Session *Session User *User Users *Users CheckID *CheckID }
Buf for return struct by name
type Categories ¶
func NewCategories ¶
func NewCategories(st *object.Settings, ck *object.Cookie) *Categories
func (*Categories) GetList ¶
func (c *Categories) GetList() *object.QuerySettings
func (*Categories) IfNil ¶
func (c *Categories) IfNil() interface{}
func (*Categories) MakeKeys ¶
func (c *Categories) MakeKeys(key string, data ...interface{})
func (*Categories) NewList ¶
func (c *Categories) NewList() []interface{}
func (*Categories) Return ¶
func (c *Categories) Return() *Buf
type CheckID ¶
func NewCheckID ¶
func (*CheckID) Get ¶
func (c *CheckID) Get() *object.QuerySettings
type Comment ¶
type Comments ¶
func (*Comments) GetList ¶
func (c *Comments) GetList() *object.QuerySettings
func (*Comments) PostOrCommentID ¶
type LikesCount ¶
type LikesCount struct { Slice []*LCount PostOrComm int // current post_id or comment_id St *object.Settings Ck *object.Cookie }
func NewLikesCount ¶
func NewLikesCount(st *object.Settings, ck *object.Cookie) *LikesCount
func (*LikesCount) DislikeNil ¶
func (lk *LikesCount) DislikeNil() *LCount
func (*LikesCount) GetList ¶
func (lk *LikesCount) GetList() *object.QuerySettings
GetList configs query
func (*LikesCount) IfNil ¶
func (lk *LikesCount) IfNil() interface{}
func (*LikesCount) LikeNil ¶
func (lk *LikesCount) LikeNil() *LCount
func (*LikesCount) MakeKeys ¶
func (lk *LikesCount) MakeKeys(key string, data ...interface{})
func (*LikesCount) NewList ¶
func (lk *LikesCount) NewList() []interface{}
NewList returns fields for adding new data in "query rows"
func (*LikesCount) Return ¶
func (lk *LikesCount) Return() *Buf
type Model ¶
type Model interface { New() []interface{} Get() *object.QuerySettings }
type Models ¶
type Models interface { NewList() []interface{} GetList() *object.QuerySettings Return() *Buf }
type Post ¶
type Post struct { ID int Title string Body string User int Name string Created time.Time Categories any Likes any Comments *Comments Liked any Image any St *object.Settings Ck *object.Cookie }
func (*Post) Get ¶
func (p *Post) Get() *object.QuerySettings
type PostOrComment ¶
type Posts ¶
func (*Posts) GetList ¶
func (p *Posts) GetList() *object.QuerySettings
func (*Posts) PostOrCommentID ¶
type Ratio ¶
type Ratio struct { PostOrComm int // current post_id or comment_id Ratio int // like_id or dislike_id Body string // like or dislike (name) Created time.Time // created date St *object.Settings Ck *object.Cookie }
func (*Ratio) Get ¶
func (l *Ratio) Get() *object.QuerySettings
type Session ¶
type Session struct { User string UUID string Expire time.Time St *object.Settings // settings Ck *object.Cookie }
func (*Session) Get ¶
func (s *Session) Get() *object.QuerySettings
Click to show internal directories.
Click to hide internal directories.