Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/gotify/server
/ Do
Method
Do
api/stream/once.go:19–26 ·
view source on GitHub ↗
(f func())
Source
from the content-addressed store, hash-verified
17
}
18
19
func
(o *once) Do(f
func
()) {
20
if
atomic.LoadUint32(&o.done) == 1 {
21
return
22
}
23
if
o.mayExecute() {
24
f()
25
}
26
}
27
28
func
(o *once) mayExecute() bool {
29
o.m.Lock()
Callers
15
Test_Execute
Function · 0.95
Close
Method · 0.80
NotifyClose
Method · 0.80
TestHeaderInDev
Method · 0.80
TestHeaderInProd
Method · 0.80
TestHeadersFromConfiguration
Function · 0.80
TestHeadersFromCORSConfig
Function · 0.80
TestInvalidOrigin
Function · 0.80
TestAllowedOriginFromResponseHeaders
Function · 0.80
TestAllowedWildcardOriginInHeader
Function · 0.80
TestCORSHeaderRegex
Function · 0.80
TestCORSConfigOverride
Function · 0.80
Calls
1
mayExecute
Method · 0.95
Tested by
14
Test_Execute
Function · 0.76
TestHeaderInDev
Method · 0.64
TestHeaderInProd
Method · 0.64
TestHeadersFromConfiguration
Function · 0.64
TestHeadersFromCORSConfig
Function · 0.64
TestInvalidOrigin
Function · 0.64
TestAllowedOriginFromResponseHeaders
Function · 0.64
TestAllowedWildcardOriginInHeader
Function · 0.64
TestCORSHeaderRegex
Function · 0.64
TestCORSConfigOverride
Function · 0.64
TestOptionsRequest
Method · 0.64
TestSendMessage
Method · 0.64