filelimit

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 7 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 FileLimit

type FileLimit interface {
	Get(ctx context.Context, spaceId string) (limit uint64, err error)
	Set(ctx context.Context, 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