MCPcopy Create free account
hub / github.com/dearcode/candy / Push

Method Push

notice/server.go:59–65  ·  view source on GitHub ↗

Push push a message to gate.

(_ context.Context, req *meta.PushRequest)

Source from the content-addressed store, hash-verified

57
58// Push push a message to gate.
59func (n *Notifer) Push(_ context.Context, req *meta.PushRequest) (*meta.PushResponse, error) {
60 log.Debugf("begin push message:%v, ids:%v", req.Msg, req.ID)
61 n.broker.Push(*req.Msg, req.ID...)
62 log.Debugf("end push message:%v, ids:%v", req.Msg, req.ID)
63
64 return &meta.PushResponse{}, nil
65}

Callers

nothing calls this directly

Calls 1

PushMethod · 0.65

Tested by

no test coverage detected