Documentation ¶
Index ¶
- Variables
- func AcceptJSON(h http.Handler) http.Handler
- func Auth(h http.Handler) http.Handler
- func AuthorizeSiteAPI(h http.Handler) http.Handler
- func AuthorizeStatsAPI(h http.Handler) http.Handler
- func CORS(h http.Handler) http.Handler
- func CSRF(h http.Handler) http.Handler
- func Captcha(h http.Handler) http.Handler
- func FetchFlash(h http.Handler) http.Handler
- func FetchSession(h http.Handler) http.Handler
- func GetSharedLink(ctx context.Context, slug string) *models.SharedLink
- func GetSite(ctx context.Context, domain string) *models.Site
- func LastSeen(h http.Handler) http.Handler
- func NOOP(w http.ResponseWriter, r *http.Request)
- func PutSecureBrowserHeaders(h http.Handler) http.Handler
- func RequestID(h http.Handler) http.Handler
- func RequireAccount(h http.Handler) http.Handler
- func RequireLoggedOut(h http.Handler) http.Handler
- func SessionTimeout(h http.Handler) http.Handler
- type Client
- type Pipeline
- func (p Pipeline) And(n ...Plug) Pipeline
- func (p Pipeline) DELETE(re string, f func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) GET(re string, f func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) POST(re string, f func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) PUT(re string, f func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) Pass(h http.HandlerFunc) http.Handler
- func (p Pipeline) Path(method, path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) PathDELETE(path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) PathGET(path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) PathPOST(path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) PathPUT(path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) Prefix(path string, handler func(w http.ResponseWriter, r *http.Request)) Plug
- func (p Pipeline) Re(exp string, method string, f func(w http.ResponseWriter, r *http.Request)) Plug
- type Plug
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &http.Client{}
Functions ¶
func GetSharedLink ¶
func GetSharedLink(ctx context.Context, slug string) *models.SharedLink
Types ¶
type Pipeline ¶
type Pipeline []Plug
func InternalStatsAPI ¶
func InternalStatsAPI() Pipeline
func SharedLink ¶
func SharedLink() Pipeline
func (Pipeline) PathDELETE ¶
type Plug ¶
func AuthorizedSiteAccess ¶
Click to show internal directories.
Click to hide internal directories.