suppression

package
v0.0.0-...-41bf266 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BCDASaver

type BCDASaver struct {
	Repo *postgres.Repository
}

func (*BCDASaver) SaveFile

func (saver *BCDASaver) SaveFile(suppressionMetaFile optout.OptOutFile) (fileID uint, err error)

func (*BCDASaver) SaveOptOutRecord

func (saver *BCDASaver) SaveOptOutRecord(suppression optout.OptOutRecord) error

func (*BCDASaver) UpdateImportStatus

func (saver *BCDASaver) UpdateImportStatus(metadata optout.OptOutFilenameMetadata, status string) error

type OptOutImporter

type OptOutImporter struct {
	FileHandler          optout.OptOutFileHandler
	Saver                optout.Saver
	Logger               logrus.FieldLogger
	ImportStatusInterval int
}

An OptOutImporter imports opt out files based on the provided file handler and saver.

func (OptOutImporter) ImportSuppressionData

func (importer OptOutImporter) ImportSuppressionData(metadata *optout.OptOutFilenameMetadata) error

func (OptOutImporter) ImportSuppressionDirectory

func (importer OptOutImporter) ImportSuppressionDirectory(path string) (success, failure, skipped int, err error)

Jump to

Keyboard shortcuts

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