Documentation ¶
Index ¶
Constants ¶
View Source
const Version string = "v3"
the public version of canary
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest struct {
Targets []Target
}
Manifest represents configuration data.
func GetManifest ¶
GetManifest retreives a manifest from a given URL.
type Measurement ¶
Measurement reprents an aggregate of Target, Sample and error.
type Publisher ¶
type Publisher interface {
Publish(Measurement) error
}
Publisher is the interface that adds the Publish method.
Pubilsh takes a Target, and Sample, and an error, and is expected to deliver that data somewhere.
type Scheduler ¶
type Scheduler struct { Target Target C chan Measurement Sampler Sampler // contains filtered or unexported fields }
Scheduler is capable of repeatedly measuring a given Target with a specific Sampler, and returns those results over channel C.
type StatusCodeError ¶
type StatusCodeError struct {
StatusCode int
}
StatusCodeError is an error representing an HTTP Status code of 400 or greater.
func (StatusCodeError) Error ¶
func (e StatusCodeError) Error() string
Click to show internal directories.
Click to hide internal directories.