mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenFactory

type TokenFactory struct {
	mock.Mock
}

TokenFactory is an autogenerated mock type for the TokenFactory type

func (*TokenFactory) CreateToken

func (_m *TokenFactory) CreateToken(keyUri string, clientUID uuid.UUID, username string, role string) (string, error)

CreateToken provides a mock function with given fields: keyUri, clientUID, username, role

type TokenFactorySelector

type TokenFactorySelector struct {
	mock.Mock
}

TokenFactorySelector is an autogenerated mock type for the TokenFactorySelector type

func (*TokenFactorySelector) Select

func (_m *TokenFactorySelector) Select(tokenType int) jwthelpers.TokenFactory

Select provides a mock function with given fields: tokenType

type TokenSigner

type TokenSigner struct {
	mock.Mock
}

TokenSigner is an autogenerated mock type for the TokenSigner type

func (*TokenSigner) SignToken

func (_m *TokenSigner) SignToken(token *jwt.Token, key []byte) (string, error)

SignToken provides a mock function with given fields: token, key

Jump to

Keyboard shortcuts

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