Help us shape the future of Go! Take the 2026 Go Developer Survey

runner

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CDNDetector

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

func NewCDNDetector

func NewCDNDetector() *CDNDetector

func (*CDNDetector) Detect

func (d *CDNDetector) Detect(input string) (bool, string, string, error)

type CSVOutput

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

func NewCSVOutput

func NewCSVOutput(filename string) *CSVOutput

func (*CSVOutput) Close

func (c *CSVOutput) Close() error

func (*CSVOutput) Write

func (c *CSVOutput) Write(url, fingerprint, cdnInfo string) error

type InputProcessor

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

func NewInputProcessor

func NewInputProcessor(url, urlFile string) (*InputProcessor, error)

func (*InputProcessor) URLs

func (ip *InputProcessor) URLs() <-chan string

type Options

type Options struct {
	URL          string
	URLFile      string
	OutputFormat string
	OutputFile   string
}

type OutputProcessor

type OutputProcessor interface {
	Write(url, fingerprint, cdnInfo string) error
	Close() error
}

type Runner

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

func NewRunner

func NewRunner(options *Options) (*Runner, error)

func (*Runner) Run

func (r *Runner) Run() error

type TXTOutput

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

func NewTXTOutput

func NewTXTOutput(filename string) *TXTOutput

func (*TXTOutput) Close

func (t *TXTOutput) Close() error

func (*TXTOutput) Write

func (t *TXTOutput) Write(url, fingerprint, cdnInfo string) error

type TerminalOutput

type TerminalOutput struct{}

func NewTerminalOutput

func NewTerminalOutput() *TerminalOutput

func (*TerminalOutput) Close

func (t *TerminalOutput) Close() error

func (*TerminalOutput) Write

func (t *TerminalOutput) Write(url, fingerprint, cdnInfo string) error

Jump to

Keyboard shortcuts

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