config

package
v0.72.14 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 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 PostgresConnection

type PostgresConnection struct {
	Host            string `description:"hostname of postgres server"                                               long:"host"`
	Port            int    `description:"port postgres is running on"                                               long:"port"`
	Username        string `description:"username to connect with"                                                  long:"username"`
	Password        string `description:"password for user"                                                         long:"password"`
	Database        string `description:"database name"                                                             long:"database"`
	SocketDir       string `description:"location of postgres UNIX socket directory (used if host is empty string)" long:"socket-dir"`
	ApplicationName string `description:"identify the application to the database using this name"                  long:"application-name"`
}

func (PostgresConnection) ToConnectionString

func (conf PostgresConnection) ToConnectionString() string

func (PostgresConnection) ToPgxPoolConfig

func (conf PostgresConnection) ToPgxPoolConfig() (*pgxpool.Config, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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