Documentation
¶
Index ¶
- type Claims
- type Dashboard
- func (d *Dashboard) AuthMiddleware(next http.Handler) http.HandlerFunc
- func (d *Dashboard) HandleChangePassword(w http.ResponseWriter, r *http.Request)
- func (d *Dashboard) HandleLogin(w http.ResponseWriter, r *http.Request)
- func (d *Dashboard) HandleLogout(w http.ResponseWriter, r *http.Request)
- func (d *Dashboard) Routes() http.Handler
- type Options
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dashboard ¶
type Dashboard struct {
// contains filtered or unexported fields
}
func (*Dashboard) AuthMiddleware ¶
func (d *Dashboard) AuthMiddleware(next http.Handler) http.HandlerFunc
func (*Dashboard) HandleChangePassword ¶
func (d *Dashboard) HandleChangePassword(w http.ResponseWriter, r *http.Request)
func (*Dashboard) HandleLogin ¶
func (d *Dashboard) HandleLogin(w http.ResponseWriter, r *http.Request)
func (*Dashboard) HandleLogout ¶
func (d *Dashboard) HandleLogout(w http.ResponseWriter, r *http.Request)
type User ¶
type User struct {
Username string `json:"username"`
Hash string `json:"hash"`
Role string `json:"role"`
MustChange bool `json:"must_change"`
PasswordSetAt int64 `json:"password_set_at"`
FailedAttempts int `json:"failed_attempts"`
LockedUntil int64 `json:"locked_until"`
CreatedAt int64 `json:"created_at"`
}
Click to show internal directories.
Click to hide internal directories.