Documentation ¶
Index ¶
- Constants
- Variables
- func IsBlank(value string) bool
- func IsURL(input string) bool
- func ProbeURL(input string, httpxclient *httpx.HTTPX) string
- func ReadFromPathOrURL(templatePath string, catalog catalog.Catalog) (data []byte, err error)
- func StringSliceContains(slice []string, item string) bool
- func TemplatePathURL(fullPath, templateId string) (string, 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 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 ReadFromPathOrURL ¶
ReadFromPathOrURL 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.