Documentation ¶
Index ¶
- Variables
- type GNIdump
- type Option
- func OptInputDir(d string) Option
- func OptJobsNum(j int) Option
- func OptMyDB(d string) Option
- func OptMyHost(h string) Option
- func OptMyPass(p string) Option
- func OptMyUser(u string) Option
- func OptPgDB(d string) Option
- func OptPgHost(h string) Option
- func OptPgPass(p string) Option
- func OptPgUser(u string) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var Build = "n/a"
View Source
var Version = "v0.0.1-dev"
Functions ¶
This section is empty.
Types ¶
type GNIdump ¶
type GNIdump struct { // MyDB is needed for dumping data from previous version of GNI. dump.MyDB // PyDB is needed for loading data to PostgreSQL DB. rebuild.PgDB // InputDir contains dump data and key-values stores. InputDir string // JobsNum is a number of goroutines for parallel executions. JobsNum int }
GNIdump is an coordinator of all gnidump functionality. It contains complete set of configuration variable necessary for dump and restore of the data.
func (GNIdump) PopulatePG ¶
type Option ¶
type Option func(*GNIdump)
Option type allows to change settings for GNIdump.
func OptInputDir ¶
OptInputDir sets a directory for temporary files and key-value stores.
func OptJobsNum ¶
OptJobsNum sets parallelism number for concurrent goroutines.
Click to show internal directories.
Click to hide internal directories.