config

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultHost = "0.0.0.0"
	DefaultPort = "2015"
	DefaultRoot = "."

	// The default configuration file to load if none is specified
	DefaultConfigFile = "Caddyfile"
)

Variables

View Source
var (
	Root = DefaultRoot
	Host = DefaultHost
	Port = DefaultPort
)

These three defaults are configurable through the command line

View Source
var AppName, AppVersion string

The application should set these so that various middlewares can access the proper information for their own needs.

Functions

func Default

func Default() server.Config

Default makes a default configuration which is empty except for root, host, and port, which are essentials for serving the cwd.

func Load

func Load(filename string, input io.Reader) ([]server.Config, error)

Types

This section is empty.

Directories

Path Synopsis
Package parse provides facilities for parsing configuration files.
Package parse provides facilities for parsing configuration files.

Jump to

Keyboard shortcuts

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