Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var VetInfSpec = conf.SectionSpec{ { Name: "Directory", Type: conf.StringType, Required: true, Description: "Path to the vetinf Infdat directory", }, { Name: "Encoding", Type: conf.StringType, Default: "IBM852", Description: "Text encoding of the Infdat DBase files", }, { Name: "ImportSchedule", Type: conf.StringType, Default: "@every 10m", Description: "Schedule for the VetInf data import", }, { Name: "UserIDProperty", Type: conf.StringType, Default: "", Description: "The name of the user property that maps to the user identifier in VetInf.", }, }
VetInfSpec describes the allowed configuration directives for the Vetinf import.
Functions ¶
Types ¶
type ExportedAnimal ¶
type ExportedAnimal struct { v1alpha.PatientRecord Deleted bool }
ExportedAnimal is a animal patient record exported from a VetInf installation.
type ExportedCustomer ¶
type ExportedCustomer struct { customerdb.Customer Deleted bool }
ExportedCustomer is a customer exported from a VetInf installation.
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is capable of exporting and extracting data of a VetInf installation.
func NewExporter ¶
NewExporter creates a new exporter for vetinf.
func (*Exporter) ExportAnimals ¶
func (*Exporter) ExportCustomers ¶
ExportCustomers exports all vetinf customers and streams them to the returned channel. Errors encountered when exporting single customers are logged and ignored.
type ImportResults ¶
func ImportCustomers ¶
func ImportCustomers(ctx context.Context, exporter *Exporter, customers customerdb.Database) (*ImportResults, error)
func ImportPatients ¶
Click to show internal directories.
Click to hide internal directories.