Versions in this module Expand all Collapse all v0 v0.5.0 Feb 5, 2016 v0.2.1 Jul 6, 2015 Changes in this version + func Register(name string, handler Handler) error + func Tail(buffer *bytes.Buffer, n int) string + type Decoder struct + func NewDecoder(src io.Reader) *Decoder + func (decoder *Decoder) Decode() (*Env, error) + type Engine struct + Config string + Logging bool + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + func New(config string) *Engine + func (eng *Engine) HackGetGlobalVar(key string) interface{} + func (eng *Engine) HackSetGlobalVar(key string, val interface{}) + func (eng *Engine) IsShutdown() bool + func (eng *Engine) Job(name string, args ...string) *Job + func (eng *Engine) OnShutdown(h func()) + func (eng *Engine) ParseJob(input string) (*Job, error) + func (eng *Engine) Register(name string, handler Handler) error + func (eng *Engine) RegisterCatchall(catchall Handler) + func (eng *Engine) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (eng *Engine) Shutdown() + func (eng *Engine) String() string + type Env []string + func (env *Env) Decode(src io.Reader) error + func (env *Env) Encode(dst io.Writer) error + func (env *Env) Exists(key string) bool + func (env *Env) Get(key string) (value string) + func (env *Env) GetBool(key string) (value bool) + func (env *Env) GetInt(key string) int + func (env *Env) GetInt64(key string) int64 + func (env *Env) GetJson(key string, iface interface{}) error + func (env *Env) GetList(key string) []string + func (env *Env) GetSubEnv(key string) *Env + func (env *Env) GetTime(key string) (time.Time, error) + func (env *Env) Import(src interface{}) (err error) + func (env *Env) Init(src *Env) + func (env *Env) InitMultiMap(m map[string][]string) + func (env *Env) Len() int + func (env *Env) Map() map[string]string + func (env *Env) MultiMap() map[string][]string + func (env *Env) Set(key, value string) + func (env *Env) SetAuto(k string, v interface{}) + func (env *Env) SetBool(key string, value bool) + func (env *Env) SetInt(key string, value int) + func (env *Env) SetInt64(key string, value int64) + func (env *Env) SetJson(key string, value interface{}) error + func (env *Env) SetList(key string, value []string) error + func (env *Env) SetSubEnv(key string, sub *Env) error + func (env *Env) SetTime(key string, t time.Time) + func (env *Env) WriteTo(dst io.Writer) (int64, error) + type Hack map[string]interface + type Handler func(*Job) error + type Input struct + func NewInput() *Input + func (i *Input) Add(src io.Reader) error + func (i *Input) Close() error + func (i *Input) Read(p []byte) (n int, err error) + type Installer interface + Install func(*Engine) error + type Job struct + Args []string + Eng *Engine + Name string + Stderr *Output + Stdin *Input + Stdout *Output + func (job *Job) CallString() string + func (job *Job) Cancel() + func (job *Job) DecodeEnv(src io.Reader) error + func (job *Job) EncodeEnv(dst io.Writer) error + func (job *Job) Env() *Env + func (job *Job) EnvExists(key string) (value bool) + func (job *Job) Environ() map[string]string + func (job *Job) Errorf(format string, args ...interface{}) (n int, err error) + func (job *Job) Getenv(key string) (value string) + func (job *Job) GetenvBool(key string) (value bool) + func (job *Job) GetenvInt(key string) int + func (job *Job) GetenvInt64(key string) int64 + func (job *Job) GetenvJson(key string, iface interface{}) error + func (job *Job) GetenvList(key string) []string + func (job *Job) GetenvSubEnv(key string) *Env + func (job *Job) GetenvTime(key string) (value time.Time, err error) + func (job *Job) ImportEnv(src interface{}) (err error) + func (job *Job) Printf(format string, args ...interface{}) (n int, err error) + func (job *Job) Run() (err error) + func (job *Job) SetCloseIO(val bool) + func (job *Job) Setenv(key, value string) + func (job *Job) SetenvBool(key string, value bool) + func (job *Job) SetenvInt(key string, value int) + func (job *Job) SetenvInt64(key string, value int64) + func (job *Job) SetenvJson(key string, value interface{}) error + func (job *Job) SetenvList(key string, value []string) error + func (job *Job) SetenvSubEnv(key string, value *Env) error + func (job *Job) SetenvTime(key string, value time.Time) + func (job *Job) WaitCancelled() <-chan struct{} + type Output struct + func NewOutput() *Output + func (o *Output) Add(dst io.Writer) + func (o *Output) AddEnv() (dst *Env, err error) + func (o *Output) AddListTable() (dst *Table, err error) + func (o *Output) AddPipe() (io.Reader, error) + func (o *Output) AddTable() (dst *Table, err error) + func (o *Output) Close() error + func (o *Output) Set(dst io.Writer) + func (o *Output) Used() bool + func (o *Output) Write(p []byte) (n int, err error) + type Table struct + Chan chan *Env + Data []*Env + func NewTable(sortKey string, sizeHint int) *Table + func (t *Table) Add(env *Env) + func (t *Table) Len() int + func (t *Table) Less(a, b int) bool + func (t *Table) ReadFrom(src io.Reader) (n int64, err error) + func (t *Table) ReadListFrom(src []byte) (n int64, err error) + func (t *Table) ReverseSort() + func (t *Table) SetKey(sortKey string) + func (t *Table) Sort() + func (t *Table) Swap(a, b int) + func (t *Table) ToListString() (string, error) + func (t *Table) WriteListTo(dst io.Writer) (n int64, err error) + func (t *Table) WriteTo(dst io.Writer) (n int64, err error)