MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / getValueByIndex

Function getValueByIndex

agent/utils/alert/alert.go:380–387  ·  view source on GitHub ↗
(params []dto.Param, index string)

Source from the content-addressed store, hash-verified

378}
379
380func getValueByIndex(params []dto.Param, index string) string {
381 for _, p := range params {
382 if p.Index == index {
383 return p.Value
384 }
385 }
386 return ""
387}
388
389func CountRecentFailedLoginLogs(minutes uint, failCount uint) (int, bool, error) {
390 now := time.Now()

Callers 1

GetSendContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected