config

package
v0.72.0-preview.2 Latest Latest
Warning

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

Go to latest
Published: Jun 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"`
	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