Documentation
¶
Index ¶
- type RateLimit
- func (*RateLimit) Descriptor() ([]byte, []int)
- func (m *RateLimit) GetDomain() string
- func (m *RateLimit) GetFailureModeDeny() bool
- func (m *RateLimit) GetRateLimitService() *v3.RateLimitServiceConfig
- func (m *RateLimit) GetRateLimitedAsResourceExhausted() bool
- func (m *RateLimit) GetRequestType() string
- func (m *RateLimit) GetStage() uint32
- func (m *RateLimit) GetTimeout() *duration.Duration
- func (*RateLimit) ProtoMessage()
- func (m *RateLimit) Reset()
- func (m *RateLimit) String() string
- func (m *RateLimit) Validate() error
- func (m *RateLimit) XXX_DiscardUnknown()
- func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RateLimit) XXX_Merge(src proto.Message)
- func (m *RateLimit) XXX_Size() int
- func (m *RateLimit) XXX_Unmarshal(b []byte) error
- type RateLimitValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RateLimit ¶
type RateLimit struct { Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` Stage uint32 `protobuf:"varint,2,opt,name=stage,proto3" json:"stage,omitempty"` RequestType string `protobuf:"bytes,3,opt,name=request_type,json=requestType,proto3" json:"request_type,omitempty"` Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` FailureModeDeny bool `protobuf:"varint,5,opt,name=failure_mode_deny,json=failureModeDeny,proto3" json:"failure_mode_deny,omitempty"` RateLimitedAsResourceExhausted bool `` /* 158-byte string literal not displayed */ RateLimitService *v3.RateLimitServiceConfig `protobuf:"bytes,7,opt,name=rate_limit_service,json=rateLimitService,proto3" json:"rate_limit_service,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RateLimit) Descriptor ¶
func (*RateLimit) GetFailureModeDeny ¶
func (*RateLimit) GetRateLimitService ¶
func (m *RateLimit) GetRateLimitService() *v3.RateLimitServiceConfig
func (*RateLimit) GetRateLimitedAsResourceExhausted ¶
func (*RateLimit) GetRequestType ¶
func (*RateLimit) GetTimeout ¶
func (*RateLimit) ProtoMessage ¶
func (*RateLimit) ProtoMessage()
func (*RateLimit) Validate ¶
Validate checks the field values on RateLimit with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*RateLimit) XXX_DiscardUnknown ¶
func (m *RateLimit) XXX_DiscardUnknown()
func (*RateLimit) XXX_Marshal ¶
func (*RateLimit) XXX_Unmarshal ¶
type RateLimitValidationError ¶
type RateLimitValidationError struct {
// contains filtered or unexported fields
}
RateLimitValidationError is the validation error returned by RateLimit.Validate if the designated constraints aren't met.
func (RateLimitValidationError) Cause ¶
func (e RateLimitValidationError) Cause() error
Cause function returns cause value.
func (RateLimitValidationError) Error ¶
func (e RateLimitValidationError) Error() string
Error satisfies the builtin error interface
func (RateLimitValidationError) ErrorName ¶
func (e RateLimitValidationError) ErrorName() string
ErrorName returns error name.
func (RateLimitValidationError) Field ¶
func (e RateLimitValidationError) Field() string
Field function returns field value.
func (RateLimitValidationError) Key ¶
func (e RateLimitValidationError) Key() bool
Key function returns key value.
func (RateLimitValidationError) Reason ¶
func (e RateLimitValidationError) Reason() string
Reason function returns reason value.
Click to show internal directories.
Click to hide internal directories.