ctrladmin

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: GPL-3.0 Imports: 28 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 {
	*ctrlbase.Controller
	// contains filtered or unexported fields
}

func New

func New(base *ctrlbase.Controller) *Controller

func (*Controller) H

func (c *Controller) H(h adminHandler) http.Handler

func (*Controller) ServeChangeOwnPassword

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

func (*Controller) ServeChangeOwnPasswordDo

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

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

func (*Controller) ServeCreateUser

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

func (*Controller) ServeCreateUserDo

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

func (*Controller) ServeDeleteTranscodePrefDo added in v0.8.2

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) ServeLinkLastFMDo

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

func (*Controller) ServeLogin

func (c *Controller) ServeLogin(r *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(r *http.Request) *Response

func (*Controller) ServeStartScanDo

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

func (*Controller) ServeUnlinkLastFMDo

func (c *Controller) ServeUnlinkLastFMDo(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

func (*Controller) ServeUploadPlaylist added in v0.3.0

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

func (*Controller) ServeUploadPlaylistDo added in v0.3.0

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

func (*Controller) WithAdminSession

func (c *Controller) WithAdminSession(next http.Handler) http.Handler

func (*Controller) WithSession

func (c *Controller) WithSession(next http.Handler) http.Handler

func (*Controller) WithUserSession

func (c *Controller) WithUserSession(next http.Handler) http.Handler

type CtxKey added in v0.5.0

type CtxKey int
const (
	CtxUser CtxKey = iota
	CtxSession
)

type Flash

type Flash struct {
	Message string
	Type    FlashType
}

type FlashType added in v0.3.0

type FlashType 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