Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FeatureGraphqlMockGraph by sending mocked data instead of database data. FeatureGraphqlMockGraph = "graphql mock demo data" // FeatureGraphqlMockGraphDelay by delaying the display of the mocked data. FeatureGraphqlMockGraphDataDelay = "graphql mock demo data delay" // FeatureWhitelistedOnlyPools to only show pools that we track in pools.toml. FeatureWhitelistedOnlyPools = "graphql whitelisted only pools" // FeatureIngestorPollRpc using the ingestor. Useful in environments // where websocket access is inconsistent or unavailable. Does so with // a (by default) 15 second delay, with checkpointing done in the database. FeatureIngestorPollRpc = "ingestor poll rpc" // FeatureFaucetStakersOnly to gate access to the faucet to // through the moderators graph. FeatureFaucetStakersOnly = "faucet stakers only" // FeatureFaucetEnabled is allowed to be used. FeatureFaucetEnabled = "faucet enabled" )
View Source
const EnvFeatures = "SPN_FEATURES"
EnvFeatures to enable at runtime from env (optionally)
View Source
const FeaturesBucket = "https://features.long.so/features.json"
FeaturesBucket where a JSON blob lives that contains each enabled feature in a map.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type F ¶
type F struct {
// contains filtered or unexported fields
}
Features that are supported in the code based on the bucket or env.
func Get ¶
func Get() F
Get some feature functionality support. Make a request if it's needed, or use EnvFeatures.
Click to show internal directories.
Click to hide internal directories.