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)
Click to show internal directories.
Click to hide internal directories.