utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDNS

func CheckDNS(target string, timeout time.Duration) error

func CheckHTTP

func CheckHTTP(target string, timeout time.Duration, ignoreTLSError ...bool) (int, error)

func CheckPing

func CheckPing(target string, timeout time.Duration) error

func CheckTCP

func CheckTCP(target string, timeout time.Duration) error

func Decrypt

func Decrypt(key []byte, cryptoText string) (string, error)

func Encrypt

func Encrypt(key, text []byte) (string, error)

func GenerateTOTP

func GenerateTOTP(secret string) (string, error)

Types

type DomainCheckResult

type DomainCheckResult struct {
	DaysRemaining      int
	TriggeredThreshold int
	Warning            bool
}

func CheckDomain

func CheckDomain(target string, monitorType string, thresholds []int) (DomainCheckResult, error)

type SSLCheckResult

type SSLCheckResult struct {
	DaysRemaining      int
	TriggeredThreshold int
	Warning            bool
}

func CheckHTTPSSLCertificate

func CheckHTTPSSLCertificate(target string, timeout time.Duration, thresholds []int) (SSLCheckResult, error)

func CheckSSL

func CheckSSL(target string, timeout time.Duration, thresholds []int) (SSLCheckResult, error)

Jump to

Keyboard shortcuts

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