nodes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Heartbeat

func Heartbeat(db *sql.DB, nodeID string, activeCPUDebt float64, warmHits int64) error

Types

type Node

type Node struct {
	ID            string
	Address       string
	Runtime       string
	Labels        string
	CPUCapacity   float64
	MemoryMB      int64
	ActiveCPUDebt float64
	WarmHitCount  int64
	Status        string
	CreatedAt     string
	UpdatedAt     string
}

func Inspect

func Inspect(db *sql.DB, nodeID string) (Node, error)

func List

func List(db *sql.DB) ([]Node, error)

func Register

func Register(db *sql.DB, address, runtime, labels string, cpu float64, memoryMB int64) (Node, error)

Jump to

Keyboard shortcuts

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