MCPcopy
hub / github.com/baetyl/baetyl / OnMessage

Method OnMessage

sync/msg_handler.go:13–15  ·  view source on GitHub ↗
(msg interface{})

Source from the content-addressed store, hash-verified

11}
12
13func (h *handler) OnMessage(msg interface{}) error {
14 return h.link.Send(msg.(*v1.Message))
15}
16
17func (h *handler) OnTimeout() error {
18 msg := &v1.Message{

Callers 1

TestMsgHandlerFunction · 0.95

Calls 1

SendMethod · 0.65

Tested by 1

TestMsgHandlerFunction · 0.76