injected

package
v0.0.0-...-132c30d Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package injected defines a interface to inject dependencies into all modules.

Currently supported dependencies are: * a logger factory distributing context-aware loggers (runtime.Logger()) * a config to spread a central *viper.Viper configuration registry (runtime.Config()) * a database connection (runtime.DB()) * an interface to persistent repositories (runtime.Repos())

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime interface {
	Logger() log.Factory
	DB() *sqlx.DB
	Config() *viper.Viper
	Repos() repos.Iface
	ID() string
}

Jump to

Keyboard shortcuts

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