backend

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package backend : 裏方の処理

Index

Constants

This section is empty.

Variables

View Source
var SaveMapInterval = 60

Functions

func CheckAllNetworks added in v1.46.0

func CheckAllNetworks()

func CheckNetwork added in v1.42.0

func CheckNetwork(id string)

func CmpVersion added in v1.5.0

func CmpVersion(mv, sv string) int

func DeleteAIResult

func DeleteAIResult(id string) error

func GetPortList added in v1.12.0

func GetPortList(n *datastore.NodeEnt) ([]*PortEnt, []*PortEnt)

func GetVPanelPowerInfo added in v1.6.0

func GetVPanelPowerInfo(n *datastore.NodeEnt) bool

GetVPanelPowerInfo : パネルの電源状態を取得

func HasNewVersion

func HasNewVersion() bool

func MakeAIData added in v1.2.0

func MakeAIData(req *AIReq) error

func Start

func Start(ctx context.Context, dsp, vn string, wg *sync.WaitGroup) error

Types

type AIReq added in v1.2.0

type AIReq struct {
	PollingID string
	TimeStamp []int64
	Data      [][]float64
}

type FindNeighborNetworksAndLinesResp added in v1.40.0

type FindNeighborNetworksAndLinesResp struct {
	Networks []*datastore.NetworkEnt
	Lines    []*datastore.LineEnt
}

func FindNeighborNetworksAndLines added in v1.40.0

func FindNeighborNetworksAndLines(n *datastore.NetworkEnt) *FindNeighborNetworksAndLinesResp

FindNeighborNetworksAndLines 接続可能なLineと隣接する未登録のネットワークを検索する

type HostResourceEnt added in v1.6.0

type HostResourceEnt struct {
	System     []*HrSystem
	Storage    []*HrStorage
	Device     []*HrDevice
	FileSystem []*HrFileSystem
	Process    []*HrProcess
}

func GetHostResource added in v1.6.0

func GetHostResource(n *datastore.NodeEnt) *HostResourceEnt

type HrDevice added in v1.6.0

type HrDevice struct {
	Index  string
	Type   string
	Descr  string
	Status string
	Errors string
}

type HrFileSystem added in v1.6.0

type HrFileSystem struct {
	Index    string
	Type     string
	Mount    string
	Remote   string
	Bootable int64
	Access   int64
}

type HrProcess added in v1.6.0

type HrProcess struct {
	PID    string
	Name   string
	Type   string
	Status string
	Path   string
	Param  string
	CPU    int64
	Mem    int64
}

type HrStorage added in v1.6.0

type HrStorage struct {
	Index string
	Type  string
	Descr string
	Size  int64
	Used  int64
	Unit  int64
}

type HrSystem added in v1.6.0

type HrSystem struct {
	Index   int
	Name    string
	Value   string
	Polling string
}

type PortEnt added in v1.12.0

type PortEnt struct {
	Port    int
	Address string
	Process string
	Descr   string
}

type RMONEnt added in v1.16.0

type RMONEnt struct {
	ProtocolDir map[int]string
	SysUptime   int64
	LocalTime   int64
	MIBs        map[string]map[string]string
}

func GetRMON added in v1.16.0

func GetRMON(n *datastore.NodeEnt, t string) *RMONEnt

type TimeAnalyzedPollingLog added in v1.2.0

type TimeAnalyzedPollingLog struct {
	PX2        int64
	TimeH      []int64
	TimePX2    []int64
	DataMapH   map[string][]float64
	StlMapH    map[string]stl.Result
	DataMapPX2 map[string][]float64
	StlMapPX2  map[string]stl.Result
	FFTH       map[string][][]float64
	FFTPX2     map[string][][]float64
}

func TimeAnalyzePollingLog added in v1.2.0

func TimeAnalyzePollingLog(id string) (TimeAnalyzedPollingLog, error)

type VPanelPortEnt added in v1.6.0

type VPanelPortEnt struct {
	Index      int64
	State      string
	Name       string
	Speed      int64
	OutPacktes int64
	OutBytes   int64
	OutError   int64
	InPacktes  int64
	InBytes    int64
	InError    int64
	Type       int64
	Admin      int64
	Oper       int64
	MAC        string
	// contains filtered or unexported fields
}

func GetVPanelPorts added in v1.6.0

func GetVPanelPorts(n *datastore.NodeEnt) []*VPanelPortEnt

GetVPanelPorts : パネルに表示するポートの情報を取得する 優先順位は 1.ポーリングの設定 2.SNMPから取得 3.ラインの設定

Jump to

Keyboard shortcuts

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