Help us shape the future of Go! Take the 2026 Go Developer Survey

envoyRateLimit

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 1 Imported by: 0

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,omitempty"`
	Stage                              float32                          `json:"stage"`
	Request_type                       RateLimitRequestType             `json:"request_type,omitempty"`
	Timeout                            envoyCommon.Duration             `json:"timeout,omitempty"`
	Failure_mode_deny                  bool                             `json:"failure_mode_deny,omitempty"`
	Rate_limited_as_resource_exhausted bool                             `json:"rate_limited_as_resource_exhausted,omitempty"`
	Rate_limit_service                 RateLimitService                 `json:"rate_limit_service,omitempty"`
	Enable_x_ratelimit_headers         RateLimitEnableXRatelimitHeaders `json:"enable_x_ratelimit_headers,omitempty"`
	Disable_x_envoy_ratelimited_header bool                             `json:"disable_x_envoy_ratelimited_header,omitempty"`
	Rate_limited_status                envoyCommon.HttpStatus           `json:"rate_limited_status,omitempty"`
	Response_headers                   []envoyCommon.HeaderValueOption  `json:"response_headers,omitempty"`
	Status_on_error                    envoyCommon.HttpStatus           `json:"status_on_error,omitempty"`
	Stat_prefix                        string                           `json:"stat_prefix,omitempty"`
}

type RateLimitEnableXRatelimitHeaders

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

type RateLimitRequestType

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

type RateLimitService

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

type RateLimitServiceGrpcService

type RateLimitServiceGrpcService struct {
	Envoy_grpc  RateLimitServiceGrpcServiceEnvoyGrpc  `json:"envoy_grpc,omitempty"`
	Google_grpc RateLimitServiceGrpcServiceGoogleGrpc `json:"google_grpc,omitempty"`
	Timeout     any                                   `json:"timeout,omitempty"`
}

type RateLimitServiceGrpcServiceEnvoyGrpc

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

type RateLimitServiceGrpcServiceGoogleGrpc

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

type RateLimitServiceGrpcServiceGoogleGrpcChannelCredentials

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

type RateLimitServiceGrpcServiceGoogleGrpcChannelCredentialsSslCredentials

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

Jump to

Keyboard shortcuts

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