Documentation ¶
Index ¶
- type IDGenerator
- func (_m *IDGenerator) GenerateCategoryID() (string, error)
- func (_m *IDGenerator) GenerateCommentID() (string, error)
- func (_m *IDGenerator) GenerateLikeID() (string, error)
- func (_m *IDGenerator) GenerateModeratorID() (string, error)
- func (_m *IDGenerator) GenerateReportID() (string, error)
- func (_m *IDGenerator) GenerateThreadFollowID() (string, error)
- func (_m *IDGenerator) GenerateThreadID() (string, error)
- func (_m *IDGenerator) GenerateUserFollowID() (string, error)
- func (_m *IDGenerator) GenerateUserID() (string, error)
- type PasswordGenerator
- type TokenGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDGenerator ¶
IDGenerator is an autogenerated mock type for the IDGenerator type
func NewIDGenerator ¶
func NewIDGenerator(t mockConstructorTestingTNewIDGenerator) *IDGenerator
NewIDGenerator creates a new instance of IDGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IDGenerator) GenerateCategoryID ¶
func (_m *IDGenerator) GenerateCategoryID() (string, error)
GenerateCategoryID provides a mock function with given fields:
func (*IDGenerator) GenerateCommentID ¶
func (_m *IDGenerator) GenerateCommentID() (string, error)
GenerateCommentID provides a mock function with given fields:
func (*IDGenerator) GenerateLikeID ¶
func (_m *IDGenerator) GenerateLikeID() (string, error)
GenerateLikeID provides a mock function with given fields:
func (*IDGenerator) GenerateModeratorID ¶
func (_m *IDGenerator) GenerateModeratorID() (string, error)
GenerateModeratorID provides a mock function with given fields:
func (*IDGenerator) GenerateReportID ¶
func (_m *IDGenerator) GenerateReportID() (string, error)
GenerateReportID provides a mock function with given fields:
func (*IDGenerator) GenerateThreadFollowID ¶
func (_m *IDGenerator) GenerateThreadFollowID() (string, error)
GenerateThreadFollowID provides a mock function with given fields:
func (*IDGenerator) GenerateThreadID ¶
func (_m *IDGenerator) GenerateThreadID() (string, error)
GenerateThreadID provides a mock function with given fields:
func (*IDGenerator) GenerateUserFollowID ¶
func (_m *IDGenerator) GenerateUserFollowID() (string, error)
GenerateUserFollowID provides a mock function with given fields:
func (*IDGenerator) GenerateUserID ¶
func (_m *IDGenerator) GenerateUserID() (string, error)
GenerateUserID provides a mock function with given fields:
type PasswordGenerator ¶
PasswordGenerator is an autogenerated mock type for the PasswordGenerator type
func NewPasswordGenerator ¶
func NewPasswordGenerator(t mockConstructorTestingTNewPasswordGenerator) *PasswordGenerator
NewPasswordGenerator creates a new instance of PasswordGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PasswordGenerator) CompareHashAndPassword ¶
func (_m *PasswordGenerator) CompareHashAndPassword(hashedPassword []byte, password []byte) error
CompareHashAndPassword provides a mock function with given fields: hashedPassword, password
func (*PasswordGenerator) GenerateFromPassword ¶
func (_m *PasswordGenerator) GenerateFromPassword(password []byte, cost int) ([]byte, error)
GenerateFromPassword provides a mock function with given fields: password, cost
type TokenGenerator ¶
TokenGenerator is an autogenerated mock type for the TokenGenerator type
func NewTokenGenerator ¶
func NewTokenGenerator(t mockConstructorTestingTNewTokenGenerator) *TokenGenerator
NewTokenGenerator creates a new instance of TokenGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TokenGenerator) ExtractToken ¶
func (_m *TokenGenerator) ExtractToken(c echo.Context) generator.TokenPayload
ExtractToken provides a mock function with given fields: c
func (*TokenGenerator) GenerateToken ¶
func (_m *TokenGenerator) GenerateToken(payload generator.TokenPayload) (string, error)
GenerateToken provides a mock function with given fields: payload