MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewCollectClient

Function NewCollectClient

metric/rpc.go:42–51  ·  view source on GitHub ↗

NewCollectClient returns a new CollectClient.

()

Source from the content-addressed store, hash-verified

40
41// NewCollectClient returns a new CollectClient.
42func NewCollectClient() *CollectClient {
43 reg := StartMetricCollector()
44 if reg == nil {
45 log.Fatal("StartMetricCollector failed")
46 }
47
48 return &CollectClient{
49 Registry: reg,
50 }
51}
52
53// CollectServer is the Metric receiver side.
54type CollectServer struct {

Callers 3

InitMetricWebFunction · 0.85

Calls 2

FatalFunction · 0.92
StartMetricCollectorFunction · 0.85

Tested by 2