Documentation ¶
Index ¶
- func CheckLogin(username string, password string) error
- func GetAdmins() []int
- func GetCurrentUser(r *http.Request) interface{}
- func GetDB() *gorm.DB
- func GetStore() *sessions.CookieStore
- func HandleAccess(r *http.Request) bool
- func Logout(w http.ResponseWriter, r *http.Request)
- func Noescape(str string) template.HTML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLogin ¶
Check login returns an error if the user could not log in
func GetCurrentUser ¶
GetCurrentUser returns the current user
func HandleAccess ¶
HandleAccess returns true if user is authorized to access
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.