MCPcopy Index your code
hub / github.com/PasarGuard/node / BaseInfoResponse

Method BaseInfoResponse

controller/controller.go:234–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232}
233
234func (c *Controller) BaseInfoResponse() *common.BaseInfoResponse {
235 c.mu.Lock()
236 defer c.mu.Unlock()
237
238 response := &common.BaseInfoResponse{
239 Started: false,
240 CoreVersion: "",
241 NodeVersion: NodeVersion,
242 }
243
244 if c.backend != nil {
245 response.Started = c.backend.Started()
246 response.CoreVersion = c.backend.Version()
247 }
248
249 return response
250}
251
252func (c *Controller) OutboundsLatency(ctx context.Context, request *common.LatencyRequest) (*common.LatencyResponse, error) {
253 c.mu.RLock()

Callers 4

StartMethod · 0.80
GetBaseInfoMethod · 0.80
BaseMethod · 0.80
StartMethod · 0.80

Calls 2

StartedMethod · 0.65
VersionMethod · 0.65

Tested by

no test coverage detected