config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 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 {
	MappingURL     string   `help:"URL to remotely stored mapping" group:"mappingsource" xor:"mappingsource" env:"MAPPING_URL"`
	MappingFile    string   `type:"existingfile" help:"Path to local mapping" group:"mappingsource" xor:"mappingsource" env:"MAPPING_FILE"`
	AdminName      string   `help:"Name of the admin account, used for HTTP Basic Auth for management commands" group:"admin" env:"ADMIN_NAME"`
	AdminPass      string   `help:"Password of the admin account" group:"admin" env:"ADMIN_PASS"`
	Port           int      `kong:"help='Port to use for HTTP',env='PORT',required"`
	RoutingSecrets []string `` /* 170-byte string literal not displayed */
	RetryTimes     []int    `` /* 135-byte string literal not displayed */
	GZipLevel      int      `help:"Gzip compression level: 1-9." default:"1" env:"GZIP_LEVEL"`
	BrotliLevel    int      `help:"Brotli compression level: 0-11." default:"0" env:"BROTLI_LEVEL"`
	TLSCertPath    string   `kong:"help='Path to TLS certificate file',env='TLS_CERT_PATH',optional"`
	TLSKeyPath     string   `kong:"help='Path to private key file for the TLS certificate',env='TLS_KEY_PATH',optional"`
}

Config is the rrrouter server mode configuration structure

func (*Config) TLSConfigIsValid added in v1.2.0

func (c *Config) TLSConfigIsValid() (bool, error)

Jump to

Keyboard shortcuts

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