Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTService ¶
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:
Click to show internal directories.
Click to hide internal directories.