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