config

package
v0.0.0-...-0366d43 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const EnvDev = "development"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Environment   string        `required:"true" default:"development"`
	Port          int           `required:"true" default:"8080"`
	LogLevel      string        `split_words:"true" default:"DEBUG"`
	MongoURI      string        `split_words:"true" required:"true"`
	MongoDatabase string        `split_words:"true" required:"true"`
	MongoTimeout  time.Duration `split_words:"true" required:"true"`
}

func LoadConfig

func LoadConfig() Config

Jump to

Keyboard shortcuts

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