importing

package
v0.0.0-...-b45a7ae Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsvEntityImportService

type CsvEntityImportService interface {
	Process(ctx context.Context, entity entity.Key, name string, r io.Reader) error
	AvailableSchemas(entity entity.Key) []string
}

func NewCsvEntityImportService

func NewCsvEntityImportService(
	core *appcore.ApplicationCore,
	definitions map[entity.Key]map[string]*CsvImportDefinition,
) CsvEntityImportService

type CsvImportDefinition

type CsvImportDefinition struct {
	RowsParse     func(entityType *entity.Definition, allRows [][]string) ([]values.Values, error)
	IdentityField string

	DefaultOptions Options
}

type Options

type Options struct {
	Comma           rune
	FieldsPerRecord int
}

Jump to

Keyboard shortcuts

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