config

package
v0.0.0-...-3a0566b Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2015 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Contains configuration loading behavior and defaults for gost.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBackendType

func GetBackendType() string

func GetEmailTTL

func GetEmailTTL() time.Duration

func GetFQDN

func GetFQDN() string

func GetListenParams

func GetListenParams() (host string, port int)

Gets the address the server should listen on, for example "127.0.0.1".

func GetMatcherTTL

func GetMatcherTTL() time.Duration

func LoadConfigFromFile

func LoadConfigFromFile() error

Loads configuration from an auto-located file. This operation is atomic and isolated; if reading from a file fails the existing configuration is not touched and an error is thrown. If reading is successful, configuration is stored globally and nil is returned.

func SetListenParams

func SetListenParams(intrfce string, port int)

Types

This section is empty.

Directories

Path Synopsis
Package shutdown contains data and methods to support safe shutdown.
Package shutdown contains data and methods to support safe shutdown.

Jump to

Keyboard shortcuts

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