Documentation ¶
Index ¶
- Variables
- type CircuitBreaker
- func (*CircuitBreaker) Descriptor() ([]byte, []int)deprecated
- func (x *CircuitBreaker) GetRatio() int64
- func (x *CircuitBreaker) GetSuccessRatio() *SuccessRatio
- func (m *CircuitBreaker) GetTrigger() isCircuitBreaker_Trigger
- func (*CircuitBreaker) ProtoMessage()
- func (x *CircuitBreaker) ProtoReflect() protoreflect.Message
- func (x *CircuitBreaker) Reset()
- func (x *CircuitBreaker) String() string
- type CircuitBreaker_Ratio
- type CircuitBreaker_SuccessRatio
- type SuccessRatio
- func (*SuccessRatio) Descriptor() ([]byte, []int)deprecated
- func (x *SuccessRatio) GetBucket() int32
- func (x *SuccessRatio) GetRequest() int32
- func (x *SuccessRatio) GetSuccess() float64
- func (x *SuccessRatio) GetWindow() *durationpb.Duration
- func (*SuccessRatio) ProtoMessage()
- func (x *SuccessRatio) ProtoReflect() protoreflect.Message
- func (x *SuccessRatio) Reset()
- func (x *SuccessRatio) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_middleware_circuitbreaker_v1_circuitbreaker_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CircuitBreaker ¶
type CircuitBreaker struct { // Types that are assignable to Trigger: // // *CircuitBreaker_SuccessRatio // *CircuitBreaker_Ratio Trigger isCircuitBreaker_Trigger `protobuf_oneof:"trigger"` // contains filtered or unexported fields }
CircuitBreaker middleware config.
func (*CircuitBreaker) Descriptor
deprecated
func (*CircuitBreaker) Descriptor() ([]byte, []int)
Deprecated: Use CircuitBreaker.ProtoReflect.Descriptor instead.
func (*CircuitBreaker) GetRatio ¶
func (x *CircuitBreaker) GetRatio() int64
func (*CircuitBreaker) GetSuccessRatio ¶
func (x *CircuitBreaker) GetSuccessRatio() *SuccessRatio
func (*CircuitBreaker) GetTrigger ¶
func (m *CircuitBreaker) GetTrigger() isCircuitBreaker_Trigger
func (*CircuitBreaker) ProtoMessage ¶
func (*CircuitBreaker) ProtoMessage()
func (*CircuitBreaker) ProtoReflect ¶
func (x *CircuitBreaker) ProtoReflect() protoreflect.Message
func (*CircuitBreaker) Reset ¶
func (x *CircuitBreaker) Reset()
func (*CircuitBreaker) String ¶
func (x *CircuitBreaker) String() string
type CircuitBreaker_Ratio ¶
type CircuitBreaker_Ratio struct {
Ratio int64 `protobuf:"varint,2,opt,name=ratio,proto3,oneof"`
}
type CircuitBreaker_SuccessRatio ¶
type CircuitBreaker_SuccessRatio struct {
SuccessRatio *SuccessRatio `protobuf:"bytes,1,opt,name=success_ratio,json=successRatio,proto3,oneof"`
}
type SuccessRatio ¶
type SuccessRatio struct { Success float64 `protobuf:"fixed64,1,opt,name=success,proto3" json:"success,omitempty"` Request int32 `protobuf:"varint,2,opt,name=request,proto3" json:"request,omitempty"` Bucket int32 `protobuf:"varint,3,opt,name=bucket,proto3" json:"bucket,omitempty"` Window *durationpb.Duration `protobuf:"bytes,4,opt,name=window,proto3" json:"window,omitempty"` // contains filtered or unexported fields }
func (*SuccessRatio) Descriptor
deprecated
func (*SuccessRatio) Descriptor() ([]byte, []int)
Deprecated: Use SuccessRatio.ProtoReflect.Descriptor instead.
func (*SuccessRatio) GetBucket ¶
func (x *SuccessRatio) GetBucket() int32
func (*SuccessRatio) GetRequest ¶
func (x *SuccessRatio) GetRequest() int32
func (*SuccessRatio) GetSuccess ¶
func (x *SuccessRatio) GetSuccess() float64
func (*SuccessRatio) GetWindow ¶
func (x *SuccessRatio) GetWindow() *durationpb.Duration
func (*SuccessRatio) ProtoMessage ¶
func (*SuccessRatio) ProtoMessage()
func (*SuccessRatio) ProtoReflect ¶
func (x *SuccessRatio) ProtoReflect() protoreflect.Message
func (*SuccessRatio) Reset ¶
func (x *SuccessRatio) Reset()
func (*SuccessRatio) String ¶
func (x *SuccessRatio) String() string
Click to show internal directories.
Click to hide internal directories.