config

package
v2.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 7 Imported by: 1

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

Jump to

Keyboard shortcuts

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