model

package
v0.0.0-...-2756923 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUInfo

type CPUInfo struct {
	ModelName string
	Cores     int32
}

CPUInfo model

type Data

type Data struct {
	Base         DataBase
	Certificates []DataCertificate
	ConfFile     []File
}

Data model

type DataBase

type DataBase struct {
	ServerIpv4  string
	ServerIpv6  string
	HostName    string
	Token       string
	PollAddress string
}

DataBase model

type DataCertificate

type DataCertificate struct {
	ID        int64
	Domain    string
	FullChain string
	Key       string
}

DataCertificate model

type DockerInfo

type DockerInfo struct {
	ID     string
	Name   string
	Status int64
	Port   string
	State  string
	Image  string
}

DataDocker model

type File

type File struct {
	Path  string
	Name  string
	Value string
}

type InterfaceInfo

type InterfaceInfo struct {
	Addrs    []string
	ByteSent uint64
	ByteRecv uint64
}

InterfaceInfo model

type MemInfo

type MemInfo struct {
	Total     uint64
	Used      uint64
	Available uint64
}

MemInfo model

type StatusPercent

type StatusPercent struct {
	CPU  float64
	Disk float64
	Mem  float64
	Swap float64
}

StatusPercent model

type StatusServer

type StatusServer struct {
	Version    string
	Percent    StatusPercent
	CPU        []CPUInfo
	Mem        MemInfo
	Swap       SwapInfo
	Load       *load.AvgStat
	Network    map[string]InterfaceInfo
	BootTime   uint64
	Uptime     uint64
	DockerInfo []DockerInfo
}

StatusServer model

type SwapInfo

type SwapInfo struct {
	Total     uint64
	Used      uint64
	Available uint64
}

SwapInfo model

type UpdateInfo

type UpdateInfo struct {
	Code         int64
	Certificates []DataCertificate
	ConfFile     []File
}

UpdateInfo model

type Webreq

type Webreq struct {
	Code int64  `json:Code`
	Info string `json:Info`
}

Webreq model

Jump to

Keyboard shortcuts

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