Documentation
¶
Overview ¶
Package reporter streams what a mirror sends the SPECTRE server over one stream. Every stream begins with the mirror's whole state, then sends each quarantine as it begins, so a stream may fail at any time without losing state. Every keepalive interval it sends the call counts if they changed, or else a keepalive. A failed stream is replaced with backoff, and a stream is replaced when it ages, so streams spread across servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Client client.Config `embed:""`
KeepaliveInterval time.Duration `` /* 172-byte string literal not displayed */
StreamMaxAge time.Duration `` /* 166-byte string literal not displayed */
Service string `required:"" help:"Service the mirror runs, reported to the SPECTRE server."`
Environment string `required:"" help:"Environment the mirror runs in, such as production-us-west-2, reported to the SPECTRE server."`
Revision string `required:"" help:"Commit of the candidate the mirror runs, reported to the SPECTRE server."`
}
Config configures how a mirror reports to the SPECTRE server.
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter streams a mirror's state to the SPECTRE server.
Click to show internal directories.
Click to hide internal directories.