Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { DriverChoice string `envconfig:"GRAPH_DRIVER_TYPE"` DatabaseAddress string `envconfig:"GRAPH_ADDR" json:"-"` PoolSize int `envconfig:"GRAPH_POOL_SIZE"` MaxRetries int `envconfig:"MAX_RETRIES"` RetryTime time.Duration `envconfig:"RETRY_TIME"` QueryTimeout int `envconfig:"GRAPH_QUERY_TIMEOUT"` Neptune NeptuneConfig Driver driver.Driver }
Configuration allows environment variables to be read and sent to the relevant driver for further setup
func Get ¶
func Get(errs chan error) (*Configuration, error)
Get reads config and returns the configured instantiated driver
type NeptuneConfig ¶ added in v2.5.0
type NeptuneConfig struct { BatchSizeReader int `envconfig:"NEPTUNE_BATCH_SIZE_READER"` BatchSizeWriter int `envconfig:"NEPTUNE_BATCH_SIZE_WRITER"` MaxWorkers int `envconfig:"NEPTUNE_MAX_WORKERS"` TLSSkipVerify bool `envconfig:"NEPTUNE_TLS_SKIP_VERIFY"` }
NeptuneConfig defines the neptune-specific configuration
Click to show internal directories.
Click to hide internal directories.