Documentation ¶
Index ¶
- type MockImageRepository
- type MockTokenRepository
- func (m *MockTokenRepository) DeleteRefreshToken(ctx context.Context, userID string, prevTokenID string) error
- func (m *MockTokenRepository) DeleteUserRefreshTokens(ctx context.Context, userID string) error
- func (m *MockTokenRepository) SetRefreshToken(ctx context.Context, userID string, tokenID string, expiresIn time.Duration) error
- type MockTokenService
- func (m *MockTokenService) NewPairFromUser(ctx context.Context, u *models.User, prevTokenID string) (*models.TokenPair, error)
- func (m *MockTokenService) Signout(ctx context.Context, uid uuid.UUID) error
- func (m *MockTokenService) ValidateIDToken(tokenString string) (*models.User, error)
- func (m *MockTokenService) ValidateRefreshToken(refreshTokenString string) (*models.RefreshToken, error)
- type MockUserRepository
- func (m *MockUserRepository) Create(ctx context.Context, u *models.User) error
- func (m *MockUserRepository) FindByEmail(ctx context.Context, email string) (*models.User, error)
- func (m *MockUserRepository) FindByID(ctx context.Context, uid uuid.UUID) (*models.User, error)
- func (m *MockUserRepository) Update(ctx context.Context, u *models.User) error
- func (m *MockUserRepository) UpdateImage(ctx context.Context, uid uuid.UUID, imageURL string) (*models.User, error)
- type MockUserService
- func (m *MockUserService) ClearProfileImage(ctx context.Context, uid uuid.UUID) error
- func (m *MockUserService) Get(ctx context.Context, uid uuid.UUID) (*models.User, error)
- func (m *MockUserService) SetProfileImage(ctx context.Context, uid uuid.UUID, imageFileHeader *multipart.FileHeader) (*models.User, error)
- func (m *MockUserService) Signin(ctx context.Context, u *models.User) error
- func (m *MockUserService) Signup(ctx context.Context, u *models.User) error
- func (m *MockUserService) UpdateDetails(ctx context.Context, u *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockImageRepository ¶
MockImageRepository Mock type of models.ImageRepository
func (*MockImageRepository) DeleteProfile ¶
func (m *MockImageRepository) DeleteProfile(ctx context.Context, objName string) error
DeleteProfile Mock of models.ImageRepository DeleteProfile
func (*MockImageRepository) UpdateProfile ¶
func (m *MockImageRepository) UpdateProfile(ctx context.Context, objName string, imageFile multipart.File) (string, error)
UpdateProfile Mock of models.ImageRepository UpdateProfile
type MockTokenRepository ¶
MockTokenRepository Mock type for models.TokenRepository
func (*MockTokenRepository) DeleteRefreshToken ¶
func (m *MockTokenRepository) DeleteRefreshToken(ctx context.Context, userID string, prevTokenID string) error
DeleteRefreshToken Mock of models.TokenRepository DeleteRefreshToken
func (*MockTokenRepository) DeleteUserRefreshTokens ¶
func (m *MockTokenRepository) DeleteUserRefreshTokens(ctx context.Context, userID string) error
DeleteUserRefreshTokens Mock of models.TokenRepository DeleteUserRefreshTokens
func (*MockTokenRepository) SetRefreshToken ¶
func (m *MockTokenRepository) SetRefreshToken(ctx context.Context, userID string, tokenID string, expiresIn time.Duration) error
SetRefreshToken Mock of models.TokenRepository SetRefreshToken
type MockTokenService ¶
MockTokenService Mock type for models.TokenService
func (*MockTokenService) NewPairFromUser ¶
func (m *MockTokenService) NewPairFromUser(ctx context.Context, u *models.User, prevTokenID string) (*models.TokenPair, error)
NewPairFromUser Mock of models.TokenService NewPairFromUser
func (*MockTokenService) ValidateIDToken ¶
func (m *MockTokenService) ValidateIDToken(tokenString string) (*models.User, error)
ValidateIDToken Mock of models.TokenService ValidateIDToken
func (*MockTokenService) ValidateRefreshToken ¶
func (m *MockTokenService) ValidateRefreshToken(refreshTokenString string) (*models.RefreshToken, error)
ValidateRefreshToken Mock of models.TokenService ValidateRefreshToken
type MockUserRepository ¶
MockUserRepository Mock type for models.UserRepository
func (*MockUserRepository) FindByEmail ¶
FindByEmail Mock of models.UserRepository FindByEmail
type MockUserService ¶
MockUserService Mock type for models.UserService
func (*MockUserService) ClearProfileImage ¶
ClearProfileImage Mock of models.UserService ClearProfileImage
func (*MockUserService) SetProfileImage ¶
func (m *MockUserService) SetProfileImage(ctx context.Context, uid uuid.UUID, imageFileHeader *multipart.FileHeader) (*models.User, error)
SetProfileImage Mock of models.UserService SetProfileImage
func (*MockUserService) UpdateDetails ¶
UpdateDetails Mock of models.UserService UpdateDetails