Documentation
¶
Index ¶
- type App
- func (a App) CSP() *common.CSP
- func (a App) Drain(callback func())
- func (a App) Draining() bool
- func (a App) InstanceCount() int
- func (a App) InstanceCreated()
- func (a App) InstanceDeleted()
- func (a App) PathMaker() path.PathMaker
- func (a App) RemoveSession(id string)
- func (a App) Resources() resources.Registry
- func (a App) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (a App) SessionCount() (n int)
- type ErrorPage
- type Middleware
- type Options
- type Page
- type SessionTracker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App = *app
func (App) InstanceCount ¶ added in v0.12.8
func (App) InstanceCreated ¶ added in v0.13.6
func (a App) InstanceCreated()
func (App) InstanceDeleted ¶ added in v0.13.6
func (a App) InstanceDeleted()
func (App) RemoveSession ¶
func (App) SessionCount ¶ added in v0.12.8
type SessionTracker ¶
type SessionTracker interface {
// Create is called when a session is created. The request is the one
// that triggered creation; it must not be retained beyond the call,
// and its body must not be read.
Create(id string, r *http.Request)
// Delete is called when a session is removed.
Delete(id string)
}
SessionTracker is notified when sessions are created and removed.
Click to show internal directories.
Click to hide internal directories.