config

package
v0.0.0-...-59b3a1c Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSSettings

type AWSSettings struct {
	AccessKeyId     string
	SecretAccessKey string
	Region          string
	Endpoint        string
	KMSKeyARN       string
}

type AuthDBSettings

type AuthDBSettings struct {
	AuthDBDSN            string
	AuthQueryTimeoutSecs int
}

type Config

type Config struct {
	ListenAddress    string
	AWSSettings      AWSSettings
	AuthDBSettings   AuthDBSettings
	PoolSettings     PoolSettings
	OverrideSettings map[string]PoolSettings
}

Config is the configuration for a perseus server.

func Parse

func Parse(path string) (Config, error)

Parse reads the config file and returns a new *Config, This method overrides values in the file if there is any environment variables corresponding to a specific setting.

type PoolSettings

type PoolSettings struct {
	MaxIdle               int
	MaxOpen               int
	MaxLifetimeSecs       int
	MaxIdletimeSecs       int
	ConnCreateTimeoutSecs int
	ConnCloseTimeoutSecs  int
	SchemaExecTimeoutSecs int
}

Jump to

Keyboard shortcuts

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