MCPcopy
hub / github.com/crowdsecurity/crowdsec / Init

Method Init

pkg/apiserver/controllers/controller.go:35–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (c *Controller) Init() error {
36 if err := c.NewV1(); err != nil {
37 return err
38 }
39
40 /* if we have a V2, just add
41
42 if err := c.NewV2(); err != nil {
43 return err
44 }
45
46 */
47
48 return nil
49}
50
51// endpoint for health checking
52func serveHealth() http.HandlerFunc {

Callers 2

InitPluginsMethod · 0.45
InitControllerMethod · 0.45

Calls 1

NewV1Method · 0.95

Tested by

no test coverage detected