Documentation ¶
Index ¶
- type Admin
- func (a *Admin) AdminUserHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (a *Admin) AdminUserListHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (a *Admin) DashboardHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (a *Admin) ManageHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (a *Admin) ReportHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- func (a *Admin) SearchHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (a *Admin) ShowDeviceHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
- type Auth
- type CAS
- type Dev
- type Guest
- type Manager
- type OpenID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct {
// contains filtered or unexported fields
}
func NewAdminController ¶
func NewAdminController(e *common.Environment, stores stores.StoreCollection) *Admin
func (*Admin) AdminUserHandler ¶
func (a *Admin) AdminUserHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (*Admin) AdminUserListHandler ¶
func (a *Admin) AdminUserListHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Admin) DashboardHandler ¶
func (a *Admin) DashboardHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Admin) ManageHandler ¶
func (a *Admin) ManageHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (*Admin) ReportHandler ¶ added in v0.11.0
func (a *Admin) ReportHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
func (*Admin) SearchHandler ¶
func (a *Admin) SearchHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Admin) ShowDeviceHandler ¶ added in v0.10.0
func (a *Admin) ShowDeviceHandler(w http.ResponseWriter, r *http.Request, p httprouter.Params)
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuthController ¶
func NewAuthController(e *common.Environment, us stores.UserStore) *Auth
func (*Auth) LoginHandler ¶
func (a *Auth) LoginHandler(w http.ResponseWriter, r *http.Request)
func (*Auth) LogoutHandler ¶
func (a *Auth) LogoutHandler(w http.ResponseWriter, r *http.Request)
LogoutHandler voids a user's session
type CAS ¶ added in v1.6.0
type CAS struct {
// contains filtered or unexported fields
}
func NewCASController ¶ added in v1.6.0
func NewCASController(e *common.Environment, us stores.UserStore) *CAS
func (*CAS) CASHandler ¶ added in v1.6.0
func (a *CAS) CASHandler(w http.ResponseWriter, r *http.Request)
CASHandler handles the entire CAS flow from initial redirect to session creation.
type Dev ¶
type Dev struct {
// contains filtered or unexported fields
}
func NewDevController ¶
func NewDevController(e *common.Environment) *Dev
func (*Dev) ReloadTemplates ¶
func (d *Dev) ReloadTemplates(w http.ResponseWriter, r *http.Request)
Dev mode route handlers
type Guest ¶ added in v0.8.0
type Guest struct {
// contains filtered or unexported fields
}
func NewGuestController ¶ added in v0.8.0
func NewGuestController(e *common.Environment, us stores.UserStore, ds stores.DeviceStore, ls stores.LeaseStore) *Guest
func (*Guest) RegistrationHandler ¶ added in v0.8.0
func (g *Guest) RegistrationHandler(w http.ResponseWriter, r *http.Request)
func (*Guest) VerificationHandler ¶ added in v0.8.0
func (g *Guest) VerificationHandler(w http.ResponseWriter, r *http.Request)
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManagerController ¶
func NewManagerController(e *common.Environment, ds stores.DeviceStore, ls stores.LeaseStore) *Manager
func (*Manager) ManageHandler ¶
func (m *Manager) ManageHandler(w http.ResponseWriter, r *http.Request)
func (*Manager) RegistrationHandler ¶
func (m *Manager) RegistrationHandler(w http.ResponseWriter, r *http.Request)
type OpenID ¶ added in v1.6.0
type OpenID struct {
// contains filtered or unexported fields
}
func NewOpenIDController ¶ added in v1.6.0
func NewOpenIDController(e *common.Environment, us stores.UserStore) *OpenID
func (*OpenID) OpenIDHandler ¶ added in v1.6.0
func (a *OpenID) OpenIDHandler(w http.ResponseWriter, r *http.Request)
OpenIDHandler handles the entire OpenID flow from initial redirect to final token retrieval and session creation.
Click to show internal directories.
Click to hide internal directories.