Documentation
¶
Overview ¶
Package tracker provides consensus tracking utilities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeTracker ¶
type TimeTracker struct {
// contains filtered or unexported fields
}
TimeTracker tracks operation times
func (*TimeTracker) IsTracked ¶
func (t *TimeTracker) IsTracked(id ids.ID) bool
IsTracked checks if an operation is being tracked
func (*TimeTracker) Len ¶
func (t *TimeTracker) Len() int
Len returns the number of tracked operations
type Tracker ¶
type Tracker interface {
// Track starts tracking an operation
Track(id ids.ID) time.Time
// Stop stops tracking an operation
Stop(id ids.ID) time.Duration
// IsTracked checks if an operation is being tracked
IsTracked(id ids.ID) bool
// Len returns the number of tracked operations
Len() int
}
Tracker tracks consensus operations
Click to show internal directories.
Click to hide internal directories.