config

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth added in v0.6.3

type Auth struct {
	Anonymous    bool
	Login        bool
	Registration bool
	Providers    map[string]Provider
}

type Config

type Config struct {
	Address            string
	Port               string
	Dev                bool
	HexIP              bool
	VerifyCertificates bool `mapstructure:"verify_certificates"`
	Headers            map[string]string
	Defaults           Defaults
	HTTPS              HTTPS
	LetsEncrypt        LetsEncrypt
	Auth               Auth
}

func LoadConfig

func LoadConfig() (*Config, chan *Config)

type Defaults

type Defaults struct {
	Name        string
	Host        string
	Port        int
	Channels    []string
	Password    string
	SSL         bool
	ReadOnly    bool
	ShowDetails bool `mapstructure:"show_details"`
}

type HSTS

type HSTS struct {
	Enabled           bool
	MaxAge            string `mapstructure:"max_age"`
	IncludeSubdomains bool   `mapstructure:"include_subdomains"`
	Preload           bool
}

type HTTPS

type HTTPS struct {
	Enabled bool
	Port    string
	Cert    string
	Key     string
	HSTS    HSTS
}

type LetsEncrypt

type LetsEncrypt struct {
	Domain string
	Email  string
}

type Provider added in v0.6.3

type Provider struct {
	Key    string
	Secret string
}

Jump to

Keyboard shortcuts

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