config

package
v0.0.0-...-c2f7ffe Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2015 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_DIR  = "/var/db/sherpa"
	DEFAULT_HOST = "0.0.0.0"
	DEFAULT_PORT = ":6430"
	VERSION      = "0.0.1"
)

Variables

This section is empty.

Functions

func Parse

func Parse(path string) error

Parse

Types

type Opts

type Opts struct {
	BuildGCInterval           int    `json:"build_gc_interval"`             // how often to remove failed builds (default 1hr)
	BuildGCMarkFailedInterval int    `json:"build_gc_mark_failed_interval"` // how long to wait before marking a build as failed (default 60sec)
	DataDir                   string `json:"data_dir"`                      // (/var/db/sherpa by default)
	DBConn                    string `json:"db_conn"`                       // postgres://username:password@ip:port/database (postgres://postgres@localhost/sherpa)
	Host                      string `json:"host"`                          // Binding IP
	Port                      string `json:"port"`                          // Binding Port
	TemplateGCInterval        int    `json:"template_gc_interval"`          // how often to remove unknown templates (default 1hr)
	URI                       string //
}
var (
	Log     lumber.Logger //
	Options Opts          // configuration options
)

Jump to

Keyboard shortcuts

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