authservicemock

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService struct {
	mock.Mock
}

AuthService is a mock AuthService.

func Provide

func Provide() *AuthService

Provide provides a mock AuthService.

func (*AuthService) Authenticate

func (s *AuthService) Authenticate(auth domain.Auth) (*domain.TokenSet, error)

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)

Jump to

Keyboard shortcuts

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