retries

package
v1.17.0-beta17 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_retries_retries_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type RetryBackOff added in v1.13.0

type RetryBackOff struct {

	// Specifies the base interval for a retry
	BaseInterval *duration.Duration `protobuf:"bytes,1,opt,name=base_interval,json=baseInterval,proto3" json:"base_interval,omitempty"`
	// Specifies the max interval for a retry
	MaxInterval *duration.Duration `protobuf:"bytes,2,opt,name=max_interval,json=maxInterval,proto3" json:"max_interval,omitempty"`
	// contains filtered or unexported fields
}

This specifies the retry policy interval for backoffs. Note that if the base interval provided is larger than the maximum interval OR if any of the durations passed are <= 0 MS, there will be an error.

func (*RetryBackOff) Clone added in v1.13.0

func (m *RetryBackOff) Clone() proto.Message

Clone function

func (*RetryBackOff) Descriptor deprecated added in v1.13.0

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

Deprecated: Use RetryBackOff.ProtoReflect.Descriptor instead.

func (*RetryBackOff) Equal added in v1.13.0

func (m *RetryBackOff) Equal(that interface{}) bool

Equal function

func (*RetryBackOff) GetBaseInterval added in v1.13.0

func (x *RetryBackOff) GetBaseInterval() *duration.Duration

func (*RetryBackOff) GetMaxInterval added in v1.13.0

func (x *RetryBackOff) GetMaxInterval() *duration.Duration

func (*RetryBackOff) Hash added in v1.13.0

func (m *RetryBackOff) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*RetryBackOff) ProtoMessage added in v1.13.0

func (*RetryBackOff) ProtoMessage()

func (*RetryBackOff) ProtoReflect added in v1.13.0

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

func (*RetryBackOff) Reset added in v1.13.0

func (x *RetryBackOff) Reset()

func (*RetryBackOff) String added in v1.13.0

func (x *RetryBackOff) String() string

type RetryPolicy

type RetryPolicy struct {

	// Specifies the conditions under which retry takes place. These are the same
	// conditions [documented for Envoy](https://www.envoyproxy.io/docs/envoy/v1.14.1/configuration/http/http_filters/router_filter#config-http-filters-router-x-envoy-retry-on)
	RetryOn string `protobuf:"bytes,1,opt,name=retry_on,json=retryOn,proto3" json:"retry_on,omitempty"`
	// Specifies the allowed number of retries. This parameter is optional and
	// defaults to 1. These are the same conditions [documented for Envoy](https://www.envoyproxy.io/docs/envoy/v1.14.1/configuration/http/http_filters/router_filter#config-http-filters-router-x-envoy-retry-on)
	NumRetries uint32 `protobuf:"varint,2,opt,name=num_retries,json=numRetries,proto3" json:"num_retries,omitempty"`
	// Specifies a non-zero upstream timeout per retry attempt. This parameter is optional.
	PerTryTimeout *duration.Duration `protobuf:"bytes,3,opt,name=per_try_timeout,json=perTryTimeout,proto3" json:"per_try_timeout,omitempty"`
	// Specifies the retry policy interval
	RetryBackOff *RetryBackOff `protobuf:"bytes,4,opt,name=retry_back_off,json=retryBackOff,proto3" json:"retry_back_off,omitempty"`
	// contains filtered or unexported fields
}

Retry Policy applied at the Route and/or Virtual Hosts levels.

func (*RetryPolicy) Clone added in v1.8.24

func (m *RetryPolicy) Clone() proto.Message

Clone function

func (*RetryPolicy) Descriptor deprecated

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

Deprecated: Use RetryPolicy.ProtoReflect.Descriptor instead.

func (*RetryPolicy) Equal

func (m *RetryPolicy) Equal(that interface{}) bool

Equal function

func (*RetryPolicy) GetNumRetries

func (x *RetryPolicy) GetNumRetries() uint32

func (*RetryPolicy) GetPerTryTimeout

func (x *RetryPolicy) GetPerTryTimeout() *duration.Duration

func (*RetryPolicy) GetRetryBackOff added in v1.13.0

func (x *RetryPolicy) GetRetryBackOff() *RetryBackOff

func (*RetryPolicy) GetRetryOn

func (x *RetryPolicy) GetRetryOn() string

func (*RetryPolicy) Hash added in v1.2.13

func (m *RetryPolicy) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*RetryPolicy) ProtoMessage

func (*RetryPolicy) ProtoMessage()

func (*RetryPolicy) ProtoReflect added in v1.6.0

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

func (*RetryPolicy) Reset

func (x *RetryPolicy) Reset()

func (*RetryPolicy) String

func (x *RetryPolicy) String() string

Jump to

Keyboard shortcuts

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