experimental

package
v0.2.0-beta.17 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package experimental is the single platform gate for features hidden at launch.

Index

Constants

View Source
const EnvVar = "APP_EXPERIMENTAL"

EnvVar names the env var holding the comma separated enabled features.

Variables

This section is empty.

Functions

func DisabledMessage

func DisabledMessage(f Feature) string

DisabledMessage is the operator-facing text for a gated surface.

func Enabled

func Enabled(f Feature) bool

Enabled reports whether f is switched on. The environment is read once.

func Parse

func Parse(s string) (map[Feature]bool, error)

Parse turns a comma separated list into a feature set, rejecting unknown keys.

func Reset

func Reset()

Reset forgets the cached environment, for tests.

func Set

func Set(fs ...Feature)

Set replaces the enabled set, for tests.

func Validate

func Validate() error

Validate reports an unknown feature key in the environment.

Types

type Feature

type Feature string

Feature names a gated capability.

const (
	// AIChat is the in-app AI assistant chat.
	AIChat Feature = "ai-chat"
	// AIModels is GPU model hosting.
	AIModels Feature = "ai-models"
	// LoadBalancer is multi-replica load balancing.
	LoadBalancer Feature = "load-balancer"
	// IaC is platform as code (plan, apply, export).
	IaC Feature = "iac"
	// CloudflareTunnel is the Cloudflare tunnel integration.
	CloudflareTunnel Feature = "cloudflare-tunnel"
)

func All

func All() []Feature

All returns every gated feature, sorted.

func EnabledList

func EnabledList() []Feature

EnabledList returns the enabled features, sorted.

Jump to

Keyboard shortcuts

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