Documentation ¶
Index ¶
- Constants
- Variables
- func GetInputLivenessChecker(client *httpx.HTTPX) types.InputLivenessProbe
- func IsBlank(value string) bool
- func IsURL(input string) bool
- func MapHash[K constraints.Ordered, V any](m map[K]V) uint64
- func ProbeURL(input string, httpxclient *httpx.HTTPX) string
- func ReaderFromPathOrURL(templatePath string, catalog catalog.Catalog) (io.ReadCloser, error)
- func StringSliceContains(slice []string, item string) bool
- func TemplatePathURL(fullPath, templateId, templateVerifier string) (path string, url string)
- func TransformIndex[T any](arr []T, index int) int
- func UnwrapError(err error) error
- type InsertionOrderedStringMap
- func (insertionOrderedStringMap *InsertionOrderedStringMap) ForEach(fn func(key string, data interface{}))
- func (insertionOrderedStringMap *InsertionOrderedStringMap) Len() int
- func (insertionOrderedStringMap *InsertionOrderedStringMap) Set(key string, value interface{})
- func (insertionOrderedStringMap *InsertionOrderedStringMap) UnmarshalJSON(data []byte) error
- func (insertionOrderedStringMap *InsertionOrderedStringMap) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
View Source
const (
// TemplatesRepoURL is the URL for files in nuclei-templates repository
TemplatesRepoURL = "https://cloud.projectdiscovery.io/public/"
)
Variables ¶
View Source
var (
HttpSchemes = []string{"https", "http"}
)
Functions ¶
func GetInputLivenessChecker ¶
func GetInputLivenessChecker(client *httpx.HTTPX) types.InputLivenessProbe
GetInputLivenessChecker returns a new input liveness checker using provided httpx client
func MapHash ¶
func MapHash[K constraints.Ordered, V any](m map[K]V) uint64
MapHash generates a hash for any give map
func ProbeURL ¶
probeURL probes the scheme for a URL. first HTTPS is tried and if any errors occur http is tried. If none succeeds, probing is abandoned for such URLs.
func ReaderFromPathOrURL ¶
ReaderFromPathOrURL reads and returns the contents of a file or url.
func StringSliceContains ¶
StringSliceContains checks if a string slice contains a string.
func TemplatePathURL ¶
TemplatePathURL returns the Path and URL for the provided template
func TransformIndex ¶
TransformIndex transforms user given index (start from 1) to array index (start from 0) in safe way without panic i.e negative index or index out of range
func UnwrapError ¶
Types ¶
type InsertionOrderedStringMap ¶
type InsertionOrderedStringMap struct {
// contains filtered or unexported fields
}
func NewEmptyInsertionOrderedStringMap ¶
func NewEmptyInsertionOrderedStringMap(size int) *InsertionOrderedStringMap
func NewInsertionOrderedStringMap ¶
func NewInsertionOrderedStringMap(stringMap map[string]interface{}) *InsertionOrderedStringMap
func (*InsertionOrderedStringMap) ForEach ¶
func (insertionOrderedStringMap *InsertionOrderedStringMap) ForEach(fn func(key string, data interface{}))
func (*InsertionOrderedStringMap) Len ¶
func (insertionOrderedStringMap *InsertionOrderedStringMap) Len() int
func (*InsertionOrderedStringMap) Set ¶
func (insertionOrderedStringMap *InsertionOrderedStringMap) Set(key string, value interface{})
func (*InsertionOrderedStringMap) UnmarshalJSON ¶
func (insertionOrderedStringMap *InsertionOrderedStringMap) UnmarshalJSON(data []byte) error
func (*InsertionOrderedStringMap) UnmarshalYAML ¶
func (insertionOrderedStringMap *InsertionOrderedStringMap) UnmarshalYAML(unmarshal func(interface{}) error) error
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package monitor implements a goroutine based monitoring for detecting stuck scanner processes and dumping stack and other relevant information for investigation.
|
Package monitor implements a goroutine based monitoring for detecting stuck scanner processes and dumping stack and other relevant information for investigation. |
Package stats provides a storage mechanism for storing and display vital statistics of the engine at various durations.
|
Package stats provides a storage mechanism for storing and display vital statistics of the engine at various durations. |
Click to show internal directories.
Click to hide internal directories.