Changeset View
Changeset View
Standalone View
Standalone View
services/feature-flags/src/constants.rs
pub const AWS_REGION: &str = "us-east-2"; | pub const AWS_REGION: &str = "us-east-2"; | ||||
pub const DEFAULT_LOCALSTACK_URL: &str = "http://localhost:4566"; | pub const DEFAULT_LOCALSTACK_URL: &str = "http://localhost:4566"; | ||||
pub const LOG_LEVEL_ENV_VAR: &str = | pub const LOG_LEVEL_ENV_VAR: &str = | ||||
tracing_subscriber::filter::EnvFilter::DEFAULT_ENV; | tracing_subscriber::filter::EnvFilter::DEFAULT_ENV; | ||||
pub const HTTP_SERVER_DEFAULT_PORT: u16 = 50051; | |||||
// The configuration of feature flags is stored in a table in DynamoDB. | // The configuration of feature flags is stored in a table in DynamoDB. | ||||
// Each row is identified by a compound primary key consisting of | // Each row is identified by a compound primary key consisting of | ||||
// partition key - platform and sort key - feature. | // partition key - platform and sort key - feature. | ||||
// A row also contains the configuration, which is a map indexed by code | // A row also contains the configuration, which is a map indexed by code | ||||
// version with values containing boolean flags for staff and non-staff config. | // version with values containing boolean flags for staff and non-staff config. | ||||
// A sample row from the db looks like this: | // A sample row from the db looks like this: | ||||
// { | // { | ||||
Show All 18 Lines |