plan

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Free       = "free"
	Pro        = "pro"
	Enterprise = "enterprise"
)

Variables

View Source
var All = map[string]Limits{
	Free:       {MaxRepos: 3, MaxEventsPerWeek: 1000},
	Pro:        {MaxRepos: 15, MaxEventsPerWeek: 15000},
	Enterprise: {MaxRepos: 0, MaxEventsPerWeek: 0},
}

Functions

This section is empty.

Types

type Limits

type Limits struct {
	MaxRepos         int
	MaxEventsPerWeek int
}

func FreeLimits

func FreeLimits() Limits

FreeLimits returns the free plan limits.

func Get

func Get(name string) (Limits, bool)

Get returns the limits for a plan name and whether it exists.

Jump to

Keyboard shortcuts

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