mocks

package
v0.0.0-...-dc61bab Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTService

type JWTService struct {
	mock.Mock
}

JWTService is an autogenerated mock type for the JWTService type

func NewJWTService

func NewJWTService(t mockConstructorTestingTNewJWTService) *JWTService

NewJWTService creates a new instance of JWTService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*JWTService) CreateToken

func (_m *JWTService) CreateToken(id string) (string, string, error)

CreateToken provides a mock function with given fields: id

func (*JWTService) ParseToken

func (_m *JWTService) ParseToken(jwt string) (*token.JWTCustomClaims, error)

ParseToken provides a mock function with given fields: jwt

func (*JWTService) TokenTTL

func (_m *JWTService) TokenTTL() time.Duration

TokenTTL provides a mock function with given fields:

Jump to

Keyboard shortcuts

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