| 48 | } |
| 49 | |
| 50 | type tallymanPublisher struct { |
| 51 | ctx context.Context |
| 52 | ctxCancel context.CancelFunc |
| 53 | log slog.Logger |
| 54 | db database.Store |
| 55 | licenseKeys map[string]ed25519.PublicKey |
| 56 | done chan struct{} |
| 57 | |
| 58 | // Configured with options: |
| 59 | ingestURL string |
| 60 | httpClient *http.Client |
| 61 | clock quartz.Clock |
| 62 | initialDelay time.Duration |
| 63 | } |
| 64 | |
| 65 | var _ Publisher = &tallymanPublisher{} |
| 66 |
nothing calls this directly
no outgoing calls
no test coverage detected