Documentation ¶
Index ¶
- type AuthService
- func (s *AuthService) Authenticate(auth domain.Auth) (*domain.TokenSet, error)
- func (s *AuthService) Deauthenticate(token domain.TokenValue) error
- func (s *AuthService) GetUserFromAuthToken(token domain.TokenValue) (*domain.User, error)
- func (s *AuthService) IsAuthenticated(token domain.TokenValue) (bool, error)
- func (s *AuthService) RefreshToken(token domain.TokenValue) (*domain.TokenSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
AuthService is a mock AuthService.
func (*AuthService) Authenticate ¶
Authenticate mocks AuthService's Authenticate function.
func (*AuthService) Deauthenticate ¶
func (s *AuthService) Deauthenticate(token domain.TokenValue) error
Deauthenticate mocks AuthService's Deauthenticate function.
func (*AuthService) GetUserFromAuthToken ¶
func (s *AuthService) GetUserFromAuthToken(token domain.TokenValue) (*domain.User, error)
GetUser mocks AuthService's GetUser function.
func (*AuthService) IsAuthenticated ¶
func (s *AuthService) IsAuthenticated(token domain.TokenValue) (bool, error)
IsAuthenticated mocks AuthService's IsAuthenticated function.
func (*AuthService) RefreshToken ¶
func (s *AuthService) RefreshToken(token domain.TokenValue) (*domain.TokenSet, error)
Click to show internal directories.
Click to hide internal directories.