Versions in this module Expand all Collapse all v0 v0.0.1 May 16, 2021 Changes in this version + func Init() + type ActiveSessions struct + type ErrorsList map[string][]string + type LoginDetails struct + ConnType string + Pwd string + Un string + type LoginSession struct + LnSessId int + Token string + UserId int + type UserModel struct + Created time.Time + Email string + HashedPassword []byte + Id int + Un string + type UserSessions struct + Errors *UserSessionsErrors + func GetUserSessionsInstance() *UserSessions + func (us *UserSessions) GetUserId(un string) (int, error) + func (us *UserSessions) LogIn(req LoginDetails) (LoginSession, error) + func (us *UserSessions) LogOut(session LoginSession) + func (us *UserSessions) SetUserDataHandle(ud iUserDataStorage) + func (us *UserSessions) SignUp(un, pwd, email string, validationErrors ErrorsList) error + func (us *UserSessions) VerifyLoginSession(session LoginSession) bool + type UserSessionsErrors struct + ErrDuplicateEmail error + ErrDuplicateUsername error + ErrInvalidUserCredentials error + ErrUserDoesNotExist error + type UserSessionsLogger struct + func GetLogger() *UserSessionsLogger + func (l *UserSessionsLogger) SetErrorLogger(logger *log.Logger) + func (l *UserSessionsLogger) SetInfoLogger(logger *log.Logger)