config

package
v0.0.0-...-4b23463 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalEnv = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Environment string
	Mongo       MongoConfig
	HTTP        HTTPConfig
}

func New

func New(configsDir string) (*Config, error)

type HTTPConfig

type HTTPConfig struct {
	Host         string
	Port         string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

type MongoConfig

type MongoConfig struct {
	URI          string
	Username     string
	Password     string
	DatabaseName string
}

Jump to

Keyboard shortcuts

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