Movatterモバイル変換


[0]ホーム

URL:


usage

package
v2.28.4Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2025 License:AGPL-3.0Imports:21Imported by:0

Details

Repository

github.com/coder/coder

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***.

funcNewTallymanPublisher

func NewTallymanPublisher(ctxcontext.Context, logslog.Logger, dbdatabase.Store, keys map[string]ed25519.PublicKey, opts ...TallymanPublisherOption)Publisher

NewTallymanPublisher creates a Publisher that publishes usage events toCoder's Tallyman service.

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.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp