MCPcopy Create free account
hub / github.com/Cyinx/einx / AddModuleComponent

Function AddModuleComponent

einx_default.go:81–88  ·  view source on GitHub ↗
(m module.Module, c Component, mgr interface{})

Source from the content-addressed store, hash-verified

79}
80
81func AddModuleComponent(m module.Module, c Component, mgr interface{}) {
82 m_eventer := m.(event.EventReceiver)
83 e := &event.ComponentEventMsg{}
84 e.MsgType = event.EVENT_COMPONENT_CREATE
85 e.Sender = c
86 e.Attach = mgr
87 m_eventer.PushEventMsg(e)
88}
89
90func CreateModuleWorkers(name string, size int) WorkerPool {
91 return module.CreateWorkers(name, size)

Callers

nothing calls this directly

Calls 1

PushEventMsgMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…