Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSetSession = errors.New("error while set session") ErrDeleteSession = errors.New("error while delete session") ErrInvalidLoginOrPassword = errors.New("invalid login or password") ErrUserAlreadyExist = errors.New("user already exist") ErrDatabaseUnexpected = errors.New("database unexpected error") )
Functions ¶
This section is empty.
Types ¶
type AuthAgent ¶
type AuthAgent interface { GetSession(sessionId string) (*auth_microservice_domain.Session, error) SetNewAuthorizedSession(userId uint, expires time.Duration) (sessionId string, err error) MakeSessionAuthorized(sessionId string, userId uint) (newSessionId string, err error) DeleteSession(sessionId string) error IsSession(sessionId string) bool IsAuthSession(sessionId string) bool }
Click to show internal directories.
Click to hide internal directories.