Documentation ¶
Index ¶
- type AccessTokenCacheDs
- func (_m *AccessTokenCacheDs) CreateAccessToken(ctx context.Context, accessToken *domain.AccessToken) error
- func (_m *AccessTokenCacheDs) DeleteAccessToken(ctx context.Context, id uuid.UUID) error
- func (_m *AccessTokenCacheDs) GetAccessTokenById(ctx context.Context, id uuid.UUID) (*domain.AccessToken, error)
- type AccessTokenDatabaseDs
- func (_m *AccessTokenDatabaseDs) CreateAccessToken(ctx context.Context, accessToken *domain.AccessToken) (*domain.AccessToken, error)
- func (_m *AccessTokenDatabaseDs) DeleteAccessTokenByUserId(ctx context.Context, userId uuid.UUID) (*uuid.UUID, error)
- func (_m *AccessTokenDatabaseDs) GetAccessTokenById(ctx context.Context, id uuid.UUID) (*domain.AccessToken, error)
- type AccessTokenRepository
- func (_m *AccessTokenRepository) CreateAccessToken(ctx context.Context, userId uuid.UUID, refreshTokenId uuid.UUID) (*domain.AccessToken, error)
- func (_m *AccessTokenRepository) DeleteAccessTokenByUserId(ctx context.Context, userId uuid.UUID) error
- func (_m *AccessTokenRepository) GetAccessToken(ctx context.Context, id uuid.UUID) (*domain.AccessToken, error)
- type AuthenticationService
- type DBTX
- func (_m *DBTX) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)
- func (_m *DBTX) PrepareContext(_a0 context.Context, _a1 string) (*sql.Stmt, error)
- func (_m *DBTX) QueryContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (*sql.Rows, error)
- func (_m *DBTX) QueryRowContext(_a0 context.Context, _a1 string, _a2 ...interface{}) *sql.Row
- type HashDatasource
- type JwtDatasource
- type NoteCacheDs
- func (_m *NoteCacheDs) CreateNote(ctx context.Context, note *domain.Note) (*domain.Note, error)
- func (_m *NoteCacheDs) DeleteNote(ctx context.Context, id uuid.UUID) error
- func (_m *NoteCacheDs) GetNote(ctx context.Context, id uuid.UUID) (*domain.Note, error)
- func (_m *NoteCacheDs) ListNote(ctx context.Context) (*[]domain.Note, error)
- func (_m *NoteCacheDs) UpdateNote(ctx context.Context, note *domain.Note) (*domain.Note, error)
- type NoteDatabaseDs
- func (_m *NoteDatabaseDs) CreateNote(ctx context.Context, note *domain.Note) (*domain.Note, error)
- func (_m *NoteDatabaseDs) DeleteNote(ctx context.Context, id uuid.UUID) error
- func (_m *NoteDatabaseDs) GetNote(ctx context.Context, id uuid.UUID) (*domain.Note, error)
- func (_m *NoteDatabaseDs) ListNotesByUserId(ctx context.Context, user_id uuid.UUID) (*[]domain.Note, error)
- func (_m *NoteDatabaseDs) UpdateNote(ctx context.Context, note *domain.Note) (*domain.Note, error)
- type NoteRepository
- func (_m *NoteRepository) CreateNote(ctx context.Context, note *domain.Note) (*domain.Note, error)
- func (_m *NoteRepository) DeleteNote(ctx context.Context, id uuid.UUID) error
- func (_m *NoteRepository) GetNote(ctx context.Context, id uuid.UUID) (*domain.Note, error)
- func (_m *NoteRepository) ListNote(ctx context.Context) (*[]domain.Note, error)
- func (_m *NoteRepository) UpdateNote(ctx context.Context, note *domain.Note) (*domain.Note, error)
- type RefreshTokenCacheDs
- func (_m *RefreshTokenCacheDs) CreateRefreshToken(ctx context.Context, refreshToken *domain.RefreshToken) error
- func (_m *RefreshTokenCacheDs) DeleteRefreshToken(ctx context.Context, id uuid.UUID) error
- func (_m *RefreshTokenCacheDs) GetRefreshToken(ctx context.Context, id uuid.UUID) (*domain.RefreshToken, error)
- type RefreshTokenDatabaseDs
- func (_m *RefreshTokenDatabaseDs) CreateRefreshToken(ctx context.Context, refreshToken *domain.RefreshToken) (*domain.RefreshToken, error)
- func (_m *RefreshTokenDatabaseDs) DeleteRefreshTokenByUserId(ctx context.Context, userId uuid.UUID) (*uuid.UUID, error)
- func (_m *RefreshTokenDatabaseDs) GetRefreshTokenById(ctx context.Context, id uuid.UUID) (*domain.RefreshToken, error)
- type RefreshTokenRepository
- func (_m *RefreshTokenRepository) CreateRefreshToken(ctx context.Context, refreshToken *domain.RefreshToken) (*domain.RefreshToken, error)
- func (_m *RefreshTokenRepository) DeleteRefreshTokenByUserId(ctx context.Context, userId uuid.UUID) error
- func (_m *RefreshTokenRepository) GetRefreshToken(ctx context.Context, id uuid.UUID) (*domain.RefreshToken, error)
- type UserCacheDs
- func (_m *UserCacheDs) CreateUser(ctx context.Context, user *domain.User) error
- func (_m *UserCacheDs) DeleteUser(ctx context.Context, id uuid.UUID) error
- func (_m *UserCacheDs) GetUserByEmail(ctx context.Context, email string) (*domain.User, error)
- func (_m *UserCacheDs) GetUserById(ctx context.Context, id uuid.UUID) (*domain.User, error)
- func (_m *UserCacheDs) UpdateUser(ctx context.Context, user *domain.User) error
- type UserDatabaseDs
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenCacheDs ¶
AccessTokenCacheDs is an autogenerated mock type for the AccessTokenCacheDs type
func NewAccessTokenCacheDs ¶
func NewAccessTokenCacheDs(t interface { mock.TestingT Cleanup(func()) }) *AccessTokenCacheDs
NewAccessTokenCacheDs creates a new instance of AccessTokenCacheDs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AccessTokenCacheDs) CreateAccessToken ¶
func (_m *AccessTokenCacheDs) CreateAccessToken(ctx context.Context, accessToken *domain.AccessToken) error
CreateAccessToken provides a mock function with given fields: ctx, accessToken
func (*AccessTokenCacheDs) DeleteAccessToken ¶
DeleteAccessToken provides a mock function with given fields: ctx, id
func (*AccessTokenCacheDs) GetAccessTokenById ¶
func (_m *AccessTokenCacheDs) GetAccessTokenById(ctx context.Context, id uuid.UUID) (*domain.AccessToken, error)
GetAccessTokenById provides a mock function with given fields: ctx, id
type AccessTokenDatabaseDs ¶
AccessTokenDatabaseDs is an autogenerated mock type for the AccessTokenDatabaseDs type
func NewAccessTokenDatabaseDs ¶
func NewAccessTokenDatabaseDs(t interface { mock.TestingT Cleanup(func()) }) *AccessTokenDatabaseDs
NewAccessTokenDatabaseDs creates a new instance of AccessTokenDatabaseDs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AccessTokenDatabaseDs) CreateAccessToken ¶
func (_m *AccessTokenDatabaseDs) CreateAccessToken(ctx context.Context, accessToken *domain.AccessToken) (*domain.AccessToken, error)
CreateAccessToken provides a mock function with given fields: ctx, accessToken
func (*AccessTokenDatabaseDs) DeleteAccessTokenByUserId ¶
func (_m *AccessTokenDatabaseDs) DeleteAccessTokenByUserId(ctx context.Context, userId uuid.UUID) (*uuid.UUID, error)
DeleteAccessTokenByUserId provides a mock function with given fields: ctx, userId
func (*AccessTokenDatabaseDs) GetAccessTokenById ¶
func (_m *AccessTokenDatabaseDs) GetAccessTokenById(ctx context.Context, id uuid.UUID) (*domain.AccessToken, error)
GetAccessTokenById provides a mock function with given fields: ctx, id
type AccessTokenRepository ¶
AccessTokenRepository is an autogenerated mock type for the AccessTokenRepository type
func NewAccessTokenRepository ¶
func NewAccessTokenRepository(t interface { mock.TestingT Cleanup(func()) }) *AccessTokenRepository
NewAccessTokenRepository creates a new instance of AccessTokenRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AccessTokenRepository) CreateAccessToken ¶
func (_m *AccessTokenRepository) CreateAccessToken(ctx context.Context, userId uuid.UUID, refreshTokenId uuid.UUID) (*domain.AccessToken, error)
CreateAccessToken provides a mock function with given fields: ctx, userId, refreshTokenId
func (*AccessTokenRepository) DeleteAccessTokenByUserId ¶
func (_m *AccessTokenRepository) DeleteAccessTokenByUserId(ctx context.Context, userId uuid.UUID) error
DeleteAccessTokenByUserId provides a mock function with given fields: ctx, userId
func (*AccessTokenRepository) GetAccessToken ¶
func (_m *AccessTokenRepository) GetAccessToken(ctx context.Context, id uuid.UUID) (*domain.AccessToken, error)
GetAccessToken provides a mock function with given fields: ctx, id
type AuthenticationService ¶
AuthenticationService is an autogenerated mock type for the AuthenticationService type
func NewAuthenticationService ¶
func NewAuthenticationService(t interface { mock.TestingT Cleanup(func()) }) *AuthenticationService
NewAuthenticationService creates a new instance of AuthenticationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*AuthenticationService) SignIn ¶
func (_m *AuthenticationService) SignIn(ctx context.Context, email string, password string) (*service.SignInResponse, error)
SignIn provides a mock function with given fields: ctx, email, password
type DBTX ¶
DBTX is an autogenerated mock type for the DBTX type
func NewDBTX ¶
NewDBTX creates a new instance of DBTX. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DBTX) ExecContext ¶
func (_m *DBTX) ExecContext(_a0 context.Context, _a1 string, _a2 ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: _a0, _a1, _a2
func (*DBTX) PrepareContext ¶
PrepareContext provides a mock function with given fields: _a0, _a1
type HashDatasource ¶
HashDatasource is an autogenerated mock type for the HashDatasource type
func NewHashDatasource ¶
func NewHashDatasource(t interface { mock.TestingT Cleanup(func()) }) *HashDatasource
NewHashDatasource creates a new instance of HashDatasource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type JwtDatasource ¶
JwtDatasource is an autogenerated mock type for the JwtDatasource type
func NewJwtDatasource ¶
func NewJwtDatasource(t interface { mock.TestingT Cleanup(func()) }) *JwtDatasource
NewJwtDatasource creates a new instance of JwtDatasource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*JwtDatasource) CreateJWT ¶
func (_m *JwtDatasource) CreateJWT(tokenMetadata *domain.JWTMetadata, expirationTime time.Time) (*string, error)
CreateJWT provides a mock function with given fields: tokenMetadata, expirationTime
func (*JwtDatasource) ParseJWT ¶
func (_m *JwtDatasource) ParseJWT(tokenMetadata *domain.JWTMetadata) error
ParseJWT provides a mock function with given fields: tokenMetadata
type NoteCacheDs ¶
NoteCacheDs is an autogenerated mock type for the NoteCacheDs type
func NewNoteCacheDs ¶
func NewNoteCacheDs(t interface { mock.TestingT Cleanup(func()) }) *NoteCacheDs
NewNoteCacheDs creates a new instance of NoteCacheDs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*NoteCacheDs) CreateNote ¶
CreateNote provides a mock function with given fields: ctx, note
func (*NoteCacheDs) DeleteNote ¶
DeleteNote provides a mock function with given fields: ctx, id
func (*NoteCacheDs) UpdateNote ¶
UpdateNote provides a mock function with given fields: ctx, note
type NoteDatabaseDs ¶
NoteDatabaseDs is an autogenerated mock type for the NoteDatabaseDs type
func NewNoteDatabaseDs ¶
func NewNoteDatabaseDs(t interface { mock.TestingT Cleanup(func()) }) *NoteDatabaseDs
NewNoteDatabaseDs creates a new instance of NoteDatabaseDs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*NoteDatabaseDs) CreateNote ¶
CreateNote provides a mock function with given fields: ctx, note
func (*NoteDatabaseDs) DeleteNote ¶
DeleteNote provides a mock function with given fields: ctx, id
func (*NoteDatabaseDs) ListNotesByUserId ¶
func (_m *NoteDatabaseDs) ListNotesByUserId(ctx context.Context, user_id uuid.UUID) (*[]domain.Note, error)
ListNotesByUserId provides a mock function with given fields: ctx, user_id
func (*NoteDatabaseDs) UpdateNote ¶
UpdateNote provides a mock function with given fields: ctx, note
type NoteRepository ¶
NoteRepository is an autogenerated mock type for the NoteRepository type
func NewNoteRepository ¶
func NewNoteRepository(t interface { mock.TestingT Cleanup(func()) }) *NoteRepository
NewNoteRepository creates a new instance of NoteRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*NoteRepository) CreateNote ¶
CreateNote provides a mock function with given fields: ctx, note
func (*NoteRepository) DeleteNote ¶
DeleteNote provides a mock function with given fields: ctx, id
func (*NoteRepository) UpdateNote ¶
UpdateNote provides a mock function with given fields: ctx, note
type RefreshTokenCacheDs ¶
RefreshTokenCacheDs is an autogenerated mock type for the RefreshTokenCacheDs type
func NewRefreshTokenCacheDs ¶
func NewRefreshTokenCacheDs(t interface { mock.TestingT Cleanup(func()) }) *RefreshTokenCacheDs
NewRefreshTokenCacheDs creates a new instance of RefreshTokenCacheDs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RefreshTokenCacheDs) CreateRefreshToken ¶
func (_m *RefreshTokenCacheDs) CreateRefreshToken(ctx context.Context, refreshToken *domain.RefreshToken) error
CreateRefreshToken provides a mock function with given fields: ctx, refreshToken
func (*RefreshTokenCacheDs) DeleteRefreshToken ¶
DeleteRefreshToken provides a mock function with given fields: ctx, id
func (*RefreshTokenCacheDs) GetRefreshToken ¶
func (_m *RefreshTokenCacheDs) GetRefreshToken(ctx context.Context, id uuid.UUID) (*domain.RefreshToken, error)
GetRefreshToken provides a mock function with given fields: ctx, id
type RefreshTokenDatabaseDs ¶
RefreshTokenDatabaseDs is an autogenerated mock type for the RefreshTokenDatabaseDs type
func NewRefreshTokenDatabaseDs ¶
func NewRefreshTokenDatabaseDs(t interface { mock.TestingT Cleanup(func()) }) *RefreshTokenDatabaseDs
NewRefreshTokenDatabaseDs creates a new instance of RefreshTokenDatabaseDs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RefreshTokenDatabaseDs) CreateRefreshToken ¶
func (_m *RefreshTokenDatabaseDs) CreateRefreshToken(ctx context.Context, refreshToken *domain.RefreshToken) (*domain.RefreshToken, error)
CreateRefreshToken provides a mock function with given fields: ctx, refreshToken
func (*RefreshTokenDatabaseDs) DeleteRefreshTokenByUserId ¶
func (_m *RefreshTokenDatabaseDs) DeleteRefreshTokenByUserId(ctx context.Context, userId uuid.UUID) (*uuid.UUID, error)
DeleteRefreshTokenByUserId provides a mock function with given fields: ctx, userId
func (*RefreshTokenDatabaseDs) GetRefreshTokenById ¶
func (_m *RefreshTokenDatabaseDs) GetRefreshTokenById(ctx context.Context, id uuid.UUID) (*domain.RefreshToken, error)
GetRefreshTokenById provides a mock function with given fields: ctx, id
type RefreshTokenRepository ¶
RefreshTokenRepository is an autogenerated mock type for the RefreshTokenRepository type
func NewRefreshTokenRepository ¶
func NewRefreshTokenRepository(t interface { mock.TestingT Cleanup(func()) }) *RefreshTokenRepository
NewRefreshTokenRepository creates a new instance of RefreshTokenRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RefreshTokenRepository) CreateRefreshToken ¶
func (_m *RefreshTokenRepository) CreateRefreshToken(ctx context.Context, refreshToken *domain.RefreshToken) (*domain.RefreshToken, error)
CreateRefreshToken provides a mock function with given fields: ctx, refreshToken
func (*RefreshTokenRepository) DeleteRefreshTokenByUserId ¶
func (_m *RefreshTokenRepository) DeleteRefreshTokenByUserId(ctx context.Context, userId uuid.UUID) error
DeleteRefreshTokenByUserId provides a mock function with given fields: ctx, userId
func (*RefreshTokenRepository) GetRefreshToken ¶
func (_m *RefreshTokenRepository) GetRefreshToken(ctx context.Context, id uuid.UUID) (*domain.RefreshToken, error)
GetRefreshToken provides a mock function with given fields: ctx, id
type UserCacheDs ¶
UserCacheDs is an autogenerated mock type for the UserCacheDs type
func NewUserCacheDs ¶
func NewUserCacheDs(t interface { mock.TestingT Cleanup(func()) }) *UserCacheDs
NewUserCacheDs creates a new instance of UserCacheDs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UserCacheDs) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, user
func (*UserCacheDs) DeleteUser ¶
DeleteUser provides a mock function with given fields: ctx, id
func (*UserCacheDs) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: ctx, email
func (*UserCacheDs) GetUserById ¶
GetUserById provides a mock function with given fields: ctx, id
func (*UserCacheDs) UpdateUser ¶
UpdateUser provides a mock function with given fields: ctx, user
type UserDatabaseDs ¶
UserDatabaseDs is an autogenerated mock type for the UserDatabaseDs type
func NewUserDatabaseDs ¶
func NewUserDatabaseDs(t interface { mock.TestingT Cleanup(func()) }) *UserDatabaseDs
NewUserDatabaseDs creates a new instance of UserDatabaseDs. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UserDatabaseDs) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, user
func (*UserDatabaseDs) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: ctx, email
func (*UserDatabaseDs) GetUserById ¶
GetUserById provides a mock function with given fields: ctx, id
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func NewUserRepository ¶
func NewUserRepository(t interface { mock.TestingT Cleanup(func()) }) *UserRepository
NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UserRepository) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, user
func (*UserRepository) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: ctx, email
func (*UserRepository) GetUserById ¶
GetUserById provides a mock function with given fields: ctx, id
Source Files ¶
- AccessTokenCacheDs.go
- AccessTokenDatabaseDs.go
- AccessTokenRepository.go
- AuthenticationService.go
- DBTX.go
- HashDatasource.go
- JwtDatasource.go
- NoteCacheDs.go
- NoteDatabaseDs.go
- NoteRepository.go
- RefreshTokenCacheDs.go
- RefreshTokenDatabaseDs.go
- RefreshTokenRepository.go
- UserCacheDs.go
- UserDatabaseDs.go
- UserRepository.go