usage
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcNewDBInserter¶
func NewDBInserter(opts ...InserterOption)agplusage.Inserter
NewDBInserter creates a new database-backed usage event inserter.
Types¶
typeInserterOption¶
type InserterOption func(*dbInserter)
funcInserterWithClock¶
func InserterWithClock(clockquartz.Clock)InserterOption
InserterWithClock sets the quartz clock to use for the inserter.
typePublisher¶
type Publisher interface {// Close closes the publisher and waits for it to finish.io.Closer// Start starts the publisher. It must only be called once.Start()error}Publisher publishes usage events ***somewhere***.
typeTallymanPublisherOption¶
type TallymanPublisherOption func(*tallymanPublisher)
funcPublisherWithClock¶
func PublisherWithClock(clockquartz.Clock)TallymanPublisherOption
PublisherWithClock sets the clock to use for publishing usage events.
funcPublisherWithHTTPClient¶
func PublisherWithHTTPClient(httpClient *http.Client)TallymanPublisherOption
PublisherWithHTTPClient sets the HTTP client to use for publishing usage events.
funcPublisherWithIngestURL¶
func PublisherWithIngestURL(ingestURLstring)TallymanPublisherOption
PublisherWithIngestURL sets the ingest URL to use for publishing usageevents.
funcPublisherWithInitialDelay¶
func PublisherWithInitialDelay(initialDelaytime.Duration)TallymanPublisherOption
PublisherWithInitialDelay sets the initial delay for the publisher.