Cap
untyped bigintCap is the maximum number of messages the ring buffer holds.
Value
(16 <untyped> bigint)
Entry
typeEntry is a single posted message.
Value
v0.Entry
buf
[16]v0.Entry// the ring storage
- OID
- 0165bf…5d9d:4
buf details
head
int// index of the next write slot
Value
0
count
int// number of entries currently stored (0 ≤ count ≤ Cap)
Value
0
Post
func(msg string)Post adds a message to the ring buffer. Once Cap entries are stored, the oldest entry is overwritten.
- OID
- 0165bf…5d9d:23
Post details
Entries
func() []v0.EntryEntries returns all stored messages in chronological order (oldest first).
- OID
- 0165bf…5d9d:25
Entries details
Len
func() intLen returns the number of messages currently stored.
- OID
- 0165bf…5d9d:26
Len details
Render
func(path string) stringRender displays the ring buffer as a Markdown page.
- OID
- 0165bf…5d9d:27
Render details
shorten
func(s string) stringshorten trims a long address for display.
- OID
- 0165bf…5d9d:28