handlers

package
v0.0.0-...-6e61812 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(store *store.Storage, githubClient *utils.GitHubClient) *Handler

func (*Handler) AuthCallback

func (h *Handler) AuthCallback(w http.ResponseWriter, r *http.Request)

func (*Handler) Create

func (h *Handler) Create(w http.ResponseWriter, r *http.Request)

creating collection item

func (*Handler) Destroy

func (h *Handler) Destroy(w http.ResponseWriter, r *http.Request)

deleting collection item

func (*Handler) Edit

func (h *Handler) Edit(w http.ResponseWriter, r *http.Request)

rendering markdown editor with metadata form for editing collection item

func (*Handler) Index

func (h *Handler) Index(w http.ResponseWriter, r *http.Request)

listing all the collection items for example blog posts, authors

func (*Handler) LoginPage

func (h *Handler) LoginPage(w http.ResponseWriter, r *http.Request)

func (*Handler) Logout

func (h *Handler) Logout(w http.ResponseWriter, r *http.Request)

func (*Handler) New

func (h *Handler) New(w http.ResponseWriter, r *http.Request)

rendering markdown editor with metadata form for creating new collection item

func (*Handler) PingIndex

func (h *Handler) PingIndex(w http.ResponseWriter, r *http.Request)

func (*Handler) ProviderLogin

func (h *Handler) ProviderLogin(w http.ResponseWriter, r *http.Request)

func (*Handler) Update

func (h *Handler) Update(w http.ResponseWriter, r *http.Request)

updating collection item with new content

Jump to

Keyboard shortcuts

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