Documentation
¶
Index ¶
- type JwtToken
- func (_m *JwtToken) CreateAccessToken(_a0 context.Context, _a1 model.SessionUser) (string, *time.Time, error)
- func (_m *JwtToken) CreateRefreshToken(_a0 context.Context, _a1 model.SessionUser) (string, *time.Time, error)
- func (_m *JwtToken) CreateTokenCustomDuration(_a0 context.Context, _a1 model.SessionUser, _a2 time.Duration) (string, *time.Time, error)
- func (_m *JwtToken) Parse(ctx context.Context, tokenString string) (*model.SessionUser, error)
- func (_m *JwtToken) SetSecretKey(secretKey []byte, signMethod jwt.SigningMethod)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtToken ¶
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) SetSecretKey ¶
func (_m *JwtToken) SetSecretKey(secretKey []byte, signMethod jwt.SigningMethod)
SetSecretKey provides a mock function with given fields: secretKey, signMethod
Click to show internal directories.
Click to hide internal directories.