MCPcopy
hub / github.com/grafana/dskit / NewManager

Function NewManager

modules/modules.go:53–58  ·  view source on GitHub ↗

NewManager creates a new Manager

(logger log.Logger)

Source from the content-addressed store, hash-verified

51
52// NewManager creates a new Manager
53func NewManager(logger log.Logger) *Manager {
54 return &Manager{
55 modules: make(map[string]*module),
56 logger: logger,
57 }
58}
59
60// RegisterModule registers a new module with name, init function, and options. Name must
61// be unique to avoid overwriting modules. If initFn is nil, the module will not initialise.

Calls

no outgoing calls