observability

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrCreateInstanceID

func GetOrCreateInstanceID() string

GetOrCreateInstanceID creates a file named dicedb.iid in a temp directory with a unique UUID v6. If the file exists, it reads the value and returns it. Otherwise, it creates the file and writes a new UUID v6 to it.

Types

type HardwareConfig

type HardwareConfig struct {
	OS            string `json:"os"`
	CPU           string `json:"cpu"`
	TotalMemoryMB int64  `json:"total_memory_mb"`
	TotalDiskMB   int64  `json:"total_disk_mb"`
	TotalCores    int    `json:"total_cores"`
}

func GetHardwareMeta

func GetHardwareMeta() (HardwareConfig, error)

Jump to

Keyboard shortcuts

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