config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

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