Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Name string // Name of this Nanny. Notifiers notifiers // Enabled notifiers. Storage storage.Storage // What to use as persistence system. // contains filtered or unexported fields }
Server is Nanny API Server.
type Signal ¶
type Signal struct { // Name of program being monitored. // IP addres of caller is appended to the name so it may be non-unique. Name string `json:"name"` Notifier string `json:"notifier"` // What notifier to use. // After how many seconds to expect next call. // May contain "10s", "1h": https://golang.org/pkg/time/#ParseDuration NextSignal string `json:"next_signal"` Meta map[string]string `json:"meta"` // Metadata for this signal, may contain custom data. }
Signal represents incomming JSON-encoded data to process.
Click to show internal directories.
Click to hide internal directories.