Documentation ¶
Index ¶
- Variables
- type Middleware
- func (*Middleware) Descriptor() ([]byte, []int)deprecated
- func (x *Middleware) GetCircuitBreaker() bool
- func (x *Middleware) GetJwt() *v13.JWT
- func (x *Middleware) GetLogging() bool
- func (x *Middleware) GetMetadata() *Middleware_Metadata
- func (x *Middleware) GetMetrics() *v11.Metrics
- func (x *Middleware) GetRateLimiter() *v1.RateLimiter
- func (x *Middleware) GetRecovery() bool
- func (x *Middleware) GetSelector() *v14.Selector
- func (x *Middleware) GetTracing() bool
- func (x *Middleware) GetValidator() *v12.Validator
- func (*Middleware) ProtoMessage()
- func (x *Middleware) ProtoReflect() protoreflect.Message
- func (x *Middleware) Reset()
- func (x *Middleware) String() string
- func (m *Middleware) Validate() error
- func (m *Middleware) ValidateAll() error
- type MiddlewareMultiError
- type MiddlewareValidationError
- type Middleware_Metadata
- func (*Middleware_Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Middleware_Metadata) GetData() map[string]string
- func (x *Middleware_Metadata) GetEnabled() bool
- func (x *Middleware_Metadata) GetPrefix() string
- func (*Middleware_Metadata) ProtoMessage()
- func (x *Middleware_Metadata) ProtoReflect() protoreflect.Message
- func (x *Middleware_Metadata) Reset()
- func (x *Middleware_Metadata) String() string
- func (m *Middleware_Metadata) Validate() error
- func (m *Middleware_Metadata) ValidateAll() error
- type Middleware_MetadataMultiError
- type Middleware_MetadataValidationError
- func (e Middleware_MetadataValidationError) Cause() error
- func (e Middleware_MetadataValidationError) Error() string
- func (e Middleware_MetadataValidationError) ErrorName() string
- func (e Middleware_MetadataValidationError) Field() string
- func (e Middleware_MetadataValidationError) Key() bool
- func (e Middleware_MetadataValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_middleware_v1_middleware_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct { // Logging switch Logging bool `protobuf:"varint,1,opt,name=logging,proto3" json:"logging,omitempty"` // Recovery switch Recovery bool `protobuf:"varint,2,opt,name=recovery,proto3" json:"recovery,omitempty"` // // tracing switch Tracing bool `protobuf:"varint,3,opt,name=tracing,proto3" json:"tracing,omitempty"` // Circuit breaker switch CircuitBreaker bool `protobuf:"varint,4,opt,name=circuit_breaker,proto3" json:"circuit_breaker,omitempty"` Metadata *Middleware_Metadata `protobuf:"bytes,100,opt,name=metadata,proto3" json:"metadata,omitempty"` RateLimiter *v1.RateLimiter `protobuf:"bytes,101,opt,name=rate_limiter,proto3" json:"rate_limiter,omitempty"` Metrics *v11.Metrics `protobuf:"bytes,102,opt,name=metrics,proto3" json:"metrics,omitempty"` Validator *v12.Validator `protobuf:"bytes,103,opt,name=validator,proto3" json:"validator,omitempty"` Jwt *v13.JWT `protobuf:"bytes,104,opt,name=jwt,proto3" json:"jwt,omitempty"` Selector *v14.Selector `protobuf:"bytes,105,opt,name=selector,proto3" json:"selector,omitempty"` // contains filtered or unexported fields }
Middleware middleware is used to middlewareure middleware for entry
func (*Middleware) Descriptor
deprecated
func (*Middleware) Descriptor() ([]byte, []int)
Deprecated: Use Middleware.ProtoReflect.Descriptor instead.
func (*Middleware) GetCircuitBreaker ¶
func (x *Middleware) GetCircuitBreaker() bool
func (*Middleware) GetJwt ¶
func (x *Middleware) GetJwt() *v13.JWT
func (*Middleware) GetLogging ¶
func (x *Middleware) GetLogging() bool
func (*Middleware) GetMetadata ¶
func (x *Middleware) GetMetadata() *Middleware_Metadata
func (*Middleware) GetMetrics ¶
func (x *Middleware) GetMetrics() *v11.Metrics
func (*Middleware) GetRateLimiter ¶
func (x *Middleware) GetRateLimiter() *v1.RateLimiter
func (*Middleware) GetRecovery ¶
func (x *Middleware) GetRecovery() bool
func (*Middleware) GetSelector ¶
func (x *Middleware) GetSelector() *v14.Selector
func (*Middleware) GetTracing ¶
func (x *Middleware) GetTracing() bool
func (*Middleware) GetValidator ¶
func (x *Middleware) GetValidator() *v12.Validator
func (*Middleware) ProtoMessage ¶
func (*Middleware) ProtoMessage()
func (*Middleware) ProtoReflect ¶
func (x *Middleware) ProtoReflect() protoreflect.Message
func (*Middleware) Reset ¶
func (x *Middleware) Reset()
func (*Middleware) String ¶
func (x *Middleware) String() string
func (*Middleware) Validate ¶
func (m *Middleware) Validate() error
Validate checks the field values on Middleware with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Middleware) ValidateAll ¶
func (m *Middleware) ValidateAll() error
ValidateAll checks the field values on Middleware with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MiddlewareMultiError, or nil if none found.
type MiddlewareMultiError ¶
type MiddlewareMultiError []error
MiddlewareMultiError is an error wrapping multiple validation errors returned by Middleware.ValidateAll() if the designated constraints aren't met.
func (MiddlewareMultiError) AllErrors ¶
func (m MiddlewareMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MiddlewareMultiError) Error ¶
func (m MiddlewareMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MiddlewareValidationError ¶
type MiddlewareValidationError struct {
// contains filtered or unexported fields
}
MiddlewareValidationError is the validation error returned by Middleware.Validate if the designated constraints aren't met.
func (MiddlewareValidationError) Cause ¶
func (e MiddlewareValidationError) Cause() error
Cause function returns cause value.
func (MiddlewareValidationError) Error ¶
func (e MiddlewareValidationError) Error() string
Error satisfies the builtin error interface
func (MiddlewareValidationError) ErrorName ¶
func (e MiddlewareValidationError) ErrorName() string
ErrorName returns error name.
func (MiddlewareValidationError) Field ¶
func (e MiddlewareValidationError) Field() string
Field function returns field value.
func (MiddlewareValidationError) Key ¶
func (e MiddlewareValidationError) Key() bool
Key function returns key value.
func (MiddlewareValidationError) Reason ¶
func (e MiddlewareValidationError) Reason() string
Reason function returns reason value.
type Middleware_Metadata ¶
type Middleware_Metadata struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // Metadata prefix Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"` // Metadata data Data map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
Metadata
func (*Middleware_Metadata) Descriptor
deprecated
func (*Middleware_Metadata) Descriptor() ([]byte, []int)
Deprecated: Use Middleware_Metadata.ProtoReflect.Descriptor instead.
func (*Middleware_Metadata) GetData ¶
func (x *Middleware_Metadata) GetData() map[string]string
func (*Middleware_Metadata) GetEnabled ¶
func (x *Middleware_Metadata) GetEnabled() bool
func (*Middleware_Metadata) GetPrefix ¶
func (x *Middleware_Metadata) GetPrefix() string
func (*Middleware_Metadata) ProtoMessage ¶
func (*Middleware_Metadata) ProtoMessage()
func (*Middleware_Metadata) ProtoReflect ¶
func (x *Middleware_Metadata) ProtoReflect() protoreflect.Message
func (*Middleware_Metadata) Reset ¶
func (x *Middleware_Metadata) Reset()
func (*Middleware_Metadata) String ¶
func (x *Middleware_Metadata) String() string
func (*Middleware_Metadata) Validate ¶
func (m *Middleware_Metadata) Validate() error
Validate checks the field values on Middleware_Metadata with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Middleware_Metadata) ValidateAll ¶
func (m *Middleware_Metadata) ValidateAll() error
ValidateAll checks the field values on Middleware_Metadata with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Middleware_MetadataMultiError, or nil if none found.
type Middleware_MetadataMultiError ¶
type Middleware_MetadataMultiError []error
Middleware_MetadataMultiError is an error wrapping multiple validation errors returned by Middleware_Metadata.ValidateAll() if the designated constraints aren't met.
func (Middleware_MetadataMultiError) AllErrors ¶
func (m Middleware_MetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Middleware_MetadataMultiError) Error ¶
func (m Middleware_MetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Middleware_MetadataValidationError ¶
type Middleware_MetadataValidationError struct {
// contains filtered or unexported fields
}
Middleware_MetadataValidationError is the validation error returned by Middleware_Metadata.Validate if the designated constraints aren't met.
func (Middleware_MetadataValidationError) Cause ¶
func (e Middleware_MetadataValidationError) Cause() error
Cause function returns cause value.
func (Middleware_MetadataValidationError) Error ¶
func (e Middleware_MetadataValidationError) Error() string
Error satisfies the builtin error interface
func (Middleware_MetadataValidationError) ErrorName ¶
func (e Middleware_MetadataValidationError) ErrorName() string
ErrorName returns error name.
func (Middleware_MetadataValidationError) Field ¶
func (e Middleware_MetadataValidationError) Field() string
Field function returns field value.
func (Middleware_MetadataValidationError) Key ¶
func (e Middleware_MetadataValidationError) Key() bool
Key function returns key value.
func (Middleware_MetadataValidationError) Reason ¶
func (e Middleware_MetadataValidationError) Reason() string
Reason function returns reason value.