Versions in this module Expand all Collapse all v1 v1.2.0 Mar 5, 2022 Changes in this version + var URI = ...() + func GenLoginRoute(serve func(writer http.ResponseWriter), ...) func(http.ResponseWriter, *http.Request) + func GenLoginWall(ifNotAuthed func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request) bool + func GenSignupRoute(serve func(http.ResponseWriter), getSignupData func(*http.Request) SignupData, ...) func(writer http.ResponseWriter, r *http.Request) + func SetURI(uri string) + type LoginData struct + Password string + Username string + type SignupData struct + Password string + Username string + type Token struct + Token string + func GenToken(username string, password string) Token + func (t Token) IsEqualToTokenOf(username string, password string) (bool, error) + type User struct + Token string + Username string + func GetUser(filter bson.D) (bool, User) + type UserDataHandle struct + func NewDataHandle(filter bson.D) UserDataHandle + func (u *UserDataHandle) GetDataHandle() *map[string]interface{} + func (u *UserDataHandle) Push() v1.0.0 Feb 2, 2022