Documentation ¶
Overview ¶
Package backend : 裏方の処理
Index ¶
- Variables
- func CheckAllNetworks()
- func CheckNetwork(id string)
- func DeleteAIResult(id string) error
- func GetPortList(n *datastore.NodeEnt) ([]*PortEnt, []*PortEnt)
- func GetVPanelPowerInfo(id string) bool
- func IsLatest() bool
- func MakeAIData(req *AIReq) error
- func Start(ctx context.Context, dsp, vn string, wg *sync.WaitGroup) error
- type AIReq
- type FindNeighborNetworksAndLinesResp
- type HostResourceEnt
- type HrDevice
- type HrFileSystem
- type HrProcess
- type HrStorage
- type HrSystem
- type MonitorDataEnt
- type PortEnt
- type VPanelPortEnt
Constants ¶
This section is empty.
Variables ¶
View Source
var MonitorDataes []*MonitorDataEnt
MonitorDataes : モニターデータ
Functions ¶
func CheckNetwork ¶ added in v1.10.0
func CheckNetwork(id string)
func DeleteAIResult ¶
func MakeAIData ¶
Types ¶
type FindNeighborNetworksAndLinesResp ¶ added in v1.9.0
type FindNeighborNetworksAndLinesResp struct { Networks []datastore.NetworkEnt `json:"Networks"` Lines []datastore.LineEnt `json:"Lines"` }
func FindNeighborNetworksAndLines ¶ added in v1.9.0
func FindNeighborNetworksAndLines(n *datastore.NetworkEnt) FindNeighborNetworksAndLinesResp
FindNeighborNetworksAndLines 接続可能なLineと隣接する未登録のネットワークを検索する
type HostResourceEnt ¶
type HostResourceEnt struct { System []*HrSystem `json:"System"` Storage []*HrStorage `json:"Storage"` Device []*HrDevice `json:"Device"` FileSystem []*HrFileSystem `json:"FileSystem"` Process []*HrProcess `json:"Process"` }
func GetHostResource ¶
func GetHostResource(n *datastore.NodeEnt) *HostResourceEnt
type HrFileSystem ¶
type MonitorDataEnt ¶
type MonitorDataEnt struct { Time int64 `json:"Time"` CPU float64 `json:"CPU"` Mem float64 `json:"Mem"` MyCPU float64 `json:"MyCPU"` MyMem float64 `json:"MyMem"` Swap float64 `json:"Swap"` Disk float64 `json:"Disk"` Load float64 `json:"Load"` Bytes float64 `json:"Bytes"` Net float64 `json:"Net"` Conn int `json:"Conn"` Proc int `json:"Proc"` DBSize int64 `json:"DBSize"` HeapAlloc int64 `json:"HeapAlloc"` Sys int64 `json:"Sys"` NumGoroutine int `json:"NumGoroutine"` }
MonitorDataEnt :
type VPanelPortEnt ¶
type VPanelPortEnt struct { Index int64 `json:"Index"` State string `json:"State"` Name string `json:"Name"` Speed int64 `json:"Speed"` OutPacktes int64 `json:"OutPacktes"` OutBytes int64 `json:"OutBytes"` OutError int64 `json:"OutError"` InPacktes int64 `json:"InPacktes"` InBytes int64 `json:"InBytes"` InError int64 `json:"InError"` Type int64 `json:"Type"` Admin int64 `json:"Admin"` Oper int64 `json:"Oper"` MAC string `json:"MAC"` // contains filtered or unexported fields }
func GetVPanelPorts ¶
func GetVPanelPorts(id string) []*VPanelPortEnt
GetVPanelPorts : パネルに表示するポートの情報を取得する 優先順位は 1.ポーリングの設定 2.SNMPから取得 3.ラインの設定
Source Files ¶
Click to show internal directories.
Click to hide internal directories.