aninterface

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnLogger

type AnLogger interface {
	Info(msg string)
	Error(msg string)
	Debug(msg string)

	WithFile(filename string) AnLogger
}

type StaticData

type StaticData interface {
	// Processus
	PID() int
	PPID() int
	Executable() string
	WorkingDir() string
	Goroutines() int
	MemStats() *runtime.MemStats

	// Machine
	Hostname() string
	OS() string
	Arch() string
	GoVersion() string
	Uptime() time.Duration

	// Utilisateur
	Username() string
	UID() string
	GID() string
	HomeDir() string

	// CPU
	NumCPU() int
	GOMAXPROCS() int

	// Mémoire
	HeapUsed() uint64
	StackUsage() uint64

	// Réseau
	Interfaces() []net.Interface

	// Core info
	AnCoreID() string
	AnCoreVersion() string
}

Jump to

Keyboard shortcuts

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