Thanks to visit codestin.com
Credit goes to pkg.go.dev

usage

package
v2.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AGPLInserter

type AGPLInserter struct{}

AGPLInserter is a no-op implementation of Inserter.

func (AGPLInserter) InsertDiscreteUsageEvent

func (AGPLInserter) InsertDiscreteUsageEvent(_ context.Context, _ database.Store, _ usagetypes.DiscreteEvent) error

InsertDiscreteUsageEvent is a no-op implementation of InsertDiscreteUsageEvent.

type Inserter

type Inserter interface {
	// InsertDiscreteUsageEvent writes a discrete usage event to the database
	// within the given transaction.
	// The caller context must be authorized to create usage events in the
	// database.
	InsertDiscreteUsageEvent(ctx context.Context, tx database.Store, event usagetypes.DiscreteEvent) error
}

Inserter accepts usage events generated by the product.

func NewAGPLInserter

func NewAGPLInserter() Inserter

Directories

Path Synopsis
Package usagetypes contains the types for usage events.
Package usagetypes contains the types for usage events.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL