Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "0.1.12"
Version is incremented using bump2version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datasource ¶
type Datasource struct { Options Disabled bool Description string FileProvider files.FileProvider // contains filtered or unexported fields }
Datasource ...
type Import ¶
type Import struct { Options Connection *MongoConnection Sources []*Datasource MaxParallelism int // contains filtered or unexported fields }
Import ...
type ImportJob ¶
type ImportJob struct { Source *Datasource Loader *loaders.Loader File string InsertionBatchSize int IgnoreErrors bool Collection *mongo.Collection }
ImportJob ...
type ImportResult ¶
type ImportResult struct { TotalFiles int TotalSources int Description string Succeeded int Failed int Elapsed time.Duration PartialResults []SourceResult }
ImportResult ...
type MongoConnection ¶
type MongoConnection struct { DatabaseName string AuthDatabaseName string User string Password string Host string Port uint }
MongoConnection ...
type Options ¶
type Options struct { DatabaseName string Collection string Loader loaders.Loader PostLoad PostLoadHook PreDump PreDumpHook UpdateFilter UpdateFilterHook EmptyCollection *opt.Flag Sanitize *opt.Flag FailOnErrors *opt.Flag CollectErrors *opt.Flag IndividualProgress *opt.Flag ShowCurrentFile *opt.Flag InsertionBatchSize int }
Options ...
type PartialResult ¶
type PartialResult struct { File string Collection string Source *Datasource Succeeded int Failed int Elapsed time.Duration Errors []error }
PartialResult ...
type PostLoadHook ¶
PostLoadHook ...
type SourceResult ¶
type SourceResult struct { TotalFiles int Collection string Description string Succeeded int Failed int Elapsed time.Duration PartialResults []PartialResult }
SourceResult ...
type UpdateFilterHook ¶
type UpdateFilterHook func(loaded interface{}) ([]interface{}, error)
UpdateFilterHook ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.