quota

package
v0.0.0-test Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: AGPL-3.0 Imports: 4 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 QuotaService

type QuotaService struct {
	AuthTokenService models.UserTokenService
	Cfg              *setting.Cfg
}

func ProvideService

func ProvideService(cfg *setting.Cfg, tokenService models.UserTokenService) *QuotaService

func (*QuotaService) QuotaReached

func (qs *QuotaService) QuotaReached(c *models.ReqContext, target string) (bool, error)

Jump to

Keyboard shortcuts

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