db

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoHost  = errors.New("no host for database connection")
	SQLTimeout = time.Second * 5
)

Functions

This section is empty.

Types

type App

type App struct {
	DB *sql.DB
	// contains filtered or unexported fields
}

func New

func New(config Config, loggerApp logger.App) (App, error)

func (App) Ping added in v1.5.0

func (a App) Ping(ctx context.Context) error

type Config

type Config struct {
	// contains filtered or unexported fields
}

func GetConfig

func GetConfig(fs *flag.FlagSet) Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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