Documentation ¶
Index ¶
- type Check
- func (check *Check) Config() core.MonitorConfiguration
- func (check *Check) Description() string
- func (check *Check) Name() string
- func (check *Check) Perform() (core.Status, error)
- func (check *Check) Version() string
- func (check *Check) Watch(update chan<- *core.ServiceStatus, stop <-chan bool, wg *sync.WaitGroup) error
- type MonitorConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
// contains filtered or unexported fields
}
func (*Check) Config ¶
func (check *Check) Config() core.MonitorConfiguration
func (*Check) Description ¶
type MonitorConfiguration ¶
type MonitorConfiguration struct { // Hostname of the service Hostname string `mapstructure:"hostname"` // Count is the number of pings to send Count int `mapstructure:"count"` // Timeout is the duration to wait for a ping to finish, such as "1s" Timeout time.Duration `mapstructure:"timeout"` // Interval is the interval to use when watching the target, such as "1s" Interval time.Duration `mapstructure:"interval"` }
func ParseConfiguration ¶
func ParseConfiguration(options map[string]interface{}) (*MonitorConfiguration, error)
func (*MonitorConfiguration) Validate ¶
func (config *MonitorConfiguration) Validate() []error
Click to show internal directories.
Click to hide internal directories.