Help us shape the future of Go! Take the 2026 Go Developer Survey

limits

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package limits shows how a host enforces a plan's limits: ask the spec, and act on the answer.

Index

Constants

This section is empty.

Variables

View Source
var ErrOverLimit = errors.New("over the plan's limit")

ErrOverLimit means the plan does not allow the action.

Functions

func AddBoard

func AddBoard(spec *pricingspec.Spec, plan string, used int, log *slog.Logger) error

AddBoard checks creating one more board on an account's plan. used is how many boards the account has now. A hard limit refuses; a fair-use limit lets the action through and flags the account for a person to look at.

func CanUse

func CanUse(spec *pricingspec.Spec, plan, feature, level string) bool

CanUse reports whether a plan includes a feature at the least a level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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