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

Method Init

tars/propertyf.go:445–451  ·  view source on GitHub ↗

Init inits the PropertyReportHelper

(comm *Communicator, node string)

Source from the content-addressed store, hash-verified

443
444// Init inits the PropertyReportHelper
445func (p *PropertyReportHelper) Init(comm *Communicator, node string) {
446 p.node = node
447 p.comm = comm
448 p.pf = new(propertyf.PropertyF)
449 p.reportPtrs = new(sync.Map)
450 p.comm.StringToProxy(p.node, p.pf)
451}
452
453// AddToReport adds the user's PropertyReport to the PropertyReportHelper
454func (p *PropertyReportHelper) AddToReport(pr *PropertyReport) {

Callers 1

newPropertyReportHelperFunction · 0.45

Calls 1

StringToProxyMethod · 0.80

Tested by

no test coverage detected