Versions in this module Expand all Collapse all v0 v0.7.0 Sep 19, 2016 Changes in this version type FetchKey + URL url.URL v0.6.2 Aug 18, 2016 v0.6.1 Apr 27, 2016 Changes in this version + func AddScheme(input string) string + func Decode(base *url.URL, input string, ignoreUnknownKeys bool, into interface{ ... }, ...) (map[string][]string, error) + func DelayLess(d Delay, step time.Duration) time.Duration + func DelayMore(d Delay, step time.Duration) time.Duration + func Pow2Less(v int) int + func Pow2More(v int) int type ALink + func LessD(p *Params, d *Delay) (ALink, error) + func LessN(p *Params, num *Num) (ALink, error) + func LinkD(p *Params, d *Delay, set time.Duration, more bool) (ALink, error) + func LinkN(p *Params, num *Num, absolute int, more bool) (ALink, error) + func MoreD(p *Params, d *Delay) (ALink, error) + func MoreN(p *Params, num *Num) (ALink, error) type Delay + func (d *Delay) Set(input string) error + func (d Delay) Type() string + type Endpoint struct + Delay Delay + ServerAddr flags.Bind + URL url.URL + func (ep *Endpoint) SetURL(u url.URL) + func (ep *Endpoint) UseURL(u url.URL) error + func (ep Endpoint) String() string + type FetchKey struct + Times int + type FetchKeys struct + Default FetchKey + Fragments [][]string + Values []FetchKey + func NewFetchKeys(bind flags.Bind) *FetchKeys + func (fkeys *FetchKeys) Set(input string) error + func (fkeys FetchKeys) String() string + func (fkeys FetchKeys) Type() string + type GraphiteEndpoints struct + Default Endpoint + Values []Endpoint + func NewGraphiteEndpoints(delay time.Duration, bind flags.Bind) GraphiteEndpoints + func (gends *GraphiteEndpoints) Set(input string) error + func (gends GraphiteEndpoints) String() string + func (gends GraphiteEndpoints) Type() string + type InfluxEndpoint struct + Database string + Password string + Tags map[string]string + Username string + func (iend InfluxEndpoint) String() string + type InfluxEndpoints struct + Default InfluxEndpoint + Values []InfluxEndpoint + func NewInfluxEndpoints(delay time.Duration, database string) InfluxEndpoints + func (iends *InfluxEndpoints) Set(input string) error + func (iends InfluxEndpoints) String() string + func (iends InfluxEndpoints) Type() string + type LibratoEndpoint struct + Email string + Source string + Token string + func (lend LibratoEndpoint) String() string + type LibratoEndpoints struct + Default LibratoEndpoint + Values []LibratoEndpoint + func NewLibratoEndpoints(delay time.Duration, source string) LibratoEndpoints + func (lends *LibratoEndpoints) Set(input string) error + func (lends LibratoEndpoints) String() string + func (lends LibratoEndpoints) Type() string type VLink + func Vlink(p *Params, num *Num, absolute int, text string) (VLink, error) v0.5.0 Dec 21, 2015 Changes in this version + const AVAIL + const FS + const MP + const NAME + const NICE + const PID + const PRI + const RES + const TIME + const TOTAL + const UID + const USED + const USEPCT + const USER + const VIRT + var DelayType = reflect.TypeOf(Delay{}) + var NumType = reflect.TypeOf(Num{}) + func ContainsPrefix(words []string, prefix string) (string, bool) + func SprintfAttr(format string, args ...interface{}) template.HTMLAttr + func TagsOk(sf reflect.StructField) ([]string, bool) + type ALink struct + Badge string + Class string + ExtraClass string + Href string + Text string + type Delay struct + Above *time.Duration + Below *time.Duration + D time.Duration + Default time.Duration + Ticks int + func (d *Delay) Tick() + func (d *Delay) UnmarshalText(text []byte) error + func (d Delay) EncodeValues(key string, values *url.Values) error + func (d Delay) Expired() bool + func (d Delay) MarshalJSON() ([]byte, error) + func (d Delay) String() string + type Dlinks struct + Less ALink + More ALink + type Nlinks struct + Less ALink + More ALink + type Num struct + Absolute int + Alpha bool + DefaultAbsolute int + DefaultNegative bool + Limit int + Negative bool + PositiveOnly bool + func NumPrefix(words []string, prefix string) (Num, error) + func (num *Num) UnmarshalText(text []byte) error + func (num Num) EncodeString() string + func (num Num) EncodeValues(key string, values *url.Values) error + type Params struct + Defaults map[interface{}]Num + DelayBounds flags.DelayBounds + Delays map[string]*Delay + func NewParams(dbounds flags.DelayBounds) *Params + func (p *Params) Decode(req *http.Request) error + func (p *Params) EncodeD(d *Delay, set time.Duration) (string, error) + func (p *Params) EncodeN(num *Num, absolute int, setNegative *bool) (string, error) + func (p *Params) EncodeT(num *Num) (string, error) + func (p *Params) MarshalJSON() ([]byte, error) + func (p *Params) ResetSchema() + func (p *Params) SetDefaults(form url.Values) + func (p *Params) Tick() + func (p *Params) Tlinks() map[string]string + func (p *Params) Vlinks() map[string][]VLink + func (p Params) Dlinks() map[string]Dlinks + func (p Params) Encode() (string, error) + func (p Params) Expired() bool + func (p Params) Nlinks() map[string]Nlinks + func (p Params) NonZeroPsn() bool + type ParamsFuncs struct + func (f ParamsFuncs) DelayLess(d Delay, step time.Duration) time.Duration + func (f ParamsFuncs) DelayMore(d Delay, step time.Duration) time.Duration + func (f ParamsFuncs) HrefT(p *Params, num *Num) (template.HTMLAttr, error) + func (f ParamsFuncs) LessD(p *Params, d *Delay, bclass string) (ALink, error) + func (f ParamsFuncs) LessN(p *Params, num *Num, bclass string) (ALink, error) + func (f ParamsFuncs) LinkD(p *Params, d *Delay, bclass string, set time.Duration, badge string) (ALink, error) + func (f ParamsFuncs) LinkN(p *Params, num *Num, bclass string, absolute int, badge string) (ALink, error) + func (f ParamsFuncs) MoreD(p *Params, d *Delay, bclass string) (ALink, error) + func (f ParamsFuncs) MoreN(p *Params, num *Num, bclass string) (ALink, error) + func (f ParamsFuncs) Pow2Less(v int) int + func (f ParamsFuncs) Pow2More(v int) int + func (f ParamsFuncs) Vlink(p *Params, num *Num, absolute int, text string) (VLink, error) + type RenamedConstError string + func (rc RenamedConstError) Error() string + type Schema struct + CPUd Delay + CPUn Num + Dfd Delay + Dfk Num + Dfn Num + Ifd Delay + Ifn Num + Lad Delay + Lan Num + Memd Delay + Memn Num + Psd Delay + Psk Num + Psn Num + Still Num + type VLink struct + CaretClass string + LinkClass string + LinkHref string + LinkText string v0.4.2 Sep 16, 2015 v0.4.1 Sep 2, 2015 v0.4.0 Aug 29, 2015