config

package
v0.0.0-...-de6b1b6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AlgodAddress string `required:"true"`
	PSToken      string `required:"true"`

	TokenAuthPassword string `required:"true"`

	DatabaseConfig
}

func New

func New() (*Config, error)

New returns an instance of Config

type DatabaseConfig

type DatabaseConfig struct {
	PostgreSQLUsername   string `required:"true"`
	PostgreSQLPassword   string `required:"true"`
	PostgreSQLDatabase   string `required:"true"`
	PostgreSQLHost       string `default:"db:5432"`
	MaxConnectionRetries int    `default:"15"`
}

Jump to

Keyboard shortcuts

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