config

package
v0.0.0-...-fcb7247 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Candidates = []string{
	os.Getenv("PAGES_CONFIG"),
	"/etc/pages.yml",
	"/etc/pages.yaml",
	"etc/pages.yml",
	"etc/pages.yaml",
}

Functions

func Load

func Load() error

Types

type Config

type Config struct {
	Development Environmental
	Production  Environmental
	Test        Environmental
}

type Environmental

type Environmental struct {
	Sshd Sshd
	Fuse Fuse
	Log  Log
}
var Current *Environmental

type Fuse

type Fuse struct {
	GitRepoDir string `yaml:"repo_dir"`
	Debug      bool
}

type Log

type Log struct {
	Local  string
	Level  string
	Syslog Syslog
}

type Sshd

type Sshd struct {
	ListenHost string `yaml:"host"`
	ListenPort int32  `yaml:"port"`
	PrivateKey string `yaml:"private_key"`
	MaxClient  int32  `yaml:"max_client"`
	ShellPath  string `yaml:"shell"`
}

type Syslog

type Syslog struct {
	Protocol string
	Host     string
	Level    string
	Tag      string
}

Jump to

Keyboard shortcuts

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