events

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2021 License: MPL-2.0 Imports: 1 Imported by: 1

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

type MaxRetries struct {
	ID    string
	Count int
	// contains filtered or unexported fields
}

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

type ServerError struct {
	ID    string
	Error error
	// contains filtered or unexported fields
}

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 Trace

type Trace struct {
	ID      string
	Message string
	// contains filtered or unexported fields
}

Trace is useful to see some details of what's going on

type TrackStart

type TrackStart struct {
	ID string
	// contains filtered or unexported fields
}

TrackStart indicates that a new data point is being tracked.

type TrackStop

type TrackStop struct {
	ID string
	// contains filtered or unexported fields
}

TrackStop indicates that a data point is no longer being tracked.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL