MCPcopy Create free account
hub / github.com/Monibuca/engine / CreateEvent

Function CreateEvent

events.go:15–19  ·  view source on GitHub ↗
(target T)

Source from the content-addressed store, hash-verified

13}
14
15func CreateEvent[T any](target T) (event Event[T]) {
16 event.Time = time.Now()
17 event.Target = target
18 return
19}
20
21// PulseEvent 心跳事件
22type PulseEvent struct {

Callers 5

receiveMethod · 0.85
runMethod · 0.85
DeleteMethod · 0.85
TryInvitePublishFunction · 0.85
InviteTrackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected