MCPcopy Index your code
hub / github.com/gotify/server / updateGinMode

Function updateGinMode

mode/mode.go:32–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func updateGinMode() {
33 switch Get() {
34 case Dev:
35 gin.SetMode(gin.DebugMode)
36 case TestDev:
37 gin.SetMode(gin.TestMode)
38 case Prod:
39 gin.SetMode(gin.ReleaseMode)
40 default:
41 panic("unknown mode")
42 }
43}

Callers 1

SetFunction · 0.85

Calls 1

GetFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…