session

package
v0.0.0-...-8717a1f Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionService

type SessionService struct {
	mock.Mock
}

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

type SimpleSessionService struct {
	CalledMethods map[string]bool
}

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)

Jump to

Keyboard shortcuts

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