console

package
v1.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache[T any] struct {
	// contains filtered or unexported fields
}

Cache is a generic thread-safe cache that periodically refreshes data in the background

func NewCache

func NewCache[T any](updateFunc func(context.Context) (T, error), refreshRate time.Duration, logger *zap.Logger) *Cache[T]

NewCache creates a new cache with the given update function and refresh rate

func (*Cache[T]) Get

func (c *Cache[T]) Get() T

Get returns the cached data (thread-safe read)

func (*Cache[T]) GetLastUpdated

func (c *Cache[T]) GetLastUpdated() time.Time

GetLastUpdated returns when the cache was last updated

func (*Cache[T]) StartRefresh

func (c *Cache[T]) StartRefresh(ctx context.Context)

StartRefresh begins the background refresh loop Should be called in a goroutine

type Console

type Console struct {
	// contains filtered or unexported fields
}

func NewConsole

func NewConsole(etl *etl.ETLService, e *echo.Echo, env string) *Console

func (*Console) Account

func (con *Console) Account(c echo.Context) error

func (*Console) Block

func (con *Console) Block(c echo.Context) error

func (*Console) Blocks

func (con *Console) Blocks(c echo.Context) error

func (*Console) Content

func (con *Console) Content(c echo.Context) error

func (*Console) Dashboard

func (con *Console) Dashboard(c echo.Context) error

func (*Console) Hello

func (con *Console) Hello(c echo.Context) error

func (*Console) Initialize

func (con *Console) Initialize()

func (*Console) LiveEventsSSE

func (con *Console) LiveEventsSSE(c echo.Context) error

func (*Console) NetworkSidebarFragment

func (con *Console) NetworkSidebarFragment(c echo.Context) error

func (*Console) Rollups

func (con *Console) Rollups(c echo.Context) error

func (*Console) Run

func (con *Console) Run() error

func (*Console) Search

func (con *Console) Search(c echo.Context) error

func (*Console) StatsHeaderFragment

func (con *Console) StatsHeaderFragment(c echo.Context) error

HTMX Fragment Handlers

func (*Console) Stop

func (con *Console) Stop()

func (*Console) TPSFragment

func (con *Console) TPSFragment(c echo.Context) error

func (*Console) TotalTransactionsFragment

func (con *Console) TotalTransactionsFragment(c echo.Context) error

func (*Console) Transaction

func (con *Console) Transaction(c echo.Context) error

func (*Console) Transactions

func (con *Console) Transactions(c echo.Context) error

func (*Console) Validator

func (con *Console) Validator(c echo.Context) error

func (*Console) Validators

func (con *Console) Validators(c echo.Context) error

func (*Console) ValidatorsUptime

func (con *Console) ValidatorsUptime(c echo.Context) error

func (*Console) ValidatorsUptimeByRollup

func (con *Console) ValidatorsUptimeByRollup(c echo.Context) error

type SSEEvent

type SSEEvent struct {
	Event string `json:"event"`
	Data  any    `json:"data"`
}

Directories

Path Synopsis
templ: version: v0.3.898
templ: version: v0.3.898
layouts
templ: version: v0.3.898
templ: version: v0.3.898
pages
templ: version: v0.3.898
templ: version: v0.3.898

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL