(client api.CertificateIssuerClient)
| 9 | ) |
| 10 | |
| 11 | func 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 |
| 22 | func watchForEvents(domains []string, client api.CertificateIssuerClient) func() { |