config

package
v0.0.0-...-6e85931 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MONGO_URI   = "MONGO_URI"
	DB_ADAPTOR  = "DB_ADAPTOR"
	DB_NAME     = "DB_NAME"
	DB_HOST     = "DB_HOST"
	DB_PORT     = "DB_PORT"
	DB_USER     = "DB_USER"
	DB_PASSWORD = "DB_PASSWORD"
	ENV         = ".env"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MongoURI string
	DBConfig DBConfig
}

func Load

func Load() Config

type DBConfig

type DBConfig struct {
	Adaptor  string
	Name     string
	Host     string
	UserName string
	Password string
	Port     string
}

Jump to

Keyboard shortcuts

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