runner

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUpdateCallback

func GetUpdateCallback() func()

GetUpdateCallback returns a callback function that updates asnmap

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
	DisableUpdateCheck bool
}

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