Something went wrong. Try again.
forked from scottlanoue.com/atmosphere-mail
Something went wrong. Try again.
1234567891011121314151617181920212223242526// SPDX-License-Identifier: AGPL-3.0-or-later
package main
// Feature flags are defined once in internal/featureflags and shared by// both cmd/relay and cmd/web. This file is a thin local alias layer so// cmd/web's existing call sites keep working unchanged. The single// shared parser guarantees cmd/web resolves a flag exactly as cmd/relay// does from the same env — the parse-divergence half of the #838 class// of bug can no longer happen. See internal/featureflags for the// Registry and the web→relay Snapshot/Report types this binary uses to// report its resolved state to the relay's admin viewer.
import "comail/internal/featureflags"
// Features is cmd/web's view of the shared feature-flag map type.type Features = featureflags.Features
// FeaturePaidTiers is the commercial-tier kill-switch key — same key// cmd/relay uses. See featureflags.PaidTiers for the full contract.const FeaturePaidTiers = featureflags.PaidTiers
// loadFeaturesFromEnv reads ATMOS_FEATURE_<NAME>=<bool> entries from the// process environment into a Features map.func loadFeaturesFromEnv() Features { return featureflags.LoadFromEnv() }