Versions in this module Expand all Collapse all v2 v2.9.3 Sep 18, 2024 Changes in this version + func ContainsComment(comments []Comment, targetID uint) bool + func ContainsCookedComment(comments []CookedComment, targetID uint) bool + type Artran struct + BadgeColor string + BadgeName string + Content string + CreatedAt string + Email string + ID string + IP string + IsCollapsed string + IsPending string + IsPinned string + Link string + Nick string + PageAdminOnly string + PageKey string + PageTitle string + Rid string + SiteName string + SiteURLs string + UA string + UpdatedAt string + VoteDown string + VoteUp string + type AuthIdentity struct + ConfirmedAt *time.Time + ExpiresAt *time.Time + Provider string + RemoteUID string + Token string + UserID uint + func (n AuthIdentity) IsEmpty() bool + type Comment struct + Content string + IP string + IsCollapsed bool + IsPending bool + IsPinned bool + IsVerified bool + Page *Page + PageKey string + Rid uint + RootID uint + SiteName string + UA string + User *User + UserID uint + VoteDown int + VoteUp int + func (c Comment) IsAllowReply() bool + func (c Comment) IsEmpty() bool + type CookedComment struct + BadgeColor string + BadgeName string + Content string + ContentMarked string + Date string + EmailEncrypted string + ID uint + IP string + IPRegion string + IsAllowReply bool + IsCollapsed bool + IsPending bool + IsPinned bool + IsVerified bool + Link string + Nick string + PageKey string + PageURL string + Rid uint + SiteName string + UA string + UserID uint + Visible bool + VoteDown int + VoteUp int + type CookedCommentForEmail struct + Content string + ContentRaw string + Date string + Datetime string + Email string + IP string + Nick string + Page CookedPage + PageKey string + PageTitle string + Site CookedSite + SiteName string + Time string + type CookedNotify struct + CommentID uint + ID uint + IsEmailed bool + IsRead bool + ReadLink string + UserID uint + type CookedPage struct + AdminOnly bool + Date string + ID uint + Key string + PV int + SiteName string + Title string + URL string + VoteDown int + VoteUp int + type CookedSite struct + FirstUrl string + ID uint + Name string + Urls []string + UrlsRaw string + type CookedUser struct + BadgeColor string + BadgeName string + Email string + ID uint + IsAdmin bool + Link string + Name string + ReceiveEmail bool + type CookedUserForAdmin struct + CommentCount int64 + IsInConf bool + LastIP string + LastUA string + type Notify struct + CommentID uint + EmailAt *time.Time + IsEmailed bool + IsRead bool + Key string + ReadAt *time.Time + UserID uint + func (n *Notify) GenerateKey() + func (n Notify) IsEmpty() bool + type Page struct + AccessibleURL string + AdminOnly bool + Key string + PV int + Site *Site + SiteName string + Title string + VoteDown int + VoteUp int + func (p Page) IsEmpty() bool + type Site struct + Name string + Urls string + func (s Site) IsEmpty() bool + type User struct + BadgeColor string + BadgeName string + Email string + IsAdmin bool + IsInConf bool + LastIP string + LastUA string + Link string + Name string + Password string + ReceiveEmail bool + TokenValidFrom sql.NullTime + func (u *User) CheckPassword(input string) bool + func (u *User) SetPasswordEncrypt(password string) (err error) + func (u User) IsEmpty() bool + type UserEmailVerify struct + Code string + Email string + ExpiresAt time.Time + IP string + UA string + type Vote struct + IP string + TargetID uint + Type VoteType + UA string + UserID uint + func (v *Vote) IsEmpty() bool + func (v *Vote) IsUp() bool + type VoteType string + const VoteTypeCommentDown + const VoteTypeCommentUp + const VoteTypePageDown + const VoteTypePageUp