MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / ping

Function ping

module/cluster/util.go:33–43  ·  view source on GitHub ↗
(ctx context.Context, address ...string)

Source from the content-addressed store, hash-verified

31 wg.Done()
32}
33func ping(ctx context.Context, address ...string) int {
34 if len(address) == 0 {
35 return 0
36 }
37 err := admin.Admin(address...).Ping(ctx)
38 if err != nil {
39 return 0
40 }
41
42 return 1
43}

Callers 2

nodeStatusFunction · 0.85
doPingRoutingFunction · 0.85

Calls 2

AdminFunction · 0.92
PingMethod · 0.65

Tested by

no test coverage detected