handler

package
v0.0.0-...-e805495 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed struct {
	// contains filtered or unexported fields
}

Feed is the handler for RSS/Atom feeds

func NewFeed

func NewFeed(s storage.Storage, r renderer.Renderer) *Feed

NewFeed creates new Feed instance

func (*Feed) Atom

func (h *Feed) Atom(w http.ResponseWriter, r *http.Request)

Atom is the HTTP handler for Atom feed

func (*Feed) Rss

func (h *Feed) Rss(w http.ResponseWriter, r *http.Request)

Rss is the HTTP handler for RSS feed

type Posts

type Posts struct {
	// contains filtered or unexported fields
}

Posts is the handler for posts pages

func NewPosts

func NewPosts(s storage.Storage, r renderer.Renderer) *Posts

NewPosts creates new Posts instance

func (*Posts) Front

func (h *Posts) Front(w http.ResponseWriter, r *http.Request)

Front is the HTTP handler for the front page with post list

func (*Posts) Post

func (h *Posts) Post(w http.ResponseWriter, r *http.Request)

Post is the HTTP handler for the post page

func (*Posts) Tag

func (h *Posts) Tag(w http.ResponseWriter, r *http.Request)

Tag is the HTTP handler for the tag page with post list for a tag

Jump to

Keyboard shortcuts

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