config

package
v0.0.0-...-f2a0ed6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &config{
	Database: Database{
		Driver:          "postgres",
		IP:              os.Getenv("POSTGRES_HOST"),
		Port:            getPort(),
		User:            os.Getenv("POSTGRES_USER"),
		Password:        os.Getenv("POSTGRES_PASSWORD"),
		Name:            os.Getenv("POSTGRES_DB"),
		ConnMaxIdle:     96,
		ConnMaxOpen:     144,
		ConnMaxLifetime: 10,
		Debug:           true,
		SSLMode:         "disable",
	},
	Server: Server{
		IP:   os.Getenv("SERVER_IP"),
		Port: 4510,
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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