types

package
v0.0.0-...-6ac6f58 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileConnectFlag = "<!|!>"
)

define const vars

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentBase

type AgentBase struct {
	IP      string            `json:"ip"`
	Port    int               `json:"port"`
	Message string            `json:"message"`
	Cluster string            `json:"cluster"`
	Labels  map[string]string `json:"labels"`
}

AgentBase : agent info

type AgentInfo

type AgentInfo struct {
	Base  AgentBase `json:"base"`
	Total Resource  `json:"total"`
	Free  Resource  `json:"free"`
}

AgentInfo : agent info

type ReportAgentResource

type ReportAgentResource struct {
	AgentInfo
}

ReportAgentResource : struct of report resource

type Resource

type Resource struct {
	CPU  float64 `json:"cpu"`
	Mem  float64 `json:"mem"`
	Disk float64 `json:"disk"`
}

Resource : 资源信息

Jump to

Keyboard shortcuts

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