Documentation ¶
Index ¶
- Constants
- func CheckRequestAllowed(db *dynamodb.DynamoDB, concurrencyValue int)
- func ClientError(statusCode int, body string) (events.APIGatewayProxyResponse, error)
- func DdbError(err error)
- func ServerError(err error) (events.APIGatewayProxyResponse, error)
- func SetUpEnv()
- func ValidateFeatureFlagStatus(status string) bool
- type CreateFeatureFlagRequest
- type CreateFeatureFlagUserMappingRequest
- type FeatureFlagResponse
- type FeatureFlagUserMappingResponse
- type UpdateFeatureFlagRequest
- type UpdateFeatureFlagUserMappingRequest
Constants ¶
View Source
const ( ENV = "ENVIRONMENT" DEV = "DEVELOPMENT" PROD = "PRODUCTION" TEST = "TESTING" FEATURE_FLAG_TABLE_NAME = "featureFlag" FEATURE_FLAG_USER_MAPPING_TABLE_NAME = "featureFlagUserMapping" ENABLED = "ENABLED" DISABLED = "DISABLED" Id = "id" Name = "name" Description = "description" CreatedAt = "createdAt" CreatedBy = "createdBy" Status = "status" UpdatedBy = "updatedBy" UpdatedAt = "updatedAt" UserId = "userId" FlagId = "flagId" ConcurrencyDisablingLambda = 0 )
Variables ¶
This section is empty.
Functions ¶
func CheckRequestAllowed ¶
func ClientError ¶
func ClientError(statusCode int, body string) (events.APIGatewayProxyResponse, error)
func ServerError ¶
func ServerError(err error) (events.APIGatewayProxyResponse, error)
Types ¶
type FeatureFlagResponse ¶
Click to show internal directories.
Click to hide internal directories.