Documentation
¶
Index ¶
- type RateLimit
- type RateLimitEnableXRatelimitHeaders
- type RateLimitRequestType
- type RateLimitService
- type RateLimitServiceGrpcService
- type RateLimitServiceGrpcServiceEnvoyGrpc
- type RateLimitServiceGrpcServiceGoogleGrpc
- type RateLimitServiceGrpcServiceGoogleGrpcChannelCredentials
- type RateLimitServiceGrpcServiceGoogleGrpcChannelCredentialsSslCredentials
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 ¶
func (RateLimitEnableXRatelimitHeaders) EnumValues() []string
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"`
}
Click to show internal directories.
Click to hide internal directories.