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"`
PoolSize int `envconfig:"GRAPH_POOL_SIZE"`
MaxRetries int `envconfig:"MAX_RETRIES"`
QueryTimeout int `envconfig:"GRAPH_QUERY_TIMEOUT"`
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
Click to show internal directories.
Click to hide internal directories.