MCPcopy
hub / github.com/ChineseSubFinder/ChineseSubFinder / Add

Method Add

pkg/notify_center/NotifyCenter.go:24–31  ·  view source on GitHub ↗
(groupName, infoContent string)

Source from the content-addressed store, hash-verified

22}
23
24func (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
33func (n *NotifyCenter) Send() {
34 if n == nil || n.webhookUrl == "" {

Callers 1

TestNewNotifyCenterFunction · 0.95

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by 1

TestNewNotifyCenterFunction · 0.76