env

package
v0.0.0-...-b69cb46 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	Log       *log.Logger
	Db        *sqlx.DB
	Router    *httptreemux.ContextMux
	Validator *validator.Validate
}

Env defines the local app context and holds global dependencies.

func New

func New(log *log.Logger, db *sqlx.DB, validator *validator.Validate) *Env

New creates a new pointer to an Env struct.

Jump to

Keyboard shortcuts

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