metered

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrResourceExhausted = fmt.Errorf("resource exhausted")

Functions

func MakeMetered

func MakeMetered[T any](ctx context.Context, m *Metered, resource dbsqlc.LimitResource, tenantId string, f func() (*string, *T, error)) (*T, error)

Types

type Metered

type Metered struct {
	// contains filtered or unexported fields
}

func NewMetered

func NewMetered(entitlements repository.EntitlementsRepository, l *zerolog.Logger) *Metered

func (*Metered) Stop

func (m *Metered) Stop()

Jump to

Keyboard shortcuts

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