Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrGetSession = "error while get session" ErrSetSession = "error while set session" ErrDeleteSession = "error while delete session" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRepo ¶
type AuthRepo interface { GetSession(sessionId string) (*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 GetSize() (int, error) }
Click to show internal directories.
Click to hide internal directories.