MCPcopy Create free account
hub / github.com/evenh/intercert / pingServer

Function pingServer

client/tasks.go:11–19  ·  view source on GitHub ↗
(client api.CertificateIssuerClient)

Source from the content-addressed store, hash-verified

9)
10
11func pingServer(client api.CertificateIssuerClient) func() {
12 return func() {
13 _, err := client.Ping(context.Background(), &api.PingRequest{Msg: "ping"})
14
15 if err != nil {
16 log.Warnf("Could not ping intercert host: %v", err)
17 }
18 }
19}
20
21// Listen for events from the server, indicating that a certificate has been renewed with ACME
22func watchForEvents(domains []string, client api.CertificateIssuerClient) func() {

Callers 1

configureTasksFunction · 0.85

Calls 1

PingMethod · 0.65

Tested by

no test coverage detected