stats

package
v1.5.2-rc Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stats

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

func New

func New(o StatsOpts) *Stats

func (*Stats) APIStatsResponse

func (s *Stats) APIStatsResponse(ctx context.Context) (map[string]interface{}, error)

func (*Stats) GetLatestBlock

func (s *Stats) GetLatestBlock() uint64

func (*Stats) SetLatestBlock

func (s *Stats) SetLatestBlock(v uint64)

func (*Stats) StartStatsPrinter

func (s *Stats) StartStatsPrinter()

func (*Stats) Stop

func (s *Stats) Stop()

type StatsOpts

type StatsOpts struct {
	Cache cache.Cache
	Logg  *slog.Logger
	Pool  *pool.Pool
}

Jump to

Keyboard shortcuts

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