configs

package
v0.0.0-...-ff919dc Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 4 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 {
	AppPort  string
	Database *DBConfig
	Password string
	User     *models.User
}

Config struct describes all the configs

func GetConfig

func GetConfig() *Config

GetConfig returns the config from environment variables

type DBConfig

type DBConfig struct {
	Collection string
	Name       string
	URI        string
}

DBConfig describes the database config

Jump to

Keyboard shortcuts

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