MCPcopy Index your code
hub / github.com/Cyinx/einx / PostEvent

Method PostEvent

module/module.go:100–106  ·  view source on GitHub ↗
(event_type EventType, agent Agent, cid ComponentID)

Source from the content-addressed store, hash-verified

98}
99
100func (this *module) PostEvent(event_type EventType, agent Agent, cid ComponentID) {
101 event := this.event_msg_pool.Get().(*SessionEventMsg)
102 event.MsgType = event_type
103 event.Sender = agent
104 event.Cid = cid
105 this.ev_queue.Push(event)
106}
107
108func (this *module) PostData(event_type EventType, type_id ProtoTypeID, agent Agent, data interface{}) {
109 event := this.data_msg_pool.Get().(*DataEventMsg)

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
PushMethod · 0.45

Tested by

no test coverage detected