runner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Version = `v1.0.0`

Version is the current version of mapcidr

Variables

This section is empty.

Functions

This section is empty.

Types

type OnResultCallback

type OnResultCallback func([]*asnmap.Response)

type Options

type Options struct {
	FileInput     goflags.StringSlice
	Resolvers     goflags.StringSlice
	Asn           goflags.StringSlice
	Domain        goflags.StringSlice
	Ip            goflags.StringSlice
	Org           goflags.StringSlice
	Proxy         goflags.StringSlice
	OutputFile    string
	Output        io.Writer
	DisplayInJSON bool
	DisplayInCSV  bool
	Silent        bool
	Verbose       bool
	Version       bool
	DisplayIPv6   bool
	OnResult      OnResultCallback
}

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line options for application

type Runner

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

func New

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

func (*Runner) Close

func (r *Runner) Close() error

func (*Runner) Run

func (r *Runner) Run() error

Jump to

Keyboard shortcuts

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