Documentation
¶
Index ¶
- 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
- type Removed
- type Report
- type Reports
- type ReportsSortDesc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInstanceToInactive ¶
func CheckInactive ¶
func CheckInactive()
func CheckInactiveInstances ¶
func CloseLocalReport ¶
func CreateLocalDelete ¶
func CreateNewBoard ¶
func CreateNewBoard(actor activitypub.Actor) (activitypub.Actor, error)
func DeleteNewsItem ¶
func GetAdminAuth ¶
func GetPostIDFromNum ¶
func GetReplyOP ¶
func InitInstance ¶
func InitInstance() error
func IsHashBanned ¶
func IsInactiveTimestamp ¶
func PrintAdminAuth ¶
func PrintAdminAuth() error
func RemovePreviewFromFile ¶
func RunDatabaseSchema ¶
func RunDatabaseSchema() error
Types ¶
type Removed ¶
func GetLocalDelete ¶
type Reports ¶
type Reports struct { ID string Count int Actor activitypub.Actor Object activitypub.ObjectBase OP string Reason []string }
type ReportsSortDesc ¶
type ReportsSortDesc []Reports
func (ReportsSortDesc) Len ¶
func (a ReportsSortDesc) Len() int
func (ReportsSortDesc) Less ¶
func (a ReportsSortDesc) Less(i, j int) bool
func (ReportsSortDesc) Swap ¶
func (a ReportsSortDesc) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.