Documentation
¶
Overview ¶
Package application coordinates the authoritative M1 transactions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPObservation ¶
Readiness probes are excluded from HTTP observations and counters. HTTPObservation contains only bounded labels, never request or response data. Method is a known RPC method or "unknown" (also used for non-RPC requests). ErrorKind is empty on success; Status is the HTTP response status, so a JSON-RPC failure can have Status 200 and a nonempty ErrorKind. Duration measures handling time, excluding the observer itself.
type MaintenanceObservation ¶
MaintenanceObservation describes one complete Maintain call, including the startup call. ErrorKind is empty on success and never contains error text.
type Options ¶
type Options struct {
Key []byte
Clock func() time.Time
Hook func(HookEvent) error
DisableMaintenance bool
// Observers run synchronously after transactions release their locks. They must
// be concurrency-safe and return promptly. Observer panics are isolated.
ObserveHTTP func(HTTPObservation)
ObserveMaintenance func(MaintenanceObservation)
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AuthorityID ¶
func (*Service) ImportConfig ¶
Click to show internal directories.
Click to hide internal directories.