plan

package
v0.41.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

View Source
var All = map[string]Limits{
	Free:       {MaxRepos: 1, MaxEventsPerWeek: 500, MaxDataRangeMonths: 3, AILevel: 0, DeepReputation: false, PDFExport: false, CSVExport: false},
	Starter:    {MaxRepos: 5, MaxEventsPerWeek: 2500, MaxDataRangeMonths: 6, AILevel: 1, DeepReputation: false, PDFExport: true, CSVExport: false},
	Pro:        {MaxRepos: 25, MaxEventsPerWeek: 15000, MaxDataRangeMonths: 12, AILevel: 2, DeepReputation: true, PDFExport: true, CSVExport: true},
	Enterprise: {MaxRepos: 0, MaxEventsPerWeek: 0, MaxDataRangeMonths: 0, AILevel: 2, DeepReputation: true, PDFExport: true, CSVExport: true},
}

Functions

This section is empty.

Types

type Limits

type Limits struct {
	MaxRepos           int
	MaxEventsPerWeek   int
	MaxDataRangeMonths int
	AILevel            int
	DeepReputation     bool
	PDFExport          bool
	CSVExport          bool
}

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