common

package
v0.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Uri    string `env:"URI"`
	DbName string `env:"DBNAME"`
}

type Inject

type Inject struct {
	Values      *Values
	MongoClient *mongo.Client
	Db          *mongo.Database
}

type Values

type Values struct {
	TrustedProxies []string `env:"TRUSTED_PROXIES"`
	Database       Database `envPrefix:"DATABASE_"`
}

Jump to

Keyboard shortcuts

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