handler

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotFound

func NotFound(c echo.Context) error

func NotFoundMsg added in v0.8.0

func NotFoundMsg(c echo.Context, msg string) error

Types

type AtomLink struct {
	XMLName xml.Name `xml:"atom:link"`
	Href    string   `xml:"href,attr"`
	Rel     string   `xml:"rel,attr"`
	Type    string   `xml:"type,attr"`
}

type Channel

type Channel struct {
	Title       string   `xml:"title"`
	Description string   `xml:"description"`
	Link        string   `xml:"link"`
	Generator   string   `xml:"generator"`
	Language    string   `xml:"language"`
	Copyright   string   `xml:"copyright"`
	AtomLink    AtomLink `xml:"atom:link"`
	Items       []Item   `xml:"item"`
}

type Handler

type Handler struct {
	Q *database.Queries
}

func NewHandler

func NewHandler(q *database.Queries) *Handler

func (*Handler) Auth

func (h *Handler) Auth(c echo.Context) error

func (*Handler) AuthForm

func (h *Handler) AuthForm(c echo.Context) error

func (*Handler) Backups

func (h *Handler) Backups(c echo.Context) error

func (*Handler) CreateBackup

func (h *Handler) CreateBackup(c echo.Context) error

func (*Handler) CreatePost

func (h *Handler) CreatePost(c echo.Context) error

func (*Handler) DeletePost

func (h *Handler) DeletePost(c echo.Context) error

func (*Handler) DeletePostForm

func (h *Handler) DeletePostForm(c echo.Context) error

func (*Handler) EditPost

func (h *Handler) EditPost(c echo.Context) error

func (*Handler) EditPostForm

func (h *Handler) EditPostForm(c echo.Context) error

func (*Handler) Manifest added in v0.7.2

func (h *Handler) Manifest(c echo.Context) error

func (*Handler) Media

func (h *Handler) Media(c echo.Context) error

func (*Handler) MediaDelete

func (h *Handler) MediaDelete(c echo.Context) error

func (*Handler) MediaDeleteForm

func (h *Handler) MediaDeleteForm(c echo.Context) error

func (*Handler) MediaEdit

func (h *Handler) MediaEdit(c echo.Context) error

func (*Handler) MediaEditForm

func (h *Handler) MediaEditForm(c echo.Context) error

func (*Handler) MediaUpload

func (h *Handler) MediaUpload(c echo.Context) error

TODO: audio and video

func (*Handler) Mediafile

func (h *Handler) Mediafile(c echo.Context) error

func (*Handler) Post

func (h *Handler) Post(c echo.Context) error

func (*Handler) PostLatest added in v0.7.0

func (h *Handler) PostLatest(c echo.Context) error

Displays the latest PUBLIC post

func (*Handler) Posts

func (h *Handler) Posts(c echo.Context) error

func (*Handler) RSSFeed

func (h *Handler) RSSFeed(c echo.Context) error

func (*Handler) RobotTxt

func (h *Handler) RobotTxt(c echo.Context) error

func (*Handler) Thumbnail

func (h *Handler) Thumbnail(c echo.Context) error

type Icon added in v0.7.2

type Icon struct {
	Src   string `json:"src"`
	Type  string `json:"type"`
	Sizes string `json:"sizes"`
}

type IconSet added in v0.7.2

type IconSet struct {
	Icons []Icon `json:"icons"`
}

type Item

type Item struct {
	Title       string `xml:"title"`
	Description string `xml:"description"`
	Link        string `xml:"link"`
	PubDate     string `xml:"pubDate"`
	Category    string `xml:"category"`
	Guid        string `xml:"guid"`
}

type RSS

type RSS struct {
	XMLName xml.Name `xml:"rss"`
	Version string   `xml:"version,attr"`
	Xmlns   string   `xml:"xmlns:atom,attr"`
	Channel Channel  `xml:"channel"`
}

Jump to

Keyboard shortcuts

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