Update Go, deps and linter

This commit is contained in:
Daniel
2022-08-30 16:13:26 +02:00
parent 44b5375bb4
commit 8cf882f4d4
22 changed files with 87 additions and 88 deletions

View File

@@ -37,14 +37,13 @@ type ThreatPayload struct {
//
// Example:
//
// threat := NewThreat("portscan", "Someone is scanning you").
// SetData(portscanResult).
// SetMitigationLevel(SecurityLevelExtreme).
// Publish()
//
// // Once you're done, delete the threat
// threat.Delete().Publish()
// threat := NewThreat("portscan", "Someone is scanning you").
// SetData(portscanResult).
// SetMitigationLevel(SecurityLevelExtreme).
// Publish()
//
// Once you're done, delete the threat
// threat.Delete().Publish()
func NewThreat(id, title, msg string) *Threat {
t := &Threat{
Notification: &notifications.Notification{