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

Method Init

tars/statf.go:54–59  ·  view source on GitHub ↗

Init the StatFHelper

(comm *Communicator, servant string)

Source from the content-addressed store, hash-verified

52
53// Init the StatFHelper
54func (s *StatFHelper) Init(comm *Communicator, servant string) {
55 s.servant = servant
56 s.comm = comm
57 s.sf = new(statf.StatF)
58 s.comm.StringToProxy(s.servant, s.sf)
59}
60
61func (s *StatFHelper) collectMsg(statInfo StatInfo, mStatInfo map[statf.StatMicMsgHead]statf.StatMicMsgBody, mStatCount map[statf.StatMicMsgHead]int) {
62 if body, ok := mStatInfo[statInfo.Head]; ok {

Callers 1

initReportFunction · 0.45

Calls 1

StringToProxyMethod · 0.80

Tested by

no test coverage detected