Documentation ¶
Index ¶
- func FormToBasicMessage(c *fiber.Ctx) model.Message
- func GetAuthor(s service.Service) func(*fiber.Ctx) error
- func GetComments(s service.Service) func(*fiber.Ctx) error
- func GetFaq(c *fiber.Ctx) error
- func GetKeys(c *fiber.Ctx) error
- func GetMain(s service.Service) func(*fiber.Ctx) error
- func GetMainNoFront(c *fiber.Ctx) error
- func MarkDowner(policy *bluemonday.Policy) func(string) template.HTML
- func NewMessage(s service.Service) func(*fiber.Ctx) error
- func PostKeys(c *fiber.Ctx) error
- func SetupLocalRoutes(s service.Service, app *fiber.App)
- type ClientData
- type PageData
- type PageInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormToBasicMessage ¶ added in v0.8.5
func GetComments ¶
func GetMainNoFront ¶
func GetMainNoFront(c *fiber.Ctx) error
func MarkDowner ¶ added in v0.8.5
func MarkDowner(policy *bluemonday.Policy) func(string) template.HTML
func NewMessage ¶
func SetupLocalRoutes ¶
Types ¶
type ClientData ¶
type PageData ¶
type PageData struct { Server service.GeneralConfig Client ClientData // Filters to feed back loop TopMessage model.Message Messages []model.Message PageInfo PageInfo }
PageData represent information sent to the page
func GetAuthorMessagesAndMainPageInfo ¶
Get Local and online messages, checks validity and return view Pubkey is in base64 form
func GetCommentsAndMainPageInfo ¶
Get Local and online messages, checks validity and return view
func GetMessagesAndMainPageInfo ¶
Get Local and online messages, checks validity and return view
Click to show internal directories.
Click to hide internal directories.