config

package
v0.0.0-...-17f4e14 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config manages custom configuration for FastGate

Index

Constants

This section is empty.

Variables

View Source
var (
	// LogFile points to the desired log path chosen in the configuration file ( including STDOUT ).
	LogFile io.Writer
	// TLSEnabled is used to tell if the config package was os was not able to load key and certification pair from the specified path.
	TLSEnabled bool
	// ConfigParams  *configStruct stores the values found in the config file, or the default values.
	ConfigParams = configStruct{
		LogLocation:     "",
		HTTPPort:        "8000",
		HTTPSPort:       "8443",
		TLSKeyLocation:  "./devssl/server.key",
		TLSCertLocation: "./devssl/server.pem",
		DatabasePath:    "./fastgate.db",
		Debug:           true,
		ProxyMode:       true,
	}
)

Functions

func ReadConfig

func ReadConfig(configPath string) error

ReadConfig tries to read a file in the provided path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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