Versions in this module Expand all Collapse all v0 v0.1.1 Jul 16, 2022 v0.1.0 Jun 26, 2022 Changes in this version + func AddInstanceToInactive(instance string) error + func CheckInactive() + func CheckInactiveInstances() (map[string]string, error) + func Close() error + func CloseLocalReport(id string, board string) error + func Connect() error + func CreateLocalDelete(id string, _type string) error + func CreateLocalReport(id string, board string, reason string) error + func CreateNewBoard(actor activitypub.Actor) (activitypub.Actor, error) + func DeleteInstanceFromInactive(instance string) error + func DeleteNewsItem(timestamp int) error + func GetAdminAuth() (string, string, error) + func GetLocalReport(board string) (map[string]Reports, error) + func GetPostIDFromNum(num string) (string, error) + func GetReplyOP(link string) (string, error) + func InitInstance() error + func IsHashBanned(hash string) (bool, error) + func IsInactiveTimestamp(timeStamp string) bool + func IsReplyToOP(op string, link string) (string, bool, error) + func PrintAdminAuth() error + func RemovePreviewFromFile(id string) error + func RunDatabaseSchema() error + func WriteNews(news NewsItem) error + type NewsItem struct + Content template.HTML + Time int + Title string + func GetNews(limit int) ([]NewsItem, error) + func GetNewsItem(timestamp int) (NewsItem, error) + type Removed struct + Board string + ID string + Type string + func GetLocalDelete() ([]Removed, error) + type Report struct + ID string + Reason string + type Reports struct + Actor activitypub.Actor + Count int + ID string + OP string + Object activitypub.ObjectBase + Reason []string + type ReportsSortDesc []Reports + func (a ReportsSortDesc) Len() int + func (a ReportsSortDesc) Less(i, j int) bool + func (a ReportsSortDesc) Swap(i, j int)