Versions in this module Expand all Collapse all v0 v0.0.3 Apr 19, 2016 v0.0.2 Mar 27, 2016 Changes in this version + const ErrInvalidConfig + const StateCritical + const StateOk + const StateUnknown + const StateWarning + var Log = log.New() + type Check struct + Args []string + Command string + Interval int + Name string + Retry int + Timeout int + type CheckResult struct + Name string + Output []byte + Returncode int + type Checker interface + RegisterChecks func(checks map[string]Check) + Start func() (chan *CheckResult, error) + Stop func() error + type Config struct + Checks map[string]Check + Hostname string + Publishers map[string]map[string]interface{} + func ReadConfig(src io.Reader) (*Config, error) + type Error struct + Code int + Message string + func (e Error) Error() string + type ExecPublisher struct + func (p *ExecPublisher) Configure(cfg map[string]interface{}) error + func (p *ExecPublisher) Publish(result *CheckResult) error + func (p *ExecPublisher) Start() error + func (p *ExecPublisher) Stop() error + type ExecPublisherConfig struct + Cmd string + Stdin string + type MemoryPublisher struct + func (p *MemoryPublisher) Configure(cfg map[string]interface{}) error + func (p *MemoryPublisher) EventCount(checkname string) int + func (p *MemoryPublisher) GetEvent(checkname string, index int) *CheckResult + func (p *MemoryPublisher) Publish(result *CheckResult) error + func (p *MemoryPublisher) Start() error + func (p *MemoryPublisher) Stop() error + type Publisher interface + Configure func(cfg map[string]interface{}) error + Publish func(*CheckResult) error + Start func() error + Stop func() error + type Runner struct + func NewRunner(cfg Config) (*Runner, error) + func NewRunnerFromFile(filename string) (*Runner, error) + func (r *Runner) Init(cfg Config) error + func (r *Runner) Run() error + func (r *Runner) Start() error + func (r *Runner) Stop() error + type SentryPublisher struct + func (p *SentryPublisher) Configure(cfg map[string]interface{}) error + func (p *SentryPublisher) Publish(result *CheckResult) error + func (p *SentryPublisher) Start() error + func (p *SentryPublisher) Stop() error + type SentryPublisherConfig struct + Dsn string + Hostname string + type SpewPublisher struct + func (p *SpewPublisher) Configure(cfg map[string]interface{}) error + func (p *SpewPublisher) Publish(result *CheckResult) error + func (p *SpewPublisher) Start() error + func (p *SpewPublisher) Stop() error + type SpewPublisherConfig struct