utils

package
v0.0.0-...-cc1ad65 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetListeningPorts

func GetListeningPorts(configPath string) ([]string, error)

func GetStats

func GetStats() (string, error)

func IsValidDomain

func IsValidDomain(domain string) bool

Types

type Stats

type Stats struct {
	Ports       []string `json:"ports"`
	DomainCount int      `json:"domain_count"`
	CPULoad     string   `json:"cpu_load"`
	RAMUsage    string   `json:"ram_usage"`
	CPUUsage    string   `json:"cpu_usage"`
	Upload      string   `json:"upload"`
	Download    string   `json:"download"`
}

Jump to

Keyboard shortcuts

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