injected

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 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 Iface

type Iface interface {
	App() chi.Router
	Logger() log.Factory
	Config() *viper.Viper
	Repos() repos.Iface
	DB() *sqlx.DB
}

Iface is the interface that provides the application context.

This context contains the state that is global to an application instance. It provides insulation, so that multiple contexts can actually run in parallel in the same process

Typical extensions of this app environment are: healthcheck instrumentation, authentication & authorization tooling, API clients used to process incoming requests, etc.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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