cmd

package
v0.0.0-...-f7a0d24 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Config   *nw.Config
	InfoLog  *slog.Logger
	ErrorLog *slog.Logger
	Db       *pgxpool.Pool // app-level connection for queries
	OwnerDb  *pgxpool.Pool // db owner connection for monitoring
	Validate *validator.Validate
}

Application contains the fields common to all commands

func NewApplication

func NewApplication(conf *nw.Config) (app *Application)

NewApplication returns an Application with default settings. Not all fields get initialized.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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