Documentation
¶
Overview ¶
Package accrual is an implementation of the φ Accrual Failure Detector. For details see: https://dspace.jaist.ac.jp/dspace/bitstream/10119/4784/1/IS-RR-2004-010.pdf
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector represents a φ-failure detector.
Example ¶
w := NewMemoryWindow(10) d := NewDetector(1, w) d.Heartbeat() if d.Failed() { fmt.Println("Failure dectected") }
Output:
func NewDetector ¶
NewDetector creates a new detector with the given threshold and a window.
Click to show internal directories.
Click to hide internal directories.