resources

package
v0.0.0-...-abeb4b5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 12 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 {
	ServiceName     string `env:"SERVICE_NAME, default=lgen"`
	ServiceHTTPPort int    `env:"SERVICE_HTTP_PORT, default=7784"`
	LogLevel        string `env:"LOG_LEVEL, default=debug"`
	LogFormat       string `env:"LOG_FORMAT, default=console"`
	GinMode         string `env:"GIN_MODE, default=release"`
	MongoHost       string `env:"MONGO_HOST, required"`
	MongoDatabase   string `env:"MONGO_DATABASE, default=lgen"`
}

type Resources

type Resources struct {
	Env   *Env
	Mongo *mongo.Database
}

func New

func New(ctx context.Context) *Resources

Jump to

Keyboard shortcuts

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