config

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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 PostgresConnection

type PostgresConnection struct {
	Host            string `long:"host" description:"hostname of postgres server"`
	Port            int    `long:"port" description:"port postgres is running on"`
	Username        string `long:"username" description:"username to connect with"`
	Password        string `long:"password" description:"password for user"`
	Database        string `long:"database" description:"database name"`
	ApplicationName string `long:"application-name" description:"identify the application to the database using this 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