Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

ringlog/v0 package

Overview

Package ringlog is an on-chain port of Go's container/ring: a fixed-capacity circular message board where new posts overwrite the oldest entries once full.

Functions

Len

func Len() int
Ask AI Claude ChatGPT

Len returns the number of messages currently stored.

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/ringlog/v0.Len()"

Result

Post

func Post(msg string)
Ask AI Claude ChatGPT

Post adds a message to the ring buffer. Once Cap entries are stored, the oldest entry is overwritten.

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/ringlog/v0.Post()"

Result

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render displays the ring buffer as a Markdown page.

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/ringlog/v0.Render()"

Result

Entries

func Entries() []Entry
Ask AI Claude ChatGPT

Entries returns all stored messages in chronological order (oldest first).

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/ringlog/v0.Entries()"

Result