v1

package
v0.0.0-...-ac5cff2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RateLimitStrategy_MetricType_name = map[int32]string{
		0: "TYPE_UNKNOWN",
		1: "TYPE_REQUEST_AMOUNT",
	}
	RateLimitStrategy_MetricType_value = map[string]int32{
		"TYPE_UNKNOWN":        0,
		"TYPE_REQUEST_AMOUNT": 1,
	}
)

Enum value maps for RateLimitStrategy_MetricType.

View Source
var (
	RateLimitStrategy_LimitMode_name = map[int32]string{
		0: "MODE_UNKNOWN",
		1: "MODE_LOCAL",
		2: "MODE_GLOBAL",
	}
	RateLimitStrategy_LimitMode_value = map[string]int32{
		"MODE_UNKNOWN": 0,
		"MODE_LOCAL":   1,
		"MODE_GLOBAL":  2,
	}
)

Enum value maps for RateLimitStrategy_LimitMode.

View Source
var (
	ConcurrencyLimitStrategy_LimitMode_name = map[int32]string{
		0: "MODE_UNKNOWN",
		1: "MODE_LOCAL",
		2: "MODE_GLOBAL",
	}
	ConcurrencyLimitStrategy_LimitMode_value = map[string]int32{
		"MODE_UNKNOWN": 0,
		"MODE_LOCAL":   1,
		"MODE_GLOBAL":  2,
	}
)

Enum value maps for ConcurrencyLimitStrategy_LimitMode.

View Source
var (
	CircuitBreakerStrategy_Strategy_name = map[int32]string{
		0: "STRATEGY_UNKNOWN",
		1: "STRATEGY_SLOW_REQUEST_RATIO",
		2: "STRATEGY_ERROR_REQUEST_RATIO",
	}
	CircuitBreakerStrategy_Strategy_value = map[string]int32{
		"STRATEGY_UNKNOWN":             0,
		"STRATEGY_SLOW_REQUEST_RATIO":  1,
		"STRATEGY_ERROR_REQUEST_RATIO": 2,
	}
)

Enum value maps for CircuitBreakerStrategy_Strategy.

View Source
var File_fault_tolerance_v1_fault_tolerance_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CircuitBreakerStrategy

type CircuitBreakerStrategy struct {
	Name                    string                                               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Strategy                CircuitBreakerStrategy_Strategy                      `` /* 145-byte string literal not displayed */
	TriggerRatio            float64                                              `protobuf:"fixed64,3,opt,name=trigger_ratio,json=triggerRatio,proto3" json:"trigger_ratio,omitempty"`
	StatDuration            int64                                                `protobuf:"varint,4,opt,name=stat_duration,json=statDuration,proto3" json:"stat_duration,omitempty"`
	StatDurationTimeUnit    v1.TimeUnit                                          `` /* 169-byte string literal not displayed */
	RecoveryTimeout         int32                                                `protobuf:"varint,6,opt,name=recovery_timeout,json=recoveryTimeout,proto3" json:"recovery_timeout,omitempty"`
	RecoveryTimeoutTimeUnit v1.TimeUnit                                          `` /* 178-byte string literal not displayed */
	MinRequestAmount        int32                                                `protobuf:"varint,8,opt,name=min_request_amount,json=minRequestAmount,proto3" json:"min_request_amount,omitempty"`
	SlowCondition           *CircuitBreakerStrategy_CircuitBreakerSlowCondition  `protobuf:"bytes,9,opt,name=slow_condition,json=slowCondition,proto3" json:"slow_condition,omitempty"`
	ErrorCondition          *CircuitBreakerStrategy_CircuitBreakerErrorCondition `protobuf:"bytes,10,opt,name=error_condition,json=errorCondition,proto3" json:"error_condition,omitempty"`
	// contains filtered or unexported fields
}

CircuitBreakerStrategy

func (*CircuitBreakerStrategy) Descriptor deprecated

func (*CircuitBreakerStrategy) Descriptor() ([]byte, []int)

Deprecated: Use CircuitBreakerStrategy.ProtoReflect.Descriptor instead.

func (*CircuitBreakerStrategy) GetErrorCondition

func (*CircuitBreakerStrategy) GetMinRequestAmount

func (x *CircuitBreakerStrategy) GetMinRequestAmount() int32

func (*CircuitBreakerStrategy) GetName

func (x *CircuitBreakerStrategy) GetName() string

func (*CircuitBreakerStrategy) GetRecoveryTimeout

func (x *CircuitBreakerStrategy) GetRecoveryTimeout() int32

func (*CircuitBreakerStrategy) GetRecoveryTimeoutTimeUnit

func (x *CircuitBreakerStrategy) GetRecoveryTimeoutTimeUnit() v1.TimeUnit

func (*CircuitBreakerStrategy) GetSlowCondition

func (*CircuitBreakerStrategy) GetStatDuration

func (x *CircuitBreakerStrategy) GetStatDuration() int64

func (*CircuitBreakerStrategy) GetStatDurationTimeUnit

func (x *CircuitBreakerStrategy) GetStatDurationTimeUnit() v1.TimeUnit

func (*CircuitBreakerStrategy) GetStrategy

func (*CircuitBreakerStrategy) GetTriggerRatio

func (x *CircuitBreakerStrategy) GetTriggerRatio() float64

func (*CircuitBreakerStrategy) ProtoMessage

func (*CircuitBreakerStrategy) ProtoMessage()

func (*CircuitBreakerStrategy) ProtoReflect

func (x *CircuitBreakerStrategy) ProtoReflect() protoreflect.Message

func (*CircuitBreakerStrategy) Reset

func (x *CircuitBreakerStrategy) Reset()

func (*CircuitBreakerStrategy) String

func (x *CircuitBreakerStrategy) String() string

type CircuitBreakerStrategy_CircuitBreakerErrorCondition

type CircuitBreakerStrategy_CircuitBreakerErrorCondition struct {
	// contains filtered or unexported fields
}

func (*CircuitBreakerStrategy_CircuitBreakerErrorCondition) Descriptor deprecated

Deprecated: Use CircuitBreakerStrategy_CircuitBreakerErrorCondition.ProtoReflect.Descriptor instead.

func (*CircuitBreakerStrategy_CircuitBreakerErrorCondition) ProtoMessage

func (*CircuitBreakerStrategy_CircuitBreakerErrorCondition) ProtoReflect

func (*CircuitBreakerStrategy_CircuitBreakerErrorCondition) Reset

func (*CircuitBreakerStrategy_CircuitBreakerErrorCondition) String

type CircuitBreakerStrategy_CircuitBreakerSlowCondition

type CircuitBreakerStrategy_CircuitBreakerSlowCondition struct {
	MaxAllowedRtMillis int32 `protobuf:"varint,1,opt,name=max_allowed_rt_millis,json=maxAllowedRtMillis,proto3" json:"max_allowed_rt_millis,omitempty"`
	// contains filtered or unexported fields
}

func (*CircuitBreakerStrategy_CircuitBreakerSlowCondition) Descriptor deprecated

Deprecated: Use CircuitBreakerStrategy_CircuitBreakerSlowCondition.ProtoReflect.Descriptor instead.

func (*CircuitBreakerStrategy_CircuitBreakerSlowCondition) GetMaxAllowedRtMillis

func (x *CircuitBreakerStrategy_CircuitBreakerSlowCondition) GetMaxAllowedRtMillis() int32

func (*CircuitBreakerStrategy_CircuitBreakerSlowCondition) ProtoMessage

func (*CircuitBreakerStrategy_CircuitBreakerSlowCondition) ProtoReflect

func (*CircuitBreakerStrategy_CircuitBreakerSlowCondition) Reset

func (*CircuitBreakerStrategy_CircuitBreakerSlowCondition) String

type CircuitBreakerStrategy_Strategy

type CircuitBreakerStrategy_Strategy int32
const (
	CircuitBreakerStrategy_STRATEGY_UNKNOWN             CircuitBreakerStrategy_Strategy = 0
	CircuitBreakerStrategy_STRATEGY_SLOW_REQUEST_RATIO  CircuitBreakerStrategy_Strategy = 1
	CircuitBreakerStrategy_STRATEGY_ERROR_REQUEST_RATIO CircuitBreakerStrategy_Strategy = 2
)

func (CircuitBreakerStrategy_Strategy) Descriptor

func (CircuitBreakerStrategy_Strategy) Enum

func (CircuitBreakerStrategy_Strategy) EnumDescriptor deprecated

func (CircuitBreakerStrategy_Strategy) EnumDescriptor() ([]byte, []int)

Deprecated: Use CircuitBreakerStrategy_Strategy.Descriptor instead.

func (CircuitBreakerStrategy_Strategy) Number

func (CircuitBreakerStrategy_Strategy) String

func (CircuitBreakerStrategy_Strategy) Type

type ConcurrencyLimitStrategy

type ConcurrencyLimitStrategy struct {
	Name           string                             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	LimitMode      ConcurrencyLimitStrategy_LimitMode `` /* 167-byte string literal not displayed */
	MaxConcurrency int64                              `protobuf:"varint,3,opt,name=max_concurrency,json=maxConcurrency,proto3" json:"max_concurrency,omitempty"`
	// contains filtered or unexported fields
}

ConcurrencyLimitStrategy

func (*ConcurrencyLimitStrategy) Descriptor deprecated

func (*ConcurrencyLimitStrategy) Descriptor() ([]byte, []int)

Deprecated: Use ConcurrencyLimitStrategy.ProtoReflect.Descriptor instead.

func (*ConcurrencyLimitStrategy) GetLimitMode

func (*ConcurrencyLimitStrategy) GetMaxConcurrency

func (x *ConcurrencyLimitStrategy) GetMaxConcurrency() int64

func (*ConcurrencyLimitStrategy) GetName

func (x *ConcurrencyLimitStrategy) GetName() string

func (*ConcurrencyLimitStrategy) ProtoMessage

func (*ConcurrencyLimitStrategy) ProtoMessage()

func (*ConcurrencyLimitStrategy) ProtoReflect

func (x *ConcurrencyLimitStrategy) ProtoReflect() protoreflect.Message

func (*ConcurrencyLimitStrategy) Reset

func (x *ConcurrencyLimitStrategy) Reset()

func (*ConcurrencyLimitStrategy) String

func (x *ConcurrencyLimitStrategy) String() string

type ConcurrencyLimitStrategy_LimitMode

type ConcurrencyLimitStrategy_LimitMode int32
const (
	ConcurrencyLimitStrategy_MODE_UNKNOWN ConcurrencyLimitStrategy_LimitMode = 0
	ConcurrencyLimitStrategy_MODE_LOCAL   ConcurrencyLimitStrategy_LimitMode = 1
	ConcurrencyLimitStrategy_MODE_GLOBAL  ConcurrencyLimitStrategy_LimitMode = 2
)

func (ConcurrencyLimitStrategy_LimitMode) Descriptor

func (ConcurrencyLimitStrategy_LimitMode) Enum

func (ConcurrencyLimitStrategy_LimitMode) EnumDescriptor deprecated

func (ConcurrencyLimitStrategy_LimitMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use ConcurrencyLimitStrategy_LimitMode.Descriptor instead.

func (ConcurrencyLimitStrategy_LimitMode) Number

func (ConcurrencyLimitStrategy_LimitMode) String

func (ConcurrencyLimitStrategy_LimitMode) Type

type FaultToleranceRule

type FaultToleranceRule struct {
	Targets    []*FaultToleranceRule_FaultToleranceRuleTargetRef `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"`
	Strategies []*FaultToleranceRule_FaultToleranceStrategyRef   `protobuf:"bytes,2,rep,name=strategies,proto3" json:"strategies,omitempty"`
	Action     *FaultToleranceRule_FaultToleranceActionRef       `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
	// contains filtered or unexported fields
}

FaultToleranceRule

func (*FaultToleranceRule) Descriptor deprecated

func (*FaultToleranceRule) Descriptor() ([]byte, []int)

Deprecated: Use FaultToleranceRule.ProtoReflect.Descriptor instead.

func (*FaultToleranceRule) GetAction

func (*FaultToleranceRule) GetStrategies

func (*FaultToleranceRule) GetTargets

func (*FaultToleranceRule) ProtoMessage

func (*FaultToleranceRule) ProtoMessage()

func (*FaultToleranceRule) ProtoReflect

func (x *FaultToleranceRule) ProtoReflect() protoreflect.Message

func (*FaultToleranceRule) Reset

func (x *FaultToleranceRule) Reset()

func (*FaultToleranceRule) String

func (x *FaultToleranceRule) String() string

type FaultToleranceRule_FaultToleranceActionRef

type FaultToleranceRule_FaultToleranceActionRef struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*FaultToleranceRule_FaultToleranceActionRef) Descriptor deprecated

Deprecated: Use FaultToleranceRule_FaultToleranceActionRef.ProtoReflect.Descriptor instead.

func (*FaultToleranceRule_FaultToleranceActionRef) GetKind

func (*FaultToleranceRule_FaultToleranceActionRef) GetName

func (*FaultToleranceRule_FaultToleranceActionRef) ProtoMessage

func (*FaultToleranceRule_FaultToleranceActionRef) ProtoReflect

func (*FaultToleranceRule_FaultToleranceActionRef) Reset

func (*FaultToleranceRule_FaultToleranceActionRef) String

type FaultToleranceRule_FaultToleranceRuleTargetRef

type FaultToleranceRule_FaultToleranceRuleTargetRef struct {
	TargetResourceName string `protobuf:"bytes,1,opt,name=target_resource_name,json=targetResourceName,proto3" json:"target_resource_name,omitempty"`
	// contains filtered or unexported fields
}

func (*FaultToleranceRule_FaultToleranceRuleTargetRef) Descriptor deprecated

Deprecated: Use FaultToleranceRule_FaultToleranceRuleTargetRef.ProtoReflect.Descriptor instead.

func (*FaultToleranceRule_FaultToleranceRuleTargetRef) GetTargetResourceName

func (x *FaultToleranceRule_FaultToleranceRuleTargetRef) GetTargetResourceName() string

func (*FaultToleranceRule_FaultToleranceRuleTargetRef) ProtoMessage

func (*FaultToleranceRule_FaultToleranceRuleTargetRef) ProtoReflect

func (*FaultToleranceRule_FaultToleranceRuleTargetRef) Reset

func (*FaultToleranceRule_FaultToleranceRuleTargetRef) String

type FaultToleranceRule_FaultToleranceStrategyRef

type FaultToleranceRule_FaultToleranceStrategyRef struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*FaultToleranceRule_FaultToleranceStrategyRef) Descriptor deprecated

Deprecated: Use FaultToleranceRule_FaultToleranceStrategyRef.ProtoReflect.Descriptor instead.

func (*FaultToleranceRule_FaultToleranceStrategyRef) GetKind

func (*FaultToleranceRule_FaultToleranceStrategyRef) GetName

func (*FaultToleranceRule_FaultToleranceStrategyRef) ProtoMessage

func (*FaultToleranceRule_FaultToleranceStrategyRef) ProtoReflect

func (*FaultToleranceRule_FaultToleranceStrategyRef) Reset

func (*FaultToleranceRule_FaultToleranceStrategyRef) String

type RateLimitStrategy

type RateLimitStrategy struct {
	Name                 string                       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	MetricType           RateLimitStrategy_MetricType `` /* 164-byte string literal not displayed */
	LimitMode            RateLimitStrategy_LimitMode  `` /* 160-byte string literal not displayed */
	Threshold            int64                        `protobuf:"varint,4,opt,name=threshold,proto3" json:"threshold,omitempty"`
	StatDuration         int32                        `protobuf:"varint,5,opt,name=stat_duration,json=statDuration,proto3" json:"stat_duration,omitempty"`
	StatDurationTimeUnit v1.TimeUnit                  `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

RateLimitStrategy

func (*RateLimitStrategy) Descriptor deprecated

func (*RateLimitStrategy) Descriptor() ([]byte, []int)

Deprecated: Use RateLimitStrategy.ProtoReflect.Descriptor instead.

func (*RateLimitStrategy) GetLimitMode

func (*RateLimitStrategy) GetMetricType

func (*RateLimitStrategy) GetName

func (x *RateLimitStrategy) GetName() string

func (*RateLimitStrategy) GetStatDuration

func (x *RateLimitStrategy) GetStatDuration() int32

func (*RateLimitStrategy) GetStatDurationTimeUnit

func (x *RateLimitStrategy) GetStatDurationTimeUnit() v1.TimeUnit

func (*RateLimitStrategy) GetThreshold

func (x *RateLimitStrategy) GetThreshold() int64

func (*RateLimitStrategy) ProtoMessage

func (*RateLimitStrategy) ProtoMessage()

func (*RateLimitStrategy) ProtoReflect

func (x *RateLimitStrategy) ProtoReflect() protoreflect.Message

func (*RateLimitStrategy) Reset

func (x *RateLimitStrategy) Reset()

func (*RateLimitStrategy) String

func (x *RateLimitStrategy) String() string

type RateLimitStrategy_LimitMode

type RateLimitStrategy_LimitMode int32
const (
	RateLimitStrategy_MODE_UNKNOWN RateLimitStrategy_LimitMode = 0
	RateLimitStrategy_MODE_LOCAL   RateLimitStrategy_LimitMode = 1
	RateLimitStrategy_MODE_GLOBAL  RateLimitStrategy_LimitMode = 2
)

func (RateLimitStrategy_LimitMode) Descriptor

func (RateLimitStrategy_LimitMode) Enum

func (RateLimitStrategy_LimitMode) EnumDescriptor deprecated

func (RateLimitStrategy_LimitMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use RateLimitStrategy_LimitMode.Descriptor instead.

func (RateLimitStrategy_LimitMode) Number

func (RateLimitStrategy_LimitMode) String

func (RateLimitStrategy_LimitMode) Type

type RateLimitStrategy_MetricType

type RateLimitStrategy_MetricType int32
const (
	RateLimitStrategy_TYPE_UNKNOWN        RateLimitStrategy_MetricType = 0
	RateLimitStrategy_TYPE_REQUEST_AMOUNT RateLimitStrategy_MetricType = 1
)

func (RateLimitStrategy_MetricType) Descriptor

func (RateLimitStrategy_MetricType) Enum

func (RateLimitStrategy_MetricType) EnumDescriptor deprecated

func (RateLimitStrategy_MetricType) EnumDescriptor() ([]byte, []int)

Deprecated: Use RateLimitStrategy_MetricType.Descriptor instead.

func (RateLimitStrategy_MetricType) Number

func (RateLimitStrategy_MetricType) String

func (RateLimitStrategy_MetricType) Type

type ThrottlingStrategy

type ThrottlingStrategy struct {
	Name                        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	MinIntervalMillisOfRequests int64  `` /* 149-byte string literal not displayed */
	QueueTimeoutMillis          int64  `protobuf:"varint,3,opt,name=queue_timeout_millis,json=queueTimeoutMillis,proto3" json:"queue_timeout_millis,omitempty"`
	// contains filtered or unexported fields
}

ThrottlingStrategy

func (*ThrottlingStrategy) Descriptor deprecated

func (*ThrottlingStrategy) Descriptor() ([]byte, []int)

Deprecated: Use ThrottlingStrategy.ProtoReflect.Descriptor instead.

func (*ThrottlingStrategy) GetMinIntervalMillisOfRequests

func (x *ThrottlingStrategy) GetMinIntervalMillisOfRequests() int64

func (*ThrottlingStrategy) GetName

func (x *ThrottlingStrategy) GetName() string

func (*ThrottlingStrategy) GetQueueTimeoutMillis

func (x *ThrottlingStrategy) GetQueueTimeoutMillis() int64

func (*ThrottlingStrategy) ProtoMessage

func (*ThrottlingStrategy) ProtoMessage()

func (*ThrottlingStrategy) ProtoReflect

func (x *ThrottlingStrategy) ProtoReflect() protoreflect.Message

func (*ThrottlingStrategy) Reset

func (x *ThrottlingStrategy) Reset()

func (*ThrottlingStrategy) String

func (x *ThrottlingStrategy) String() string

Jump to

Keyboard shortcuts

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