Documentation
¶
Index ¶
- type Cache
- type Console
- func (con *Console) Account(c echo.Context) error
- func (con *Console) Block(c echo.Context) error
- func (con *Console) Blocks(c echo.Context) error
- func (con *Console) Content(c echo.Context) error
- func (con *Console) Dashboard(c echo.Context) error
- func (con *Console) Hello(c echo.Context) error
- func (con *Console) Initialize()
- func (con *Console) LiveEventsSSE(c echo.Context) error
- func (con *Console) NetworkSidebarFragment(c echo.Context) error
- func (con *Console) Rollups(c echo.Context) error
- func (con *Console) Run() error
- func (con *Console) Search(c echo.Context) error
- func (con *Console) StatsHeaderFragment(c echo.Context) error
- func (con *Console) Stop()
- func (con *Console) TPSFragment(c echo.Context) error
- func (con *Console) TotalTransactionsFragment(c echo.Context) error
- func (con *Console) Transaction(c echo.Context) error
- func (con *Console) Transactions(c echo.Context) error
- func (con *Console) Validator(c echo.Context) error
- func (con *Console) Validators(c echo.Context) error
- func (con *Console) ValidatorsUptime(c echo.Context) error
- func (con *Console) ValidatorsUptimeByRollup(c echo.Context) error
- type SSEEvent
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]) GetLastUpdated ¶
GetLastUpdated returns when the cache was last updated
func (*Cache[T]) StartRefresh ¶
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 (*Console) Initialize ¶
func (con *Console) Initialize()
func (*Console) NetworkSidebarFragment ¶
func (*Console) StatsHeaderFragment ¶
HTMX Fragment Handlers
func (*Console) TotalTransactionsFragment ¶
Click to show internal directories.
Click to hide internal directories.