MCPcopy
hub / github.com/eolinker/goku_lite / modelManager

Struct modelManager

ksitigarbha/module.go:10–15  ·  view source on GitHub ↗

这里只是在程序启动的时候会执行新增操作,所以不需要加锁

Source from the content-addressed store, hash-verified

8
9// 这里只是在程序启动的时候会执行新增操作,所以不需要加锁
10type modelManager struct {
11 modules map[string]IModule
12 names []string
13 namespaceNames map[string]string
14 handlers map[string][]ConfigHandler
15}
16
17func (m *modelManager) Handler(name string, handler ConfigHandler) {
18 m.handlers[name] = append(m.handlers[name],handler)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected