Documentation
¶
Overview ¶
Package backend : 裏方の処理
Index ¶
- Variables
- func CheckAllNetworks()
- func CheckNetwork(id string)
- func DeleteAIResult(id string) error
- func DoCehckCertMonitor()
- func GetPortList(n *datastore.NodeEnt) ([]*PortEnt, []*PortEnt)
- func GetVPanelPowerInfo(id string) bool
- func IsLatest() bool
- func MakeAIData(req *AIReq) error
- func NotifyMCPConfigChanged()
- func Start(ctx context.Context, dsp, v string, wg *sync.WaitGroup) error
- type AIReq
- type FDBTableEnt
- 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 CheckAllNetworks ¶ added in v1.15.0
func CheckAllNetworks()
CheckAllNetworks performs a re-check of all network nodes.
func CheckNetwork ¶ added in v1.10.0
func CheckNetwork(id string)
func DeleteAIResult ¶
func DoCehckCertMonitor ¶ added in v1.24.0
func DoCehckCertMonitor()
func MakeAIData ¶
func NotifyMCPConfigChanged ¶ added in v1.23.0
func NotifyMCPConfigChanged()
Types ¶
type FDBTableEnt ¶ added in v1.31.0
func GetFDBTable ¶ added in v1.31.0
func GetFDBTable(id string) []*FDBTableEnt
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"`
LastChanged int64 `json:"LastChanged"`
// contains filtered or unexported fields
}
func GetVPanelPorts ¶
func GetVPanelPorts(id string) []*VPanelPortEnt
GetVPanelPorts : パネルに表示するポートの情報を取得する 優先順位は 1.ポーリングの設定 2.SNMPから取得 3.ラインの設定
Click to show internal directories.
Click to hide internal directories.