utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SkipSSRFCheck bool

Functions

func Base64Decode added in v1.0.8

func Base64Decode(s string) ([]byte, error)

func CalculateShannonEntropy added in v1.0.6

func CalculateShannonEntropy(str string) float64

func Decrypt added in v1.0.6

func Decrypt(data []byte, password string) ([]byte, error)

func Encrypt added in v1.0.6

func Encrypt(data []byte, password string) ([]byte, error)

func ParseAPIError

func ParseAPIError(body []byte, apiKey string) string

func ParseRetryAfter

func ParseRetryAfter(respHeaders map[string][]string) int

func ValidateURL added in v1.0.5

func ValidateURL(rawURL string) error

Types

type BloomFilter added in v1.0.8

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

func LoadBloomFilter added in v1.1.0

func LoadBloomFilter(filePath string) (*BloomFilter, error)

func NewBloomFilter added in v1.0.8

func NewBloomFilter(n uint64, p float64) *BloomFilter

func (*BloomFilter) Add added in v1.0.8

func (bf *BloomFilter) Add(data string)

func (*BloomFilter) Save added in v1.1.0

func (bf *BloomFilter) Save(filePath string) error

func (*BloomFilter) Test added in v1.0.8

func (bf *BloomFilter) Test(data string) bool

Jump to

Keyboard shortcuts

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