config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 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
	MetricsAddress   string
	AWSSettings      AWSSettings
	AuthDBSettings   AuthDBSettings
	PoolSettings     PoolSettings
	OverrideSettings map[string]PoolSettings
	LogSettings      LogSettings
}

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 LogSettings added in v0.0.2

type LogSettings struct {
	Level string
	Json  bool
}

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