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)
Click to show internal directories.
Click to hide internal directories.