Documentation ¶
Index ¶
- Variables
- func ApiAuth(next http.Handler) http.Handler
- func ApiPermissionManageTemplates(next http.Handler) http.Handler
- func ApiPermissionManageUsers(next http.Handler) http.Handler
- func ApiPermissionManageUsersOrSelf(next http.Handler) http.Handler
- func ApiPermissionManageVolumes(next http.Handler) http.Handler
- func DeleteSessionCookie(w http.ResponseWriter)
- func GetBearerToken(w http.ResponseWriter, r *http.Request) string
- func GetSessionFromCookie(r *http.Request) *model.Session
- func Initialize()
- func LeafServerAuth(next http.Handler) http.Handler
- func WebAuth(next http.Handler) http.Handler
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HasUsers bool
)
Functions ¶
func DeleteSessionCookie ¶
func DeleteSessionCookie(w http.ResponseWriter)
func GetBearerToken ¶ added in v0.9.0
func GetBearerToken(w http.ResponseWriter, r *http.Request) string
func Initialize ¶
func Initialize()
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.