config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlatformFofa       = "fofa"
	PlatformHunter     = "hunter"
	PlatformQuake      = "quake"
	PlatformShodan     = "shodan"
	PlatformZoomeye    = "zoomeye"
	PlatformVirusTotal = "virustotal"
	PlatformAlienVault = "alienvault"
)

Variables

This section is empty.

Functions

func GetKeys added in v0.0.7

func GetKeys(platform string) []string

GetKeys 获取指定平台的所有密钥

func RandomKey

func RandomKey(name string) *string

RandomKey 随机返回一个 API 密钥

func SetKeys added in v0.0.6

func SetKeys(platform string, keys []string)

SetKeys 设置 API 密钥

Types

type KeyStatus added in v0.0.7

type KeyStatus struct {
	Key     string // 密钥(脱敏显示)
	Valid   bool   // 是否有效
	Credits int64  // 剩余额度(若平台支持)
	Info    string // 附加信息
	Error   error  // 错误信息
}

KeyStatus 凭据验证结果

Jump to

Keyboard shortcuts

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