MCPcopy Create free account
hub / github.com/cortexproject/cortex / NewManager

Function NewManager

pkg/util/modules/modules.go:39–44  ·  view source on GitHub ↗

NewManager creates a new Manager

(logger log.Logger)

Source from the content-addressed store, hash-verified

37
38// NewManager creates a new Manager
39func NewManager(logger log.Logger) *Manager {
40 return &Manager{
41 modules: make(map[string]*module),
42 logger: logger,
43 }
44}
45
46// RegisterModule registers a new module with name, init function, and options. Name must
47// be unique to avoid overwriting modules. If initFn is nil, the module will not initialise.

Calls

no outgoing calls