config

package
v0.0.0-...-3ae7fb4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Overview

Copyright 2024 Rangertaha. All Rights Reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

View Source
const DIR_PRIMARY = ".config/urlinsane"

Variables

This section is empty.

Functions

func CliOptions

func CliOptions(cli *cli.Context) func(*Config)

func ConfigOption

func ConfigOption(
	domain string,
	boards []string,
	langs []string,
	algos []string,
	cols []string,
	anlyzrs []string,
	database string,

	regex string,
	distance int,

	format string,
	file string,
	summary bool,
	registered bool,
	unregistered bool,
	verbose bool,
	progress bool,
	banner bool,
	debug bool,
	assets string,

	workers int,
	random time.Duration,
	delay time.Duration,
	ttl time.Duration,
	timeout time.Duration,

) func(*Config)

Types

type Config

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

func New

func New(options ...func(*Config)) (*Config, error)

New creates a new configuration

func (*Config) Algorithms

func (c *Config) Algorithms() []internal.Algorithm

func (*Config) Analyzers

func (c *Config) Analyzers() []internal.Analyzer

func (*Config) AssetDir

func (c *Config) AssetDir() string

func (*Config) Banner

func (c *Config) Banner() bool

func (*Config) Collectors

func (c *Config) Collectors() []internal.Collector

func (*Config) Count

func (c *Config) Count(v ...int) int

func (*Config) Database

func (c *Config) Database() internal.Database

func (*Config) Delay

func (c *Config) Delay() time.Duration

func (*Config) Dir

func (c *Config) Dir() string

func (*Config) Distance

func (c *Config) Distance() int

func (*Config) File

func (c *Config) File() string

func (*Config) Filters

func (c *Config) Filters() (fields []string)

Outputs options

func (*Config) Format

func (c *Config) Format() string

func (*Config) Keyboards

func (c *Config) Keyboards() []internal.Keyboard

Plugins options

func (*Config) Languages

func (c *Config) Languages() []internal.Language

func (*Config) Output

func (c *Config) Output() internal.Output

func (*Config) Progress

func (c *Config) Progress() bool

func (*Config) Random

func (c *Config) Random() time.Duration

func (*Config) Regex

func (c *Config) Regex() string

Constraint options

func (*Config) Registered

func (c *Config) Registered() bool

func (*Config) Summary

func (c *Config) Summary() bool

func (*Config) TTL

func (c *Config) TTL() time.Duration

func (*Config) Target

func (c *Config) Target() string

func (*Config) Timeout

func (c *Config) Timeout() time.Duration

func (*Config) Unregistered

func (c *Config) Unregistered() bool

func (*Config) Verbose

func (c *Config) Verbose() bool

func (*Config) Workers

func (c *Config) Workers() int

Performance options

type Infos

type Infos []internal.Collector

func (Infos) Len

func (o Infos) Len() int

func (Infos) Swap

func (o Infos) Swap(i, j int)

type InfosOrder

type InfosOrder struct{ Infos }

func (InfosOrder) Less

func (l InfosOrder) Less(i, j int) bool

type InfosReverseOrder

type InfosReverseOrder struct{ Infos }

func (InfosReverseOrder) Less

func (l InfosReverseOrder) Less(i, j int) bool

Jump to

Keyboard shortcuts

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