Documentation ¶
Index ¶
- type SessionService
- func (m SessionService) CreateNewAccessToken(user userland.User, refreshTokenID string) (security.AccessToken, error)
- func (m SessionService) CreateRefreshToken(user userland.User, currentSessionID string) (security.AccessToken, error)
- func (m SessionService) CreateSession(userID int, session userland.Session) error
- func (m SessionService) EndOtherSessions(userID int, currentSessionID string) error
- func (m SessionService) EndSession(userID int, currentSessionID string) error
- func (m SessionService) ListSession(userID int) (userland.Sessions, error)
- type SimpleSessionService
- func (m SimpleSessionService) CreateNewAccessToken(user userland.User, refreshTokenID string) (security.AccessToken, error)
- func (m SimpleSessionService) CreateRefreshToken(user userland.User, currentSessionID string) (security.AccessToken, error)
- func (m SimpleSessionService) CreateSession(userID int, session userland.Session) error
- func (m SimpleSessionService) EndOtherSessions(userID int, currentSessionID string) error
- func (m SimpleSessionService) EndSession(userID int, currentSessionID string) error
- func (m SimpleSessionService) ListSession(userID int) (userland.Sessions, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionService ¶
func (SessionService) CreateNewAccessToken ¶
func (m SessionService) CreateNewAccessToken(user userland.User, refreshTokenID string) (security.AccessToken, error)
func (SessionService) CreateRefreshToken ¶
func (m SessionService) CreateRefreshToken(user userland.User, currentSessionID string) (security.AccessToken, error)
func (SessionService) CreateSession ¶
func (m SessionService) CreateSession(userID int, session userland.Session) error
func (SessionService) EndOtherSessions ¶
func (m SessionService) EndOtherSessions(userID int, currentSessionID string) error
func (SessionService) EndSession ¶
func (m SessionService) EndSession(userID int, currentSessionID string) error
func (SessionService) ListSession ¶
func (m SessionService) ListSession(userID int) (userland.Sessions, error)
type SimpleSessionService ¶
func (SimpleSessionService) CreateNewAccessToken ¶
func (m SimpleSessionService) CreateNewAccessToken(user userland.User, refreshTokenID string) (security.AccessToken, error)
func (SimpleSessionService) CreateRefreshToken ¶
func (m SimpleSessionService) CreateRefreshToken(user userland.User, currentSessionID string) (security.AccessToken, error)
func (SimpleSessionService) CreateSession ¶
func (m SimpleSessionService) CreateSession(userID int, session userland.Session) error
func (SimpleSessionService) EndOtherSessions ¶
func (m SimpleSessionService) EndOtherSessions(userID int, currentSessionID string) error
func (SimpleSessionService) EndSession ¶
func (m SimpleSessionService) EndSession(userID int, currentSessionID string) error
func (SimpleSessionService) ListSession ¶
func (m SimpleSessionService) ListSession(userID int) (userland.Sessions, error)
Click to show internal directories.
Click to hide internal directories.