auth

package
v0.0.0-...-327d889 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSessionStore

func GetSessionStore() memstore.Store

Types

type AuthService

type AuthService struct {
	// contains filtered or unexported fields
}

func New

func New(db *persistence.DB) *AuthService

func (*AuthService) CheckUser

func (as *AuthService) CheckUser(username string, password string) (bool, string)

func (*AuthService) GetSessionStatus

func (as *AuthService) GetSessionStatus(session sessions.Session) (bool, string)

func (*AuthService) Login

func (as *AuthService) Login(session sessions.Session, userId string)

func (*AuthService) Logout

func (as *AuthService) Logout(session sessions.Session)

func (*AuthService) RegisterUser

func (as *AuthService) RegisterUser(username string, password string) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL