views

package
v0.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthor

func GetAuthor(s service.Service) func(*fiber.Ctx) error

func GetComments

func GetComments(s service.Service) func(*fiber.Ctx) error

func GetFaq

func GetFaq(c *fiber.Ctx) error

func GetKeys

func GetKeys(c *fiber.Ctx) error

func GetMain

func GetMain(s service.Service) func(*fiber.Ctx) error

func GetMainNoFront

func GetMainNoFront(c *fiber.Ctx) error

func MarkDowner added in v0.8.5

func MarkDowner(content string) template.HTML

func NewMessage

func NewMessage(s service.Service) func(*fiber.Ctx) error

func PostKeys

func PostKeys(c *fiber.Ctx) error

func SetupLocalRoutes

func SetupLocalRoutes(s service.Service, app *fiber.App)

Types

type ClientData

type ClientData struct {
	PublicPods  bool
	PrivatePods bool
	PodsString  string
}

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

func GetAuthorMessagesAndMainPageInfo(s service.Service, pubKey string) PageData

Get Local and online messages, checks validity and return view Pubkey is in base64 form

func GetCommentsAndMainPageInfo

func GetCommentsAndMainPageInfo(s service.Service, messageID string) PageData

Get Local and online messages, checks validity and return view

func GetMessagesAndMainPageInfo

func GetMessagesAndMainPageInfo(s service.Service) PageData

Get Local and online messages, checks validity and return view

type PageInfo

type PageInfo struct {
	MainPage        bool
	CommentsPage    bool
	Title           string
	SubTitle        string
	PostToMessageID string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL