stats

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package stats provides a storage mechanism for storing and display vital statistics of the engine at various durations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Display

func Display(name string)

Display displays the stats for a name

func DisplayAsWarning

func DisplayAsWarning(name string)

func ForceDisplayWarning

func ForceDisplayWarning(name string)

ForceDisplayWarning forces the display of a warning regardless of current verbosity level

func GetValue

func GetValue(name string) int64

GetValue returns the value for a set variable

func Increment

func Increment(name string)

Increment increments the value for a name string

func NewEntry

func NewEntry(name, description string)

NewEntry creates a new entry in the storage object

Types

type Storage

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

Storage is a storage for storing statistics information about the nuclei engine displaying it at user-defined intervals.

var Default *Storage

func New

func New() *Storage

New creates a new storage object

func (*Storage) Display

func (s *Storage) Display(name string)

Display displays the stats for a name

func (*Storage) DisplayAsWarning

func (s *Storage) DisplayAsWarning(name string)

func (*Storage) ForceDisplayWarning

func (s *Storage) ForceDisplayWarning(name string)

ForceDisplayWarning forces the display of a warning regardless of current verbosity level

func (*Storage) GetValue

func (s *Storage) GetValue(name string) int64

GetValue returns the value for a set variable

func (*Storage) Increment

func (s *Storage) Increment(name string)

Increment increments the value for a name string

func (*Storage) NewEntry

func (s *Storage) NewEntry(name, description string)

NewEntry creates a new entry in the storage object

Jump to

Keyboard shortcuts

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