Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockingWait ¶
type BlockingWait struct {
ID string
// contains filtered or unexported fields
}
BlockingWait means a blocking query was made
type Event ¶
type Event interface {
// contains filtered or unexported methods
}
Event is used to type restrict the Events
type EventHandler ¶
type EventHandler func(Event)
EventHandler is the interface of the call back function for receiveing events.
type MaxRetries ¶
MaxRetries indicates that the maximum number of retries has been reached (and failed).
type NewData ¶
type NewData struct {
ID string
Data interface{}
// contains filtered or unexported fields
}
NewData indicates that fresh/new data has been retrieved from the service.
type NoNewData ¶
type NoNewData struct {
ID string
// contains filtered or unexported fields
}
NoNewData indicates that data was retrieved from the service, but that it matches the current data so no change would be triggered.
type PollingWait ¶
type PollingWait struct {
ID string
Duration time.Duration
// contains filtered or unexported fields
}
Not used yet, need an PolllingQuery interface to match on see BlockingQuery for how it should work
type RetryAttempt ¶
type RetryAttempt struct {
ID string
Attempt int
Sleep time.Duration
Error error
// contains filtered or unexported fields
}
RetryAttempt indicates that a tracked call is being retried.
type ServerContacted ¶
type ServerContacted struct {
ID string
// contains filtered or unexported fields
}
ServerContacted indicates that the tracked service has been successfully contacted (received a non-error response).
type ServerError ¶
ServerError indicates that an tracked service has been contacted but with an error returned.
type ServerTimeout ¶
type ServerTimeout struct {
ID string
// contains filtered or unexported fields
}
ServerTimeout indicates that a call to the server timed out.
type StaleData ¶
type StaleData struct {
ID string
LastContant time.Duration
// contains filtered or unexported fields
}
StaleData indicates that the service returned stale (possibly old) data.
type TrackStart ¶
type TrackStart struct {
ID string
// contains filtered or unexported fields
}
TrackStart indicates that a new data point is being tracked.