node

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HEARTBEAT_RATE = time.Second * 30
View Source
var LAST_HEARTBEAT_TIMEOUT = time.Minute * 5

Functions

This section is empty.

Types

type Node

type Node struct {
	ID              string    `json:"id,omitempty"`
	StartedAt       time.Time `json:"startedAt,omitempty"`
	CPUPercent      float64   `json:"cpuPercent,omitempty"`
	LastHeartbeatAt time.Time `json:"lastHeartbeatAt,omitempty"`
	Queue           string    `json:"queue,omitempty"`
	Status          Status    `json:"status,omitempty"`
	Hostname        string    `json:"hostname,omitempty"`
	TaskCount       int       `json:"taskCount"`
}

type Status

type Status string
const (
	UP      Status = "UP"
	Down    Status = "DOWN"
	Offline Status = "OFFLINE"
)

Jump to

Keyboard shortcuts

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