Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConflictTLSConfig = errors.New("can't use --self-signed-cert and --tls-key at the same time") ErrDevFlagRequire = errors.New("this flag require the --dev flag setup") )
Functions ¶
Types ¶
type Config ¶
type Config struct { LogLevel string `mapstructure:"log-level"` Folder string `mapstructure:"folder"` TLSCert string `mapstructure:"tls-cert"` TLSKey string `mapstructure:"tls-key"` HTTPHost string `mapstructure:"http-host"` HTTPHostnames []string `mapstructure:"http-hosts"` HTTPPort int `mapstructure:"http-port"` MemoryFS bool `mapstructure:"memory-fs"` SelfSignedCert bool `mapstructure:"self-signed-cert"` Debug bool `mapstructure:"debug"` Dev bool `mapstructure:"dev"` HotReload bool `mapstructure:"hot-reload"` }
Click to show internal directories.
Click to hide internal directories.