MCPcopy
hub / github.com/yusing/godoxy / init

Function init

internal/api/handler.go:171–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

169}
170
171func init() {
172 if !rules.RegisterHandler("api", NewHandler(true)) {
173 panic("failed to register api handler")
174 }
175 if !rules.RegisterHandler("local_api", NewHandler(false)) {
176 panic("failed to register local_api handler")
177 }
178}
179
180func NoCache() gin.HandlerFunc {
181 return func(c *gin.Context) {

Callers

nothing calls this directly

Calls 2

RegisterHandlerFunction · 0.92
NewHandlerFunction · 0.70

Tested by

no test coverage detected