mocks

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtToken

type JwtToken struct {
	mock.Mock
}

JwtToken is an autogenerated mock type for the JwtToken type

func NewJwtToken

func NewJwtToken(t mockConstructorTestingTNewJwtToken) *JwtToken

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

func (*JwtToken) CreateAccessToken

func (_m *JwtToken) CreateAccessToken(_a0 context.Context, _a1 model.SessionUser) (string, *time.Time, error)

CreateAccessToken provides a mock function with given fields: _a0, _a1

func (*JwtToken) CreateRefreshToken added in v0.0.8

func (_m *JwtToken) CreateRefreshToken(_a0 context.Context, _a1 model.SessionUser) (string, *time.Time, error)

CreateRefreshToken provides a mock function with given fields: _a0, _a1

func (*JwtToken) CreateTokenCustomDuration added in v0.0.8

func (_m *JwtToken) CreateTokenCustomDuration(_a0 context.Context, _a1 model.SessionUser, _a2 time.Duration) (string, *time.Time, error)

CreateTokenCustomDuration provides a mock function with given fields: _a0, _a1, _a2

func (*JwtToken) Parse

func (_m *JwtToken) Parse(ctx context.Context, tokenString string) (*model.SessionUser, error)

Parse provides a mock function with given fields: ctx, tokenString

func (*JwtToken) SetSecretKey

func (_m *JwtToken) SetSecretKey(secretKey []byte, signMethod jwt.SigningMethod)

SetSecretKey provides a mock function with given fields: secretKey, signMethod

Jump to

Keyboard shortcuts

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