Documentation
¶
Index ¶
- func GetSessionStore() memstore.Store
- type AuthService
- func (as *AuthService) CheckUser(username string, password string) (bool, string)
- func (as *AuthService) GetSessionStatus(session sessions.Session) (bool, string)
- func (as *AuthService) Login(session sessions.Session, userId string)
- func (as *AuthService) Logout(session sessions.Session)
- func (as *AuthService) RegisterUser(username string, password string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessionStore ¶
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) Logout ¶
func (as *AuthService) Logout(session sessions.Session)
func (*AuthService) RegisterUser ¶
func (as *AuthService) RegisterUser(username string, password string) (bool, error)
Click to show internal directories.
Click to hide internal directories.