Documentation
¶
Index ¶
- Variables
- func GenericError(ctx *fiber.Ctx, msg ...string) error
- func GetActorPost(ctx *fiber.Ctx, path string) error
- func GetThemeCookie(c *fiber.Ctx) string
- func ParseOutboxRequest(ctx *fiber.Ctx, actor activitypub.Actor) error
- func Send500(ctx *fiber.Ctx, err error, msg ...string) error
- func StatusTemplate(num int) func(ctx *fiber.Ctx, msg ...string) error
- func TemplateFunctions(engine *html.Engine)
- func WantToServeArchive(actorName string) (activitypub.Collection, bool, error)
- func WantToServeCatalog(actorName string) (activitypub.Collection, bool, error)
- type AdminPage
- type BanInfo
- type Meta
- type PageData
Constants ¶
This section is empty.
Variables ¶
View Source
var Send400 = StatusTemplate(400)
View Source
var Send403 = StatusTemplate(403)
View Source
var Send404 = StatusTemplate(404)
Functions ¶
func GetThemeCookie ¶
func ParseOutboxRequest ¶
func ParseOutboxRequest(ctx *fiber.Ctx, actor activitypub.Actor) error
func TemplateFunctions ¶
func WantToServeArchive ¶
func WantToServeArchive(actorName string) (activitypub.Collection, bool, error)
func WantToServeCatalog ¶
func WantToServeCatalog(actorName string) (activitypub.Collection, bool, error)
Types ¶
type AdminPage ¶
type AdminPage struct {
Title string
Board webfinger.Board
Key string
Actor string
Boards []webfinger.Board
Following []string
Followers []string
Domain string
IsLocal bool
PostBlacklist []util.PostBlacklist
AutoSubscribe bool
BoardType string
RecentPosts []activitypub.ObjectBase
Instance activitypub.Actor
Meta Meta
ServerVersion string
Themes *[]string
ThemeCookie string
}
type PageData ¶
type PageData struct {
Title string
PreferredUsername string
Board webfinger.Board
Pages []int
CurrentPage int
TotalPage int
Boards []webfinger.Board
Posts []activitypub.ObjectBase
Key string
PostId string
Instance activitypub.Actor
ReturnTo string
NewsItems []db.NewsItem
BoardRemainer []int
Meta Meta
PostType string
Themes *[]string
ThemeCookie string
Referer string
ServerVersion string
}
Click to show internal directories.
Click to hide internal directories.