admin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTemplates

func ParseTemplates(templates embed.FS) (*template.Template, error)

ParseTemplates parses all admin templates with the required FuncMap

func ParseTestTemplates

func ParseTestTemplates(templates embed.FS) (*template.Template, error)

ParseTestTemplates parses templates from the testdata directory

Types

type Admin

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

func New

func New(cfg *config.Config, s *store.Store, tmpl *template.Template, adminKey string) *Admin

func (*Admin) Close

func (a *Admin) Close()

func (*Admin) RegisterRoutes

func (a *Admin) RegisterRoutes(mux *http.ServeMux)

func (*Admin) ServeHTTP

func (a *Admin) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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