postgresext

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configs

type Configs struct {
	PostgresHosts    []string    `env:"POSTGRES_HOSTS,required"`
	PostgresPort     netext.Port `env:"POSTGRES_PORT" envDefault:"5432"`
	PostgresUsername string      `env:"POSTGRES_USERNAME,required"`
	PostgresPassword string      `env:"POSTGRES_PASSWORD,required"`
	PostgresDBName   string      `env:"POSTGRES_DBNAME,required"`
	PostgresAPPName  string      `env:"POSTGRES_APPNAME,required"`
	PostgresSSLMode  string      `env:"POSTGRES_SSLMODE" envDefault:"disable"`
}

func (Configs) DB

func (Configs) DB() string

func (Configs) DSN

func (c Configs) DSN() string

Jump to

Keyboard shortcuts

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