NewManager creates a new Manager
(logger log.Logger)
| 37 | |
| 38 | // NewManager creates a new Manager |
| 39 | func 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. |
no outgoing calls