MCPcopy
hub / github.com/TarsCloud/TarsGo / SetNotifyInfo

Method SetNotifyInfo

tars/notifyf.go:19–37  ·  view source on GitHub ↗

SetNotifyInfo sets the communicator's notify info with communicator, notify name, app name, server name, and container name

(comm *Communicator, notify string, app string, server string, container string)

Source from the content-addressed store, hash-verified

17
18// SetNotifyInfo sets the communicator's notify info with communicator, notify name, app name, server name, and container name
19func (n *NotifyHelper) SetNotifyInfo(comm *Communicator, notify string, app string, server string, container string) {
20 n.comm = comm
21 n.tn = new(notifyf.Notify)
22 comm.StringToProxy(notify, n.tn)
23 var set string
24 if v, ok := comm.GetProperty("setdivision"); ok {
25 set = v
26 }
27 n.tm = notifyf.ReportInfo{
28 EType: 0,
29 SApp: app,
30 SSet: set,
31 SContainer: container,
32 SServer: server,
33 SMessage: "",
34 SThreadId: "",
35 ELevel: 0,
36 }
37}
38
39// ReportNotifyInfo reports notify information with level and info
40func (n *NotifyHelper) ReportNotifyInfo(level int32, info string) {

Callers 1

ReportNotifyInfoFunction · 0.80

Calls 2

StringToProxyMethod · 0.80
GetPropertyMethod · 0.80

Tested by

no test coverage detected