Versions in this module Expand all Collapse all v0 v0.1.1 Jul 30, 2017 Changes in this version + type Comment struct + ArticleID string + ArticleKey string + CommentID uint32 + Content string + Deleted bool + ReplyID sql.NullInt64 + SiteID string + TimeStamp time.Time + UserID string + func NewComment(siteID, articleKey, userEmail, content string, replyID *uint32) *Comment + type Mysql struct + func GlobalSQLMgr() *Mysql + func (m *Mysql) Close() + func (m *Mysql) GetComment(articleKey, siteDomain string, lastCommentID *string) ([]Comment, []User) + func (m *Mysql) GetSiteByDomain(domain string) *Site + func (m *Mysql) GetUserByEmail(email string) *User + func (m *Mysql) GetUserByID(id string) *User + func (m *Mysql) InsertComment(comm *Comment) bool + func (m *Mysql) InsertSite(site *Site) bool + func (m *Mysql) InsertUser(user *User) bool + type Site struct + CreateTime time.Time + SiteDomain string + SiteID string + func NewSite(domain string) *Site + type User struct + DisplayName sql.NullString + Email string + UserID string + WebSite sql.NullString + func NewUser(email, displayName, webSite string) *User