13 lines
205 B
Go
13 lines
205 B
Go
package diunwebhook
|
|
|
|
func GetUpdatesMap() map[string]DiunEvent {
|
|
mu.Lock()
|
|
defer mu.Unlock()
|
|
return updates
|
|
}
|
|
func UpdatesReset() {
|
|
mu.Lock()
|
|
defer mu.Unlock()
|
|
updates = make(map[string]DiunEvent)
|
|
}
|