reports

package
v3.0.0-alpha5.0...-c974331 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientsEstimateReport

type ClientsEstimateReport struct {
	Clients []ClientsEstimateReportEntry
}

func CreateClientsEstimateReport

func CreateClientsEstimateReport(
	ctx context.Context,
	db database.DB,
	limit uint,
	maxPingTries uint,
	networkID uint,
) (*ClientsEstimateReport, error)

func (*ClientsEstimateReport) String

func (report *ClientsEstimateReport) String() string

type ClientsEstimateReportEntry

type ClientsEstimateReportEntry struct {
	Name      string
	CountLow  uint
	CountHigh uint
}

type ClientsReport

type ClientsReport struct {
	Clients []ClientsReportEntry
}

func CreateClientsReport

func CreateClientsReport(ctx context.Context, db database.DB, limit uint, maxPingTries uint, networkID uint) (*ClientsReport, error)

func (*ClientsReport) String

func (report *ClientsReport) String() string

type ClientsReportEntry

type ClientsReportEntry struct {
	Name  string
	Count uint
}

type Command

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

func NewCommand

func NewCommand() *Command

func (*Command) OnRun

func (command *Command) OnRun(runFunc func(ctx context.Context, flags CommandFlags) error)

func (*Command) RawCommand

func (command *Command) RawCommand() *cobra.Command

type CommandFlags

type CommandFlags struct {
	DataDir      string
	Chain        string
	ClientsLimit uint
	MaxPingTries uint
	Estimate     bool

	SentryCandidates bool
	ErigonLogPath    string
}

type SentryCandidatesReport

type SentryCandidatesReport struct {
	TotalCount       uint
	SeenCount        uint
	HandshakeCount   uint
	UnknownClientIDs []string
	UnseenClientIDs  []string
}

func CreateSentryCandidatesReport

func CreateSentryCandidatesReport(
	ctx context.Context,
	db database.DB,
	logPath string,
) (*SentryCandidatesReport, error)

func (*SentryCandidatesReport) String

func (report *SentryCandidatesReport) String() string

type StatusReport

type StatusReport struct {
	TotalCount      uint
	DistinctIPCount uint
}

func CreateStatusReport

func CreateStatusReport(ctx context.Context, db database.DB, maxPingTries uint, networkID uint) (*StatusReport, error)

func (*StatusReport) String

func (report *StatusReport) String() string

Jump to

Keyboard shortcuts

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