Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/davyxu/cellnet
/ Event
Interface
Event
processor.go:4–11 ·
view source on GitHub ↗
事件
Source
from the content-addressed store, hash-verified
2
3
// 事件
4
type
Event
interface
{
5
6
// 事件对应的会话
7
Session() Session
8
9
// 事件携带的消息
10
Message()
interface
{}
11
}
12
13
// 消息收发器
14
type
MessageTransmitter
interface
{
Callers
16
SendMessage
Method · 0.65
server
Function · 0.65
client
Function · 0.65
NewQueuedEventCallback
Function · 0.65
OnInboundEvent
Method · 0.65
OnOutboundEvent
Method · 0.65
OnInboundEvent
Method · 0.65
OnOutboundEvent
Method · 0.65
SendMessage
Method · 0.65
protectedSendMessage
Method · 0.65
server
Function · 0.65
printFile
Function · 0.65
Implementers
4
RecvMsgEvent
event.go
SendMsgEvent
event.go
RecvMsgEvent
rpc/event.go
RecvMsgEvent
relay/event.go
Calls
no outgoing calls
Tested by
no test coverage detected