(groupName, infoContent string)
| 22 | } |
| 23 | |
| 24 | func (n *NotifyCenter) Add(groupName, infoContent string) { |
| 25 | if n == nil { |
| 26 | return |
| 27 | } |
| 28 | n.mu.Lock() |
| 29 | defer n.mu.Unlock() |
| 30 | n.infos[groupName] = infoContent |
| 31 | } |
| 32 | |
| 33 | func (n *NotifyCenter) Send() { |
| 34 | if n == nil || n.webhookUrl == "" { |