Skip to content

Commit

Permalink
minor: some constants for defined types
Browse files Browse the repository at this point in the history
Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
  • Loading branch information
eguzki committed Nov 15, 2023
1 parent 5c9f159 commit 8a15533
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/v1alpha1/limitador_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,20 @@ type LimitadorList struct {
// +kubebuilder:validation:Enum=NONE;DRAFT_VERSION_03
type RateLimitHeadersType string

const (
RateLimitHeadersTypeNONE RateLimitHeadersType = "NONE"
RateLimitHeadersTypeDraft03 RateLimitHeadersType = "DRAFT_VERSION_03"
)

// Telemetry defines the level of metrics Limitador will expose to the user
// +kubebuilder:validation:Enum=basic;exhaustive
type Telemetry string

const (
TelemetryBasic Telemetry = "basic"
TelemetryExhaustive Telemetry = "exhaustive"
)

// Storage contains the options for Limitador counters database or in-memory data storage
type Storage struct {
// +optional
Expand Down

0 comments on commit 8a15533

Please sign in to comment.