v1

package
v0.0.0-...-c7f4476 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gateway_middleware_circuitbreaker_v1_circuitbreaker_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BackupService

type BackupService struct {
	Endpoint *v1.Endpoint `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*BackupService) Descriptor deprecated

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

Deprecated: Use BackupService.ProtoReflect.Descriptor instead.

func (*BackupService) GetEndpoint

func (x *BackupService) GetEndpoint() *v1.Endpoint

func (*BackupService) ProtoMessage

func (*BackupService) ProtoMessage()

func (*BackupService) ProtoReflect

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

func (*BackupService) Reset

func (x *BackupService) Reset()

func (*BackupService) String

func (x *BackupService) String() string

type CircuitBreaker

type CircuitBreaker struct {

	// Types that are assignable to Trigger:
	//
	//	*CircuitBreaker_SuccessRatio
	//	*CircuitBreaker_Ratio
	Trigger isCircuitBreaker_Trigger `protobuf_oneof:"trigger"`
	// Types that are assignable to Action:
	//
	//	*CircuitBreaker_ResponseData
	//	*CircuitBreaker_BackupService
	Action          isCircuitBreaker_Action `protobuf_oneof:"action"`
	AssertCondtions []*v1.Condition         `protobuf:"bytes,5,rep,name=assert_condtions,json=assertCondtions,proto3" json:"assert_condtions,omitempty"`
	// 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) GetAction

func (m *CircuitBreaker) GetAction() isCircuitBreaker_Action

func (*CircuitBreaker) GetAssertCondtions

func (x *CircuitBreaker) GetAssertCondtions() []*v1.Condition

func (*CircuitBreaker) GetBackupService

func (x *CircuitBreaker) GetBackupService() *BackupService

func (*CircuitBreaker) GetRatio

func (x *CircuitBreaker) GetRatio() int64

func (*CircuitBreaker) GetResponseData

func (x *CircuitBreaker) GetResponseData() *ResponseData

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_BackupService

type CircuitBreaker_BackupService struct {
	BackupService *BackupService `protobuf:"bytes,4,opt,name=backup_service,json=backupService,proto3,oneof"`
}

type CircuitBreaker_Ratio

type CircuitBreaker_Ratio struct {
	Ratio int64 `protobuf:"varint,2,opt,name=ratio,proto3,oneof"`
}

type CircuitBreaker_ResponseData

type CircuitBreaker_ResponseData struct {
	ResponseData *ResponseData `protobuf:"bytes,3,opt,name=response_data,json=responseData,proto3,oneof"`
}

type CircuitBreaker_SuccessRatio

type CircuitBreaker_SuccessRatio struct {
	SuccessRatio *SuccessRatio `protobuf:"bytes,1,opt,name=success_ratio,json=successRatio,proto3,oneof"`
}
type Header struct {
	Key   string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []string `protobuf:"bytes,2,rep,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetKey

func (x *Header) GetKey() string

func (*Header) GetValue

func (x *Header) GetValue() []string

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type ResponseData

type ResponseData struct {
	StatusCode int32     `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	Header     []*Header `protobuf:"bytes,2,rep,name=header,proto3" json:"header,omitempty"`
	Body       []byte    `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseData) Descriptor deprecated

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

Deprecated: Use ResponseData.ProtoReflect.Descriptor instead.

func (*ResponseData) GetBody

func (x *ResponseData) GetBody() []byte

func (*ResponseData) GetHeader

func (x *ResponseData) GetHeader() []*Header

func (*ResponseData) GetStatusCode

func (x *ResponseData) GetStatusCode() int32

func (*ResponseData) ProtoMessage

func (*ResponseData) ProtoMessage()

func (*ResponseData) ProtoReflect

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

func (*ResponseData) Reset

func (x *ResponseData) Reset()

func (*ResponseData) String

func (x *ResponseData) String() string

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

Jump to

Keyboard shortcuts

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