repository

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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) FindAll

func (MockDBScanInfosRepository) FindByID

func (MockDBScanInfosRepository) Save

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) FindAll

func (*MongoScanInfosRepository) FindByID

func (*MongoScanInfosRepository) Save

func (*MongoScanInfosRepository) UpdateByID

func (repo *MongoScanInfosRepository) UpdateByID(ctx context.Context, id string, s domain.ScanInfos) error

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) FindAll

func (PostgresScanInfosRepository) FindByID

func (PostgresScanInfosRepository) Save

Save will create a new scan infos and not update existing one.

func (PostgresScanInfosRepository) UpdateByID

UpdateByID updates a scan infos record by its ID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL