pg

package
v0.0.0-...-1b3765c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CfgHost = "pg.host"
	CfgPort = "pg.port"
	CfgName = "pg.name"
	CfgUser = "pg.user"
	CfgPass = "pg.pass"
)

Variables

This section is empty.

Functions

func CloseConnection

func CloseConnection(ctx context.Context) error

func Initialize

func Initialize(ctx context.Context, cfg Config) (context.Context, error)

Types

type Config

type Config struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
	Name string `mapstructure:"name"`
	User string `mapstructure:"user"`
	Pass string `mapstructure:"pass"`
}

Jump to

Keyboard shortcuts

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