cmd

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASNList

type ASNList []string

func (*ASNList) Set

func (l *ASNList) Set(c string) error

func (*ASNList) String

func (l *ASNList) String() string

type Config

type Config struct {
	Key    string
	Port   PortList
	ASN    ASNList
	Region RegionList

	Output   string
	Config   string
	Auto     bool
	Norepeat bool
	Page     PageRange
	// contains filtered or unexported fields
}

func (*Config) Check

func (c *Config) Check()

Check checks whether the config is vaild and generate the query

func (*Config) GetLogger

func (c *Config) GetLogger() *log.Logger

func (*Config) GetQuery

func (c *Config) GetQuery() string

type PageRange added in v1.1.1

type PageRange struct {
	Start int
	End   int
}

func (*PageRange) Set added in v1.1.1

func (r *PageRange) Set(c string) error

func (*PageRange) String added in v1.1.1

func (r *PageRange) String() string

type PortList

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

func (*PortList) Contains added in v1.1.3

func (l *PortList) Contains(num int) bool

func (*PortList) Set

func (l *PortList) Set(c string) error

func (*PortList) String

func (l *PortList) String() string

type RegionList

type RegionList []string

func (*RegionList) Set

func (l *RegionList) Set(c string) error

func (*RegionList) String

func (l *RegionList) String() string

Jump to

Keyboard shortcuts

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