Submit a job to the queue for processing
()
| 29 | |
| 30 | // Submit a job to the queue for processing |
| 31 | func (r *CertReq) Submit() { |
| 32 | var operation string |
| 33 | |
| 34 | if r.Renewal { |
| 35 | operation = "renewal" |
| 36 | } else { |
| 37 | operation = "initial certificates" |
| 38 | } |
| 39 | |
| 40 | log.Infof("Submitting '%s' to job queue for %s", r.DNSName, operation) |
| 41 | JobQueue <- *r |
| 42 | } |
| 43 | |
| 44 | // CertWorker is the actual worker routine that eats away from the queue |
| 45 | func CertWorker(id int, client api.CertificateIssuerClient, storage *CertStorage) { |
no outgoing calls
no test coverage detected