MCPcopy
hub / github.com/aceld/zinx / GetNotifyByID

Method GetNotifyByID

znotify/notify.go:49–57  ·  view source on GitHub ↗
(Id uint64)

Source from the content-addressed store, hash-verified

47}
48
49func (n *notify) GetNotifyByID(Id uint64) (ziface.IConnection, error) {
50
51 strId := n.genConnStrId(Id)
52 Conn, ok := n.connIdMap.Get(strId)
53 if !ok {
54 return nil, errors.New(" Not Find UserId")
55 }
56 return Conn.(ziface.IConnection), nil
57}
58
59func (n *notify) DelNotifyByID(Id uint64) {
60 strId := n.genConnStrId(Id)

Callers 2

NotifyToConnByIDMethod · 0.95
NotifyBuffToConnByIDMethod · 0.95

Calls 2

genConnStrIdMethod · 0.95
GetMethod · 0.65

Tested by

no test coverage detected