postgres

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Timeout = errors.New("postgres connection timeout")

Functions

func Init

func Init(address string, opts Opts) (*sql.DB, error)

Init ...

Types

type Opts

type Opts struct {
	Logger         *zap.Logger
	Retry, Timeout time.Duration
}

Jump to

Keyboard shortcuts

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