quota

package
v0.0.1-test Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 3 Imported by: 316

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidQuotaTarget = errors.New("invalid quota target")

Functions

This section is empty.

Types

type ScopeParameters

type ScopeParameters struct {
	OrgID  int64
	UserID int64
}

type Service

type Service interface {
	QuotaReached(c *models.ReqContext, target string) (bool, error)
	CheckQuotaReached(ctx context.Context, target string, scopeParams *ScopeParameters) (bool, error)
	DeleteByUser(context.Context, int64) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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