Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/gotify/server
/ Set
Function
Set
mode/mode.go:17–20 ·
view source on GitHub ↗
Set sets the new mode.
(newMode string)
Source
from the content-addressed store, hash-verified
15
16
// Set sets the new mode.
17
func
Set(newMode string) {
18
mode = newMode
19
updateGinMode()
20
}
21
22
// Get returns the current mode.
23
func
Get() string {
Callers
15
main
Function · 0.92
BeforeTest
Method · 0.92
TestCorsConfig
Function · 0.92
TestEmptyCorsConfigWithResponseHeaders
Function · 0.92
TestDevCorsConfig
Function · 0.92
SetupSuite
Method · 0.92
TestFakeAuth
Function · 0.92
BeforeTest
Method · 0.92
BeforeTest
Method · 0.92
BeforeTest
Method · 0.92
BeforeTest
Method · 0.92
BeforeTest
Method · 0.92
Calls
1
updateGinMode
Function · 0.85
Tested by
15
BeforeTest
Method · 0.74
TestCorsConfig
Function · 0.74
TestEmptyCorsConfigWithResponseHeaders
Function · 0.74
TestDevCorsConfig
Function · 0.74
SetupSuite
Method · 0.74
TestFakeAuth
Function · 0.74
BeforeTest
Method · 0.74
BeforeTest
Method · 0.74
BeforeTest
Method · 0.74
BeforeTest
Method · 0.74
BeforeTest
Method · 0.74
BeforeTest
Method · 0.74