config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
View Source
const (
	// Title is the name of the application used throughout the configuration process.
	Title = "tcp.ac"
)

Variables

View Source
var (
	BaseURL, HTTPPort, HTTPBind, DBDir, LogDir,
	TermbinListen, UnixSocketPath, AdminKey string
	UIDSize, DeleteKeySize, KVMaxKeySizeMB,
	KVMaxValueSizeMB int
	UnixSocketPermissions uint32
	UseUnixSocket         bool
	TrustedProxies        []string
)
View Source
var (
	// Trace is the value of our trace (extra verbose)  on/off toggle as per the current configuration.
	Trace bool
	// Debug is the value of our debug (verbose) on/off toggle as per the current configuration.
	Debug bool
	// Filename returns the current location of our toml config file.
	Filename string
)

exported generic vars

Functions

func Init

func Init()

Init will initialize our toml configuration engine and define our default configuration values which can be written to a new configuration file if desired

func PrintBanner

func PrintBanner()

Types

This section is empty.

Jump to

Keyboard shortcuts

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