utils

package
v0.0.0-...-b7dec55 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BrowserPath *string
View Source
var FolderPath *string
View Source
var Prd *bool
View Source
var Screenshot *bool
View Source
var Source *bool

Functions

func CompareHash

func CompareHash(analyzes []Analyze)

func HashByte

func HashByte(body []byte) []byte

Types

type Analyze

type Analyze struct {
	IpDest      string
	IpSource    []string
	CountryCode string
	Hash        []byte
	Online      bool
	Nameserver  Nameserver
	Filename    string
}

func GetAnalyzesByCountryCode

func GetAnalyzesByCountryCode(analyzes []Analyze, countryCode string) []*Analyze

func GetAnalyzesByHosts

func GetAnalyzesByHosts(analyzes []Analyze, countryCode string, hosts []string) []*Analyze

func RemoveAnalyzeDuplicates

func RemoveAnalyzeDuplicates(analyzes []Analyze) []Analyze

RemoveAnalyzeDuplicates Function to remove duplicates from a slice of Analyze structs

func (Analyze) Key

func (a Analyze) Key() string

Key Method to convert the struct to a comparable string key

type EndpointMetadata

type EndpointMetadata struct {
	Endpoint    string
	Port        string
	Prefix      string
	Host        string
	Nameservers []Nameserver
	Cname       bool
	CnameHost   string
	Online      bool
}

type GeoIP

type GeoIP struct {
	Resource    EndpointMetadata
	Analyzes    []Analyze
	VPNProvider vpn.IProviderVPN
	Logger      *zap.Logger
}

type Nameserver

type Nameserver struct {
	Host *net.NS
	IPs  []net.IP
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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