config

package
v0.0.0-...-3c7f7e5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 2 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 {
	DBUsername string
	DBPassword string
	DBName     string
	DBSchema   string
	DBHostname string
	DBPort     int
	DBConn     *pgx.Conn

	PasswordSalt string

	HTTPS                  bool
	HTTPBindAddr           string // e.g. ":8000"
	HTTPReadSigningSecret  string
	HTTPWriteSigningSecret string
	Development            bool // true=local false=prod
}

Config is the main app config

func NewConfig

func NewConfig(dbUsername, dbPassword, dbName, dbSchema, dbHostname string, dbPort int, httpBindAddr, passwordSalt, httpReadSigningSecret, httpWriteSigningSecret string, https, development bool) (*Config, error)

NewConfig is a Config constructor

func NewTestConfig

func NewTestConfig(schemaName string) (*Config, error)

Jump to

Keyboard shortcuts

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