PublisherWithIngestURL sets the ingest URL to use for publishing usage events.
(ingestURL string)
| 110 | // PublisherWithIngestURL sets the ingest URL to use for publishing usage |
| 111 | // events. |
| 112 | func PublisherWithIngestURL(ingestURL string) TallymanPublisherOption { |
| 113 | return func(p *tallymanPublisher) { |
| 114 | p.ingestURL = ingestURL |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | // PublisherWithInitialDelay sets the initial delay for the publisher. |
| 119 | func PublisherWithInitialDelay(initialDelay time.Duration) TallymanPublisherOption { |
no outgoing calls