neumayr

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMDB

func ConvertMDB(mdb *os.File) (*os.File, error)

ConvertMDB converts the MDB file at filePath using RebaseData. It returns a File to a ZIP compresses version of the extracted and converted MDB file.

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

Converter converts contact data from Neumayr installations.

func NewConverter

func NewConverter(country string) (*Converter, error)

NewConverter returns a new converter for Neumayr contacts.

func (*Converter) Convert

func (conv *Converter) Convert(ctx context.Context, mdb *os.File) ([]customerdb.Customer, error)

type Importer

type Importer struct {
	// contains filtered or unexported fields
}

func NewImporter

func NewImporter(country string, customers customerdb.Database) *Importer

func (*Importer) Import

func (imp *Importer) Import(ctx context.Context, mdb *os.File) (countNew, countUpdated, countUnchanged int, err error)

Jump to

Keyboard shortcuts

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