funcs

package
v0.0.0-...-f78050c Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MapLock   = new(sync.Mutex)
	MapStatus map[string][]g.MapVal
)

Functions

func AlertSendMail

func AlertSendMail(t g.AlertLog)

func AlertStorage

func AlertStorage(t g.AlertLog)

func BackString

func BackString(m map[string]string) (string, string, string, string)

func Backmap

func Backmap(fline string) map[string]string

func Backslicesum

func Backslicesum(slicename []float64) float64

func CheckAlertStatus

func CheckAlertStatus(v map[string]string) bool

func CheckIsIn

func CheckIsIn(slicename []string, linename string) bool

func CheckIsInAllMap

func CheckIsInAllMap(gconfig *g.Config, mname g.NetworkMember) bool

func CheckIsInMap

func CheckIsInMap(slicename *[]map[string]string, mname map[string]string) bool

func ClearArchive

func ClearArchive()

clear timeout alert table

func CompareSlice

func CompareSlice(nowslice, originslice []string) ([]string, []string)

func DelipfromMap

func DelipfromMap(selfpingtopology []map[string]string, delslice []string) []map[string]string

func Delipfromslice

func Delipfromslice(selfpingslice, delslice []string) []string

func DnsResolve

func DnsResolve(domain string, count int) []string

func MapPingStorage

func MapPingStorage()

func Mapping

func Mapping()

func MappingTask

func MappingTask(tel string, prov string, ips []string, wg *sync.WaitGroup)

ping main function

func MonitorDomain

func MonitorDomain()

func Ping

func Ping()

func PingStorage

func PingStorage(pingres g.PingSt, Addr string)

storage ping data

func PingTask

func PingTask(ipvalue string, wg *sync.WaitGroup)

ping main function

func RemoveIsIntSlice

func RemoveIsIntSlice(sourceslice *[]string) []string

该函数的作用是去重

func SendAlarm

func SendAlarm(ipvalue string)

func SendMail

func SendMail(user, pwd, host, to, subject, body string) error

func StartAlert

func StartAlert()

func StartCloudMonitor

func StartCloudMonitor()

func StringIsInSlice

func StringIsInSlice(slicename []string, str string) bool

func ValidDomain

func ValidDomain(domainName string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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