Documentation
¶
Overview ¶
Package queue implements the heap interface in order to implement a request queue of distributed lock requests. The heap request queue is prioritized by timestamp.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mssg ¶
type Mssg struct { Timestamp time.Time Node string Replied bool //to track whether the peer has replied to the request yet }
Mssg represents the type being stored in the request queue heap.
type ReqHeap ¶
type ReqHeap []*Mssg
ReqHeap is a (simple) type implementing the request queue heap. Len, Swap, and Less functions are used to implement the heap.
Click to show internal directories.
Click to hide internal directories.