envoyRateLimit

package
v1.1.68-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RateLimit

type RateLimit struct {
	Domain                             string                           `json:"domain" validate:"required"`
	Stage                              *float64                         `json:"stage,omitzero" validate:"integer,min=0,max=10"`
	Request_type                       RateLimitRequestType             `json:"request_type,omitzero"`
	Timeout                            envoyCommon.Duration             `json:"timeout,omitzero"`
	Failure_mode_deny                  *bool                            `json:"failure_mode_deny,omitzero"`
	Rate_limited_as_resource_exhausted *bool                            `json:"rate_limited_as_resource_exhausted,omitzero"`
	Rate_limit_service                 *RateLimitService                `json:"rate_limit_service,omitzero"`
	Enable_x_ratelimit_headers         RateLimitEnableXRatelimitHeaders `json:"enable_x_ratelimit_headers,omitzero"`
	Disable_x_envoy_ratelimited_header *bool                            `json:"disable_x_envoy_ratelimited_header,omitzero"`
	Rate_limited_status                *envoyCommon.HttpStatus          `json:"rate_limited_status,omitzero"`
	Response_headers                   []envoyCommon.HeaderValueOption  `json:"response_headers,omitzero"`
	Status_on_error                    *envoyCommon.HttpStatus          `json:"status_on_error,omitzero"`
	Stat_prefix                        string                           `json:"stat_prefix,omitzero"`
}

type RateLimitEnableXRatelimitHeaders

type RateLimitEnableXRatelimitHeaders string
const (
	RateLimitEnableXRatelimitHeadersOff            RateLimitEnableXRatelimitHeaders = "OFF"
	RateLimitEnableXRatelimitHeadersDraftVersion03 RateLimitEnableXRatelimitHeaders = "DRAFT_VERSION_03"
)

func (RateLimitEnableXRatelimitHeaders) EnumValues

type RateLimitRequestType

type RateLimitRequestType string
const (
	RateLimitRequestTypeInternal RateLimitRequestType = "internal"
	RateLimitRequestTypeExternal RateLimitRequestType = "external"
	RateLimitRequestTypeBoth     RateLimitRequestType = "both"
)

func (RateLimitRequestType) EnumValues

func (RateLimitRequestType) EnumValues() []string

EnumValues makes the generated string enums reflect to Joi.string().valid(...). The generator emits the constants but not the method, so without these the types validate as free-form strings.

type RateLimitService

type RateLimitService struct {
	Grpc_service          RateLimitServiceGrpcService `json:"grpc_service" validate:"required"`
	Transport_api_version envoyCommon.ApiVersion      `json:"transport_api_version,omitzero"`
}

type RateLimitServiceGrpcService

type RateLimitServiceGrpcService struct {
	Envoy_grpc  *RateLimitServiceGrpcServiceEnvoyGrpc  `json:"envoy_grpc,omitzero"`
	Google_grpc *RateLimitServiceGrpcServiceGoogleGrpc `json:"google_grpc,omitzero"`
	Timeout     envoyCommon.Duration                   `json:"timeout,omitzero"`
}

type RateLimitServiceGrpcServiceEnvoyGrpc

type RateLimitServiceGrpcServiceEnvoyGrpc struct {
	Cluster_name string                   `json:"cluster_name" validate:"required"`
	Authority    string                   `json:"authority,omitzero"`
	Retry_policy *envoyCommon.RetryPolicy `json:"retry_policy,omitzero"`
}

type RateLimitServiceGrpcServiceGoogleGrpc

type RateLimitServiceGrpcServiceGoogleGrpc struct {
	Target_uri               string                                                   `json:"target_uri" validate:"required"`
	Channel_credentials      *RateLimitServiceGrpcServiceGoogleGrpcChannelCredentials `json:"channel_credentials,omitzero"`
	Call_credentials         []envoyCommon.GoogleCallCredentials                      `json:"call_credentials,omitzero"`
	Stat_prefix              string                                                   `json:"stat_prefix" validate:"required"`
	Credentials_factory_name string                                                   `json:"credentials_factory_name,omitzero"`
	Config                   envoyCommon.Struct                                       `json:"config,omitzero"`
}

type RateLimitServiceGrpcServiceGoogleGrpcChannelCredentials

type RateLimitServiceGrpcServiceGoogleGrpcChannelCredentials struct {
	Ssl_credentials *RateLimitServiceGrpcServiceGoogleGrpcChannelCredentialsSslCredentials `json:"ssl_credentials,omitzero"`
	Google_default  *envoyCommon.Empty                                                     `json:"google_default,omitzero"`
}

type RateLimitServiceGrpcServiceGoogleGrpcChannelCredentialsSslCredentials

type RateLimitServiceGrpcServiceGoogleGrpcChannelCredentialsSslCredentials struct {
	Root_certs  *envoyCommon.DataSource `json:"root_certs,omitzero"`
	Private_key *envoyCommon.DataSource `json:"private_key,omitzero"`
	Cert_chain  *envoyCommon.DataSource `json:"cert_chain,omitzero"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL