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.
Click to show internal directories.
Click to hide internal directories.