config

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinIPsWarningOptionDefaultValue = 30
	ReportExpirationDefaultValue    = "90d"
	DefaultSQLiteDBFile             = "ipdex.sqlite"
	DefaultFormat                   = display.HumanFormat
	BatchSize                       = 100
)
View Source
const (
	APIKeyOption           = "api_key"
	SQLiteDBpathOption     = "sqlite_path"
	OutputFormatOption     = "output_format"
	MinIPsWarningOption    = "min_ips_warning"
	ReportExpirationOption = "report_expiration_days"
)

Variables

View Source
var (
	OutputFormat string
	ForceRefresh bool
	Yes          bool
	Detailed     bool
	ReportName   string
	Batching     bool
)
View Source
var CacheFolder string
View Source
var ConfigFolder string

Functions

func CapitalizeWords

func CapitalizeWords(s string) string

func GetCacheFolder

func GetCacheFolder() (string, error)

func GetConfigFolder

func GetConfigFolder() (string, error)

func IsSupportedOutputFormat

func IsSupportedOutputFormat(outputFormat string) bool

func IsValidFilePath

func IsValidFilePath(path string) bool

func IsValidIP

func IsValidIP(ip string) bool

func IsValidInt

func IsValidInt(s string) bool

func MaxIPsCheck

func MaxIPsCheck(nbIPs int, maxIPs int) (bool, error)

func NewConfigCmd

func NewConfigCmd() *cobra.Command

func NewSetCmd

func NewSetCmd() *cobra.Command

func NewShowCmd

func NewShowCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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