MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / LoadAll

Function LoadAll

pkg/alertsender/sender.go:146–155  ·  view source on GitHub ↗

LoadAll loads all alert senders from the configuration inputs.

(configs []Config)

Source from the content-addressed store, hash-verified

144
145// LoadAll loads all alert senders from the configuration inputs.
146func LoadAll(configs []Config) error {
147 for _, config := range configs {
148 alertsender, err := Load(config)
149 if err != nil {
150 return fmt.Errorf("fail to load %q alertsender: %v", config.Type, err)
151 }
152 alertsenders[config.Type] = alertsender
153 }
154 return nil
155}

Callers 6

NewBufferedFunction · 0.92
TestRunSequenceRuleFunction · 0.92
TestAlertActionFunction · 0.92
TestKillActionFunction · 0.92
TestScanFunction · 0.92
RunMethod · 0.92

Calls 1

LoadFunction · 0.70

Tested by 4

TestRunSequenceRuleFunction · 0.74
TestAlertActionFunction · 0.74
TestKillActionFunction · 0.74
TestScanFunction · 0.74