uncover

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultChannelBuffSize = 32

Functions

func AllAgents added in v1.4.2

func AllAgents() []string

AllAgents returns all supported uncover Agents

func AnonymousAgents added in v1.4.2

func AnonymousAgents() []string

func GetTarget added in v1.4.2

func GetTarget(limit int, field string, csv bool, output string, engine, query []string, proxy, auth string) (<-chan string, error)

func UncoverAgents added in v1.4.2

func UncoverAgents() []string

Types

type Options added in v1.4.2

type Options struct {
	Agents   []string // Uncover Agents to use
	Queries  []string // Queries to pass to Agents
	Limit    int
	MaxRetry int
	Timeout  int
	// Note these ratelimits are used as fallback in case agent
	// ratelimit is not available in DefaultRateLimits
	RateLimit     uint          // default 30 req
	RateLimitUnit time.Duration // default unit
	Proxy         string
	ProxyAuth     string
}

type Service added in v1.4.2

type Service struct {
	Options  *Options
	Agents   []sources.Agent
	Session  *sources.Session
	Provider *sources.Provider
	Keys     sources.Keys
}

Service handler of all uncover Agents

func New added in v1.4.2

func New(opts *Options) (*Service, error)

New creates new uncover service instance

func (*Service) Execute added in v1.4.2

func (s *Service) Execute(ctx context.Context) (<-chan sources.Result, error)

func (*Service) ExecuteWithCallback added in v1.4.2

func (s *Service) ExecuteWithCallback(ctx context.Context, callback func(result sources.Result)) error

ExecuteWithCallback ExecuteWithWriters writes output to writer along with stdout

Jump to

Keyboard shortcuts

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