Documentation
¶
Overview ¶
Package events distributes best-effort resource invalidation hints. REST and the underlying stores remain authoritative; hints are neither replayable nor proof that a background operation or result export succeeded.
Index ¶
Constants ¶
View Source
const ( Queries = "queries" Carves = "carves" Console = "console" FileExplorer = "file_explorer" Alerts = "alerts" ServiceCommands = "service_commands" Fleet = "fleet" ChangeMetadata = "metadata" ChangeResults = "results" ChangeFiles = "files" ChangeRules = "rules" ChangeChannels = "channels" ChangeHistory = "history" ChangeActivity = "activity" )
Variables ¶
View Source
var ( ErrLimit = errors.New("event connection limit reached") )
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct {
// contains filtered or unexported fields
}
Bus owns one Redis subscription per API process and bounded subscriber queues. A TLS process constructs a publish-only Bus. Call Close before HTTP draining.
type Hint ¶
type Hint struct {
EnvironmentID uint `json:"environment_id"`
Topic string `json:"topic"`
Name string `json:"name"`
Change string `json:"change,omitempty"`
SessionID uint `json:"session_id,omitempty"`
ResourceID uint `json:"resource_id,omitempty"`
}
Hint is an internal routing envelope. Numeric environment IDs never leave the API, which resolves and authorizes the requested environment separately.
Click to show internal directories.
Click to hide internal directories.