admin

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlashNormal  = FlashType("normal")
	FlashWarning = FlashType("warning")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*http.ServeMux
	// contains filtered or unexported fields
}

func New

func New(dbc *db.DB,
	sessDB *gormstore.Store,
	scanner *scanner.Scanner,
	podcasts *podcast.Podcasts,
	resolveProxyPath ProxyPathResolver,
) (*Controller, error)

func (*Controller) ServeChangeAvatar

func (c *Controller) ServeChangeAvatar(r *http.Request) *Response

func (*Controller) ServeChangeAvatarDo

func (c *Controller) ServeChangeAvatarDo(r *http.Request) *Response

func (*Controller) ServeChangePassword

func (c *Controller) ServeChangePassword(r *http.Request) *Response

func (*Controller) ServeChangePasswordDo

func (c *Controller) ServeChangePasswordDo(r *http.Request) *Response

func (*Controller) ServeChangeUsername

func (c *Controller) ServeChangeUsername(r *http.Request) *Response

func (*Controller) ServeChangeUsernameDo

func (c *Controller) ServeChangeUsernameDo(r *http.Request) *Response

func (*Controller) ServeCreateUser

func (c *Controller) ServeCreateUser(_ *http.Request) *Response

func (*Controller) ServeCreateUserDo

func (c *Controller) ServeCreateUserDo(r *http.Request) *Response

func (*Controller) ServeDeleteAvatarDo

func (c *Controller) ServeDeleteAvatarDo(r *http.Request) *Response

func (*Controller) ServeDeleteUser

func (c *Controller) ServeDeleteUser(r *http.Request) *Response

func (*Controller) ServeDeleteUserDo

func (c *Controller) ServeDeleteUserDo(r *http.Request) *Response

func (*Controller) ServeHome

func (c *Controller) ServeHome(r *http.Request) *Response

func (*Controller) ServeLogin

func (c *Controller) ServeLogin(_ *http.Request) *Response

func (*Controller) ServeLoginDo

func (c *Controller) ServeLoginDo(w http.ResponseWriter, r *http.Request)

func (*Controller) ServeLogout

func (c *Controller) ServeLogout(w http.ResponseWriter, r *http.Request)

func (*Controller) ServeNotFound

func (c *Controller) ServeNotFound(_ *http.Request) *Response

func (*Controller) ServePodcastAddDo

func (c *Controller) ServePodcastAddDo(r *http.Request) *Response

func (*Controller) ServePodcastDeleteDo

func (c *Controller) ServePodcastDeleteDo(r *http.Request) *Response

func (*Controller) ServePodcastDownloadDo

func (c *Controller) ServePodcastDownloadDo(r *http.Request) *Response

func (*Controller) ServePodcastUpdateDo

func (c *Controller) ServePodcastUpdateDo(r *http.Request) *Response

func (*Controller) ServeStartScanFullDo

func (c *Controller) ServeStartScanFullDo(_ *http.Request) *Response

func (*Controller) ServeStartScanIncDo

func (c *Controller) ServeStartScanIncDo(_ *http.Request) *Response

type CtxKey

type CtxKey int
const (
	CtxUser CtxKey = iota
	CtxSession
)

type Flash

type Flash struct {
	Message string
	Type    FlashType
}

type FlashType

type FlashType string

type ProxyPathResolver

type ProxyPathResolver func(in string) string

type Response

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

Jump to

Keyboard shortcuts

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