config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig(path string) error

Types

type Config

type Config struct {
	Verbose             bool     `yaml:"verbose"`
	URL                 string   `yaml:"url"`
	Listen              string   `yaml:"listen"`
	TrustedProxies      []string `yaml:"trusted_proxies"`
	BlackListedNetsStr  []string `yaml:"blacklisted_networks"`
	SSLCertificate      string   `yaml:"ssl_certificate"`
	SSLKey              string   `yaml:"ssl_certificate_key"`
	BlacklistedNetworks []net.IPNet
}
var GlobalConfig Config

type TLS

type TLS struct {
	Cert string
	Key  string
}

Jump to

Keyboard shortcuts

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