ctrladmin

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 35 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, lastfmClient *lastfm.Client, resolveProxyPath ProxyPathResolver) (*Controller, error)

func (*Controller) ServeChangeAvatar added in v0.15.0

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

func (*Controller) ServeChangeAvatarDo added in v0.15.0

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 added in v0.10.0

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

func (*Controller) ServeChangeUsernameDo added in v0.10.0

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

func (*Controller) ServeCreateTranscodePrefDo

func (c *Controller) ServeCreateTranscodePrefDo(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 added in v0.15.0

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

func (*Controller) ServeDeleteTranscodePrefDo

func (c *Controller) ServeDeleteTranscodePrefDo(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) ServeInternetRadioStationAddDo added in v0.15.0

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

func (*Controller) ServeInternetRadioStationDeleteDo added in v0.15.0

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

func (*Controller) ServeInternetRadioStationUpdateDo added in v0.15.0

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

func (*Controller) ServeLinkLastFMDo

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

func (*Controller) ServeLinkListenBrainzDo added in v0.12.0

func (c *Controller) ServeLinkListenBrainzDo(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 added in v0.12.0

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

func (*Controller) ServePodcastDeleteDo added in v0.12.0

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

func (*Controller) ServePodcastDownloadDo added in v0.12.3

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

func (*Controller) ServePodcastUpdateDo added in v0.12.3

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

func (*Controller) ServeStartScanFullDo added in v0.8.6

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

func (*Controller) ServeStartScanIncDo added in v0.8.6

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

func (*Controller) ServeUnlinkLastFMDo

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

func (*Controller) ServeUnlinkListenBrainzDo added in v0.12.0

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

func (*Controller) ServeUpdateLastFMAPIKey

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

func (*Controller) ServeUpdateLastFMAPIKeyDo

func (c *Controller) ServeUpdateLastFMAPIKeyDo(r *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 added in v0.16.0

type ProxyPathResolver func(in string) string

type Response

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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