MCPcopy
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.
17func Set(newMode string) {
18 mode = newMode
19 updateGinMode()
20}
21
22// Get returns the current mode.
23func Get() string {

Callers 15

mainFunction · 0.92
BeforeTestMethod · 0.92
TestCorsConfigFunction · 0.92
TestDevCorsConfigFunction · 0.92
SetupSuiteMethod · 0.92
TestFakeAuthFunction · 0.92
BeforeTestMethod · 0.92
BeforeTestMethod · 0.92
BeforeTestMethod · 0.92
BeforeTestMethod · 0.92
BeforeTestMethod · 0.92

Calls 1

updateGinModeFunction · 0.85

Tested by 15

BeforeTestMethod · 0.74
TestCorsConfigFunction · 0.74
TestDevCorsConfigFunction · 0.74
SetupSuiteMethod · 0.74
TestFakeAuthFunction · 0.74
BeforeTestMethod · 0.74
BeforeTestMethod · 0.74
BeforeTestMethod · 0.74
BeforeTestMethod · 0.74
BeforeTestMethod · 0.74
BeforeTestMethod · 0.74