Documentation ¶
Index ¶
Constants ¶
View Source
const (
Size = 20 // size of ring buffer
)
internal constants
Variables ¶
This section is empty.
Functions ¶
func DigestForBlock ¶
func DigestForBlock(number uint64) *blockdigest.Digest
fetch a digest from the ring if present
Types ¶
type RingReader ¶
type RingReader struct {
// contains filtered or unexported fields
}
to iterate though the ring
func (*RingReader) Get ¶
func (r *RingReader) Get() (uint64, bool)
fetch item from ring works in reverse, fetching older items
Click to show internal directories.
Click to hide internal directories.