conf

package
v0.0.0-...-dd51157 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ExpenserPort string `env:"EXPENSER_PORT"                flag:"expenser-port"                flagDesc:"Primary Expnser Server Port"`
	Collection   string `env:"MONGODB_COLLECTION"           flag:"mongodb-collection"           flagDesc:"MongoDB collection for data"`
	Database     string `env:"MONGODB_DATABASE"             flag:"mongodb-database"             flagDesc:"MongoDB database for data"`
	MongoDBURL   string `env:"MONGODB_URL"                  flag:"mongodb-url"                  flagDesc:"MongoDB server URL"`
}

func DefaultConfig

func DefaultConfig() Config

DefaultConfig returns a pointer to a Config instance that has been populated with default values.

func Get

func Get() *Config

Get returns a pointer to a config instance that has been populated with values provided by the environment or command-line flags, or with default values if none are provided.

Jump to

Keyboard shortcuts

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