Documentation ¶
Index ¶
- func API(storage store.Store) http.HandlerFunc
- func AllowedHostsHandler(allowedHostnames string) func(http.Handler) http.Handler
- func AuthData(root string) *oauth2.Config
- func Authorize(storage store.Store) http.HandlerFunc
- func RegisterUser(storage store.Store) http.HandlerFunc
- func SelfRoot(r *http.Request) string
- type AuthorizePage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func API ¶
func API(storage store.Store) http.HandlerFunc
API is the handler which parses Plex webhook requests.
func AllowedHostsHandler ¶
AllowedHostsHandler is a middleware which takes a comma seperated lists of hostnames and filters requests so those without a Host header with a value in the list recieve a 403. /healthz is whitelisted.
func Authorize ¶
func Authorize(storage store.Store) http.HandlerFunc
Authorize is a handler for users to log in and store their authorization information.
func RegisterUser ¶
func RegisterUser(storage store.Store) http.HandlerFunc
RegisterUser is a handler for saving users.
Types ¶
type AuthorizePage ¶
AuthorizePage is a data struct for authorized pages.
func EmptyPageData ¶
func EmptyPageData(r *http.Request) *AuthorizePage
EmptyPageData is a generator for a simple page data that is empty.
Click to show internal directories.
Click to hide internal directories.