Versions in this module Expand all Collapse all v1 v1.2.0 Jan 21, 2019 v1.1.0 Jan 6, 2019 Changes in this version + func EncodeID(id string) string + func HashValue(val string, secret string) string + type BlockedUser struct + ID string + Name string + Until time.Time + type Comment struct + Deleted bool + Edit *Edit + ID string + Locator Locator + Orig string + ParentID string + Pin bool + PostTitle string + Score int + Text string + Timestamp time.Time + User User + Votes map[string]bool + func (c *Comment) PrepareUntrusted() + func (c *Comment) Sanitize() + func (c *Comment) SetDeleted(mode DeleteMode) + type CommentConverter interface + Convert func(text string) string + type CommentConverterFunc func(text string) string + func (f CommentConverterFunc) Convert(text string) string + type CommentFormatter struct + func NewCommentFormatter(converters ...CommentConverter) *CommentFormatter + func (f *CommentFormatter) Format(c Comment) Comment + func (f *CommentFormatter) FormatText(txt string) (res string) + type DeleteMode int + const HardDelete + const SoftDelete + type Edit struct + Summary string + Timestamp time.Time + type Locator struct + SiteID string + URL string + type PostInfo struct + Count int + FirstTS time.Time + LastTS time.Time + ReadOnly bool + URL string + type User struct + Admin bool + Blocked bool + ID string + IP string + Name string + Picture string + Verified bool + func (u *User) HashIP(secret string)