config

package
v0.0.0-...-949ac08 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port     string    "port"
	Host     string    "host"
	User     string    "user"
	HookDefs []HookDef "hooks"
}

func ParseYaml

func ParseYaml(yaml []byte) (*Config, error)

type HookDef

type HookDef struct {
	Description string "description"
	Type        string "type"
	Regexp      string "regexp"
	Template    string "template"
}

func (*HookDef) GetDescription

func (d *HookDef) GetDescription() string

func (*HookDef) GetRegexp

func (d *HookDef) GetRegexp() string

func (*HookDef) GetTemplate

func (d *HookDef) GetTemplate() string

func (*HookDef) GetType

func (d *HookDef) GetType() string

Jump to

Keyboard shortcuts

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