Documentation ¶
Index ¶
- type MockDBScanInfosRepository
- func (repo MockDBScanInfosRepository) DeleteByID(ctx context.Context, id string) error
- func (repo MockDBScanInfosRepository) FindAll(ctx context.Context) ([]domain.ScanInfos, error)
- func (repo MockDBScanInfosRepository) FindByID(ctx context.Context, id string) (domain.ScanInfos, error)
- func (repo MockDBScanInfosRepository) Save(ctx context.Context, s domain.ScanInfos) (string, error)
- func (repo MockDBScanInfosRepository) UpdateByID(ctx context.Context, id string, s domain.ScanInfos) error
- type MongoScanInfosRepository
- func (repo *MongoScanInfosRepository) DeleteByID(ctx context.Context, id string) error
- func (repo *MongoScanInfosRepository) FindAll(ctx context.Context) ([]domain.ScanInfos, error)
- func (repo *MongoScanInfosRepository) FindByID(ctx context.Context, id string) (domain.ScanInfos, error)
- func (repo *MongoScanInfosRepository) Save(ctx context.Context, s domain.ScanInfos) (string, error)
- func (repo *MongoScanInfosRepository) UpdateByID(ctx context.Context, id string, s domain.ScanInfos) error
- type PostgresScanInfosRepository
- func (repo PostgresScanInfosRepository) DeleteByID(ctx context.Context, id string) error
- func (repo PostgresScanInfosRepository) FindAll(ctx context.Context) ([]domain.ScanInfos, error)
- func (repo PostgresScanInfosRepository) FindByID(ctx context.Context, id string) (domain.ScanInfos, error)
- func (repo PostgresScanInfosRepository) Save(ctx context.Context, s domain.ScanInfos) (string, error)
- func (repo PostgresScanInfosRepository) UpdateByID(ctx context.Context, id string, s domain.ScanInfos) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDBScanInfosRepository ¶
type MockDBScanInfosRepository struct {
// contains filtered or unexported fields
}
func NewMockDBScanInfosRepository ¶
func NewMockDBScanInfosRepository(logger *zap.Logger, h *mockdb.Handler, dbname string) *MockDBScanInfosRepository
NewMongoScanInfosRepository provides an instance of MongoScanInfosRepository structure.
func (MockDBScanInfosRepository) DeleteByID ¶
func (repo MockDBScanInfosRepository) DeleteByID(ctx context.Context, id string) error
func (MockDBScanInfosRepository) UpdateByID ¶
type MongoScanInfosRepository ¶
type MongoScanInfosRepository struct {
// contains filtered or unexported fields
}
func NewMongoScanInfosRepository ¶
func NewMongoScanInfosRepository(logger *zap.Logger, h *mongodb.Handler, dbname string) *MongoScanInfosRepository
NewMongoScanInfosRepository provides an instance of MongoScanInfosRepository structure.
func (*MongoScanInfosRepository) DeleteByID ¶
func (repo *MongoScanInfosRepository) DeleteByID(ctx context.Context, id string) error
func (*MongoScanInfosRepository) UpdateByID ¶
type PostgresScanInfosRepository ¶
type PostgresScanInfosRepository struct {
// contains filtered or unexported fields
}
func NewPostgresScanInfosRepository ¶
func NewPostgresScanInfosRepository(logger *zap.Logger, h *postgres.Handler) *PostgresScanInfosRepository
NewPostgresScanInfosRepository ...
func (PostgresScanInfosRepository) DeleteByID ¶
func (repo PostgresScanInfosRepository) DeleteByID(ctx context.Context, id string) error
DeleteByID deletes a scan infos record by its ID.
func (PostgresScanInfosRepository) Save ¶
func (repo PostgresScanInfosRepository) Save(ctx context.Context, s domain.ScanInfos) (string, error)
Save will create a new scan infos and not update existing one.
func (PostgresScanInfosRepository) UpdateByID ¶
func (repo PostgresScanInfosRepository) UpdateByID(ctx context.Context, id string, s domain.ScanInfos) error
UpdateByID updates a scan infos record by its ID.
Click to show internal directories.
Click to hide internal directories.