filelimit

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "coordinator.filelimit"

Variables

View Source
var ErrNotFound = errors.New("fileLimit not found")

Functions

This section is empty.

Types

type Config added in v0.2.7

type Config struct {
	LimitDefault      uint64 `yaml:"limitDefault"`
	LimitAlphaUsers   uint64 `yaml:"limitAlphaUsers"`
	LimitNightlyUsers uint64 `yaml:"limitNightlyUsers"`
}

type FileLimit

type FileLimit interface {
	Get(ctx context.Context, identity []byte, spaceId string) (limit uint64, err error)

	app.Component
}

func New

func New() FileLimit

type Limit

type Limit struct {
	SpaceId     string `bson:"_id"`
	Limit       uint64 `bson:"limit"`
	UpdatedTime int64  `bson:"updatedTime"`
}

Jump to

Keyboard shortcuts

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