config

package
v0.0.0-...-d0c72dd Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(flags *flag.FlagSet, arguments []string) error

Types

type Config

type Config struct {
	LogrusLevel    logrus.Level `yaml:"-"`
	LogLevel       int          `yaml:"log_level" flag:"logLevel"`
	NetworkConfigs struct {
		SMTP struct {
			Host string `flag:"smtpHost"`
			Port int    `flag:"smtpPort"`
		}
		IMAP struct {
			Host string `flag:"imapHost"`
			Port int    `flag:"imapPort"`
		}
		HTTP struct {
			Host string `flag:"httpHost"`
			Port int    `flag:"httpPort"`
		}
	}
	DisableIMAP bool `yaml:"disable_imap" flag:"disableImap"`
	DisableSMTP bool `yaml:"disable_smtp" flag:"disableSmtp"`
	DisableHTTP bool `yaml:"disable_http" flag:"disableHttp"`
}

func GetConfig

func GetConfig() Config

Jump to

Keyboard shortcuts

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