config

package
v0.0.0-...-96d23e7 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 1 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 {
	MongoURI      string `mapstructure:"MONGO_URI"`
	GinMode       string `mapstructure:"GIN_MODE"`
	Port          string `mapstructure:"PORT"`
	Username      string `mapstructure:"USERNAME"`
	Password      string `mapstructure:"PASSWORD"`
	CaptchaSecret string `mapstructure:"CAPTCHA_SECRET"`
}

Config defines the configuration parameters for a Mailbox server.

func LoadConfig

func LoadConfig(path string) (config Config, err error)

LoadConfig fetches a configuration from the given directory path.

Jump to

Keyboard shortcuts

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