MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / initRulesManager

Function initRulesManager

cmd/cql-proxy/init.go:132–141  ·  view source on GitHub ↗
(e *gin.Engine)

Source from the content-addressed store, hash-verified

130}
131
132func initRulesManager(e *gin.Engine) (rm *resolver.RulesManager) {
133 rm = &resolver.RulesManager{}
134
135 e.Use(func(c *gin.Context) {
136 c.Set("rules", rm)
137 c.Next()
138 })
139
140 return
141}
142
143func initConfig(e *gin.Engine, cfg *config.Config) {
144 e.Use(func(c *gin.Context) {

Callers 1

initServerFunction · 0.85

Calls 2

SetMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected