Refactor project structure: enhance tests, improve server shutdown, expand CI checks, and update UI for better event presentation.
This commit is contained in:
12
pkg/diunwebhook/export_test.go
Normal file
12
pkg/diunwebhook/export_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user