config

package
v0.0.0-...-b10823d Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2013 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPort    = 9500
	DefaultPidPath = "/var/run/landmarkd.pid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port    int    `toml:"port"`
	PidPath string `toml:"pid-path"`
}

The configuration for running landmarkd.

func NewConfig

func NewConfig() *Config

Creates a new configuration object.

func (*Config) Decode

func (c *Config) Decode(r io.Reader) error

Decodes the configuration from a TOML reader.

func (*Config) DecodeFile

func (c *Config) DecodeFile(path string) error

Decodes the configuration from a TOML file path.

Jump to

Keyboard shortcuts

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