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