configv1

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Protocol_name = map[int32]string{
		0: "PROTOCOL_UNSPECIFIED",
		1: "PROTOCOL_HTTP",
		2: "PROTOCOL_GRPC",
		3: "PROTOCOL_CUSTOM",
	}
	Protocol_value = map[string]int32{
		"PROTOCOL_UNSPECIFIED": 0,
		"PROTOCOL_HTTP":        1,
		"PROTOCOL_GRPC":        2,
		"PROTOCOL_CUSTOM":      3,
	}
)

Enum value maps for Protocol.

View Source
var (
	HealthCheck_CheckType_name = map[int32]string{
		0: "CHECK_TYPE_UNSPECIFIED",
		1: "CHECK_TYPE_HTTP",
		2: "CHECK_TYPE_TCP",
	}
	HealthCheck_CheckType_value = map[string]int32{
		"CHECK_TYPE_UNSPECIFIED": 0,
		"CHECK_TYPE_HTTP":        1,
		"CHECK_TYPE_TCP":         2,
	}
)

Enum value maps for HealthCheck_CheckType.

View Source
var File_runtime_config_v1_gateway_proto protoreflect.FileDescriptor
View Source
var File_runtime_config_v1_message_proto protoreflect.FileDescriptor
View Source
var File_runtime_config_v1_tracer_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Backend

type Backend struct {

	// localhost
	// 127.0.0.1:8000
	// discovery:///service_name
	Target        string            `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	Weight        *int64            `protobuf:"varint,2,opt,name=weight,proto3,oneof" json:"weight,omitempty"`
	HealthCheck   *HealthCheck      `protobuf:"bytes,3,opt,name=health_check,json=healthCheck,proto3" json:"health_check,omitempty"`
	Tls           bool              `protobuf:"varint,4,opt,name=tls,proto3" json:"tls,omitempty"`
	TlsConfigName string            `protobuf:"bytes,5,opt,name=tls_config_name,json=tlsConfigName,proto3" json:"tls_config_name,omitempty"`
	Metadata      map[string]string `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Backend) Descriptor deprecated

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

Deprecated: Use Backend.ProtoReflect.Descriptor instead.

func (*Backend) GetHealthCheck

func (x *Backend) GetHealthCheck() *HealthCheck

func (*Backend) GetMetadata

func (x *Backend) GetMetadata() map[string]string

func (*Backend) GetTarget

func (x *Backend) GetTarget() string

func (*Backend) GetTls

func (x *Backend) GetTls() bool

func (*Backend) GetTlsConfigName

func (x *Backend) GetTlsConfigName() string

func (*Backend) GetWeight

func (x *Backend) GetWeight() int64

func (*Backend) ProtoMessage

func (*Backend) ProtoMessage()

func (*Backend) ProtoReflect

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

func (*Backend) Reset

func (x *Backend) Reset()

func (*Backend) String

func (x *Backend) String() string

func (*Backend) Validate

func (m *Backend) Validate() error

Validate checks the field values on Backend 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 (*Backend) ValidateAll

func (m *Backend) ValidateAll() error

ValidateAll checks the field values on Backend 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 BackendMultiError, or nil if none found.

type BackendMultiError

type BackendMultiError []error

BackendMultiError is an error wrapping multiple validation errors returned by Backend.ValidateAll() if the designated constraints aren't met.

func (BackendMultiError) AllErrors

func (m BackendMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BackendMultiError) Error

func (m BackendMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BackendValidationError

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

BackendValidationError is the validation error returned by Backend.Validate if the designated constraints aren't met.

func (BackendValidationError) Cause

func (e BackendValidationError) Cause() error

Cause function returns cause value.

func (BackendValidationError) Error

func (e BackendValidationError) Error() string

Error satisfies the builtin error interface

func (BackendValidationError) ErrorName

func (e BackendValidationError) ErrorName() string

ErrorName returns error name.

func (BackendValidationError) Field

func (e BackendValidationError) Field() string

Field function returns field value.

func (BackendValidationError) Key

func (e BackendValidationError) Key() bool

Key function returns key value.

func (BackendValidationError) Reason

func (e BackendValidationError) Reason() string

Reason function returns reason value.

type Condition

type Condition struct {

	// Types that are valid to be assigned to Condition:
	//
	//	*Condition_ByStatusCode
	//	*Condition_ByHeader
	Condition isCondition_Condition `protobuf_oneof:"condition"`
	// contains filtered or unexported fields
}

func (*Condition) Descriptor deprecated

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

Deprecated: Use Condition.ProtoReflect.Descriptor instead.

func (*Condition) GetByHeader

func (x *Condition) GetByHeader() *Condition_Header

func (*Condition) GetByStatusCode

func (x *Condition) GetByStatusCode() string

func (*Condition) GetCondition

func (x *Condition) GetCondition() isCondition_Condition

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) ProtoReflect

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

func (*Condition) Reset

func (x *Condition) Reset()

func (*Condition) String

func (x *Condition) String() string

func (*Condition) Validate

func (m *Condition) Validate() error

Validate checks the field values on Condition 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 (*Condition) ValidateAll

func (m *Condition) ValidateAll() error

ValidateAll checks the field values on Condition 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 ConditionMultiError, or nil if none found.

type ConditionMultiError

type ConditionMultiError []error

ConditionMultiError is an error wrapping multiple validation errors returned by Condition.ValidateAll() if the designated constraints aren't met.

func (ConditionMultiError) AllErrors

func (m ConditionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConditionMultiError) Error

func (m ConditionMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConditionValidationError

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

ConditionValidationError is the validation error returned by Condition.Validate if the designated constraints aren't met.

func (ConditionValidationError) Cause

func (e ConditionValidationError) Cause() error

Cause function returns cause value.

func (ConditionValidationError) Error

func (e ConditionValidationError) Error() string

Error satisfies the builtin error interface

func (ConditionValidationError) ErrorName

func (e ConditionValidationError) ErrorName() string

ErrorName returns error name.

func (ConditionValidationError) Field

func (e ConditionValidationError) Field() string

Field function returns field value.

func (ConditionValidationError) Key

Key function returns key value.

func (ConditionValidationError) Reason

func (e ConditionValidationError) Reason() string

Reason function returns reason value.

type Condition_ByHeader

type Condition_ByHeader struct {
	// {"name": "grpc-status", "value": "14"}
	ByHeader *Condition_Header `protobuf:"bytes,2,opt,name=by_header,json=byHeader,proto3,oneof"`
}

type Condition_ByStatusCode

type Condition_ByStatusCode struct {
	// "500-599", "429"
	ByStatusCode string `protobuf:"bytes,1,opt,name=by_status_code,json=byStatusCode,proto3,oneof"`
}

type Condition_Header

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

func (*Condition_Header) Descriptor deprecated

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

Deprecated: Use Condition_Header.ProtoReflect.Descriptor instead.

func (*Condition_Header) GetName

func (x *Condition_Header) GetName() string

func (*Condition_Header) GetValue

func (x *Condition_Header) GetValue() string

func (*Condition_Header) ProtoMessage

func (*Condition_Header) ProtoMessage()

func (*Condition_Header) ProtoReflect

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

func (*Condition_Header) Reset

func (x *Condition_Header) Reset()

func (*Condition_Header) String

func (x *Condition_Header) String() string

func (*Condition_Header) Validate

func (m *Condition_Header) Validate() error

Validate checks the field values on Condition_Header 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 (*Condition_Header) ValidateAll

func (m *Condition_Header) ValidateAll() error

ValidateAll checks the field values on Condition_Header 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 Condition_HeaderMultiError, or nil if none found.

type Condition_HeaderMultiError

type Condition_HeaderMultiError []error

Condition_HeaderMultiError is an error wrapping multiple validation errors returned by Condition_Header.ValidateAll() if the designated constraints aren't met.

func (Condition_HeaderMultiError) AllErrors

func (m Condition_HeaderMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Condition_HeaderMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type Condition_HeaderValidationError

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

Condition_HeaderValidationError is the validation error returned by Condition_Header.Validate if the designated constraints aren't met.

func (Condition_HeaderValidationError) Cause

Cause function returns cause value.

func (Condition_HeaderValidationError) Error

Error satisfies the builtin error interface

func (Condition_HeaderValidationError) ErrorName

ErrorName returns error name.

func (Condition_HeaderValidationError) Field

Field function returns field value.

func (Condition_HeaderValidationError) Key

Key function returns key value.

func (Condition_HeaderValidationError) Reason

Reason function returns reason value.

type Endpoint

type Endpoint struct {
	Path        string            `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Method      string            `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	Description string            `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Protocol    Protocol          `protobuf:"varint,4,opt,name=protocol,proto3,enum=runtime.config.v1.Protocol" json:"protocol,omitempty"`
	Timeout     int64             `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Middlewares []*Middleware     `protobuf:"bytes,6,rep,name=middlewares,proto3" json:"middlewares,omitempty"`
	Backends    []*Backend        `protobuf:"bytes,7,rep,name=backends,proto3" json:"backends,omitempty"`
	Retry       *Retry            `protobuf:"bytes,8,opt,name=retry,proto3" json:"retry,omitempty"`
	Metadata    map[string]string `` /* 143-byte string literal not displayed */
	Host        string            `protobuf:"bytes,10,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoint) Descriptor deprecated

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

Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.

func (*Endpoint) GetBackends

func (x *Endpoint) GetBackends() []*Backend

func (*Endpoint) GetDescription

func (x *Endpoint) GetDescription() string

func (*Endpoint) GetHost

func (x *Endpoint) GetHost() string

func (*Endpoint) GetMetadata

func (x *Endpoint) GetMetadata() map[string]string

func (*Endpoint) GetMethod

func (x *Endpoint) GetMethod() string

func (*Endpoint) GetMiddlewares

func (x *Endpoint) GetMiddlewares() []*Middleware

func (*Endpoint) GetPath

func (x *Endpoint) GetPath() string

func (*Endpoint) GetProtocol

func (x *Endpoint) GetProtocol() Protocol

func (*Endpoint) GetRetry

func (x *Endpoint) GetRetry() *Retry

func (*Endpoint) GetTimeout

func (x *Endpoint) GetTimeout() int64

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) ProtoReflect

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

func (*Endpoint) Reset

func (x *Endpoint) Reset()

func (*Endpoint) String

func (x *Endpoint) String() string

func (*Endpoint) Validate

func (m *Endpoint) Validate() error

Validate checks the field values on Endpoint 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 (*Endpoint) ValidateAll

func (m *Endpoint) ValidateAll() error

ValidateAll checks the field values on Endpoint 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 EndpointMultiError, or nil if none found.

type EndpointMultiError

type EndpointMultiError []error

EndpointMultiError is an error wrapping multiple validation errors returned by Endpoint.ValidateAll() if the designated constraints aren't met.

func (EndpointMultiError) AllErrors

func (m EndpointMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EndpointMultiError) Error

func (m EndpointMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EndpointValidationError

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

EndpointValidationError is the validation error returned by Endpoint.Validate if the designated constraints aren't met.

func (EndpointValidationError) Cause

func (e EndpointValidationError) Cause() error

Cause function returns cause value.

func (EndpointValidationError) Error

func (e EndpointValidationError) Error() string

Error satisfies the builtin error interface

func (EndpointValidationError) ErrorName

func (e EndpointValidationError) ErrorName() string

ErrorName returns error name.

func (EndpointValidationError) Field

func (e EndpointValidationError) Field() string

Field function returns field value.

func (EndpointValidationError) Key

func (e EndpointValidationError) Key() bool

Key function returns key value.

func (EndpointValidationError) Reason

func (e EndpointValidationError) Reason() string

Reason function returns reason value.

type Gateway

type Gateway struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// Deprecated: Marked as deprecated in runtime/config/v1/gateway.proto.
	Hosts       []string                 `protobuf:"bytes,3,rep,name=hosts,proto3" json:"hosts,omitempty"`
	Endpoints   []*Endpoint              `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	Middlewares []*Middleware            `protobuf:"bytes,5,rep,name=middlewares,proto3" json:"middlewares,omitempty"`
	TlsStore    map[string]*v1.TLSConfig `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Gateway) Descriptor deprecated

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

Deprecated: Use Gateway.ProtoReflect.Descriptor instead.

func (*Gateway) GetEndpoints

func (x *Gateway) GetEndpoints() []*Endpoint

func (*Gateway) GetHosts deprecated

func (x *Gateway) GetHosts() []string

Deprecated: Marked as deprecated in runtime/config/v1/gateway.proto.

func (*Gateway) GetMiddlewares

func (x *Gateway) GetMiddlewares() []*Middleware

func (*Gateway) GetName

func (x *Gateway) GetName() string

func (*Gateway) GetTlsStore

func (x *Gateway) GetTlsStore() map[string]*v1.TLSConfig

func (*Gateway) GetVersion

func (x *Gateway) GetVersion() string

func (*Gateway) ProtoMessage

func (*Gateway) ProtoMessage()

func (*Gateway) ProtoReflect

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

func (*Gateway) Reset

func (x *Gateway) Reset()

func (*Gateway) String

func (x *Gateway) String() string

func (*Gateway) Validate

func (m *Gateway) Validate() error

Validate checks the field values on Gateway 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 (*Gateway) ValidateAll

func (m *Gateway) ValidateAll() error

ValidateAll checks the field values on Gateway 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 GatewayMultiError, or nil if none found.

type GatewayMultiError

type GatewayMultiError []error

GatewayMultiError is an error wrapping multiple validation errors returned by Gateway.ValidateAll() if the designated constraints aren't met.

func (GatewayMultiError) AllErrors

func (m GatewayMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GatewayMultiError) Error

func (m GatewayMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GatewayValidationError

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

GatewayValidationError is the validation error returned by Gateway.Validate if the designated constraints aren't met.

func (GatewayValidationError) Cause

func (e GatewayValidationError) Cause() error

Cause function returns cause value.

func (GatewayValidationError) Error

func (e GatewayValidationError) Error() string

Error satisfies the builtin error interface

func (GatewayValidationError) ErrorName

func (e GatewayValidationError) ErrorName() string

ErrorName returns error name.

func (GatewayValidationError) Field

func (e GatewayValidationError) Field() string

Field function returns field value.

func (GatewayValidationError) Key

func (e GatewayValidationError) Key() bool

Key function returns key value.

func (GatewayValidationError) Reason

func (e GatewayValidationError) Reason() string

Reason function returns reason value.

type HealthCheck

type HealthCheck struct {
	Type     HealthCheck_CheckType `protobuf:"varint,1,opt,name=type,proto3,enum=runtime.config.v1.HealthCheck_CheckType" json:"type,omitempty"`
	Endpoint string                `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthCheck) Descriptor deprecated

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

Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.

func (*HealthCheck) GetEndpoint

func (x *HealthCheck) GetEndpoint() string

func (*HealthCheck) GetType

func (x *HealthCheck) GetType() HealthCheck_CheckType

func (*HealthCheck) ProtoMessage

func (*HealthCheck) ProtoMessage()

func (*HealthCheck) ProtoReflect

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

func (*HealthCheck) Reset

func (x *HealthCheck) Reset()

func (*HealthCheck) String

func (x *HealthCheck) String() string

func (*HealthCheck) Validate

func (m *HealthCheck) Validate() error

Validate checks the field values on HealthCheck 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 (*HealthCheck) ValidateAll

func (m *HealthCheck) ValidateAll() error

ValidateAll checks the field values on HealthCheck 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 HealthCheckMultiError, or nil if none found.

type HealthCheckMultiError

type HealthCheckMultiError []error

HealthCheckMultiError is an error wrapping multiple validation errors returned by HealthCheck.ValidateAll() if the designated constraints aren't met.

func (HealthCheckMultiError) AllErrors

func (m HealthCheckMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HealthCheckMultiError) Error

func (m HealthCheckMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type HealthCheckValidationError

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

HealthCheckValidationError is the validation error returned by HealthCheck.Validate if the designated constraints aren't met.

func (HealthCheckValidationError) Cause

Cause function returns cause value.

func (HealthCheckValidationError) Error

Error satisfies the builtin error interface

func (HealthCheckValidationError) ErrorName

func (e HealthCheckValidationError) ErrorName() string

ErrorName returns error name.

func (HealthCheckValidationError) Field

Field function returns field value.

func (HealthCheckValidationError) Key

Key function returns key value.

func (HealthCheckValidationError) Reason

Reason function returns reason value.

type HealthCheck_CheckType

type HealthCheck_CheckType int32
const (
	HealthCheck_CHECK_TYPE_UNSPECIFIED HealthCheck_CheckType = 0
	HealthCheck_CHECK_TYPE_HTTP        HealthCheck_CheckType = 1
	HealthCheck_CHECK_TYPE_TCP         HealthCheck_CheckType = 2
)

func (HealthCheck_CheckType) Descriptor

func (HealthCheck_CheckType) Enum

func (HealthCheck_CheckType) EnumDescriptor deprecated

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

Deprecated: Use HealthCheck_CheckType.Descriptor instead.

func (HealthCheck_CheckType) Number

func (HealthCheck_CheckType) String

func (x HealthCheck_CheckType) String() string

func (HealthCheck_CheckType) Type

type Message

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

Message defines the configuration for a message queue service consumer/producer.

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

func (*Message) Validate

func (m *Message) Validate() error

Validate checks the field values on Message 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 (*Message) ValidateAll

func (m *Message) ValidateAll() error

ValidateAll checks the field values on Message 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 MessageMultiError, or nil if none found.

type MessageMultiError

type MessageMultiError []error

MessageMultiError is an error wrapping multiple validation errors returned by Message.ValidateAll() if the designated constraints aren't met.

func (MessageMultiError) AllErrors

func (m MessageMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MessageMultiError) Error

func (m MessageMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type MessageValidationError

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

MessageValidationError is the validation error returned by Message.Validate if the designated constraints aren't met.

func (MessageValidationError) Cause

func (e MessageValidationError) Cause() error

Cause function returns cause value.

func (MessageValidationError) Error

func (e MessageValidationError) Error() string

Error satisfies the builtin error interface

func (MessageValidationError) ErrorName

func (e MessageValidationError) ErrorName() string

ErrorName returns error name.

func (MessageValidationError) Field

func (e MessageValidationError) Field() string

Field function returns field value.

func (MessageValidationError) Key

func (e MessageValidationError) Key() bool

Key function returns key value.

func (MessageValidationError) Reason

func (e MessageValidationError) Reason() string

Reason function returns reason value.

type Middleware

type Middleware struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Options  []byte `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	Required bool   `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"`
	// contains filtered or unexported fields
}

func (*Middleware) Descriptor deprecated

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

Deprecated: Use Middleware.ProtoReflect.Descriptor instead.

func (*Middleware) GetName

func (x *Middleware) GetName() string

func (*Middleware) GetOptions

func (x *Middleware) GetOptions() []byte

func (*Middleware) GetRequired

func (x *Middleware) GetRequired() bool

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

Error satisfies the builtin error interface

func (MiddlewareValidationError) ErrorName

func (e MiddlewareValidationError) ErrorName() string

ErrorName returns error name.

func (MiddlewareValidationError) Field

Field function returns field value.

func (MiddlewareValidationError) Key

Key function returns key value.

func (MiddlewareValidationError) Reason

func (e MiddlewareValidationError) Reason() string

Reason function returns reason value.

type PriorityConfig

type PriorityConfig struct {
	Name      string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version   string      `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*PriorityConfig) Descriptor deprecated

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

Deprecated: Use PriorityConfig.ProtoReflect.Descriptor instead.

func (*PriorityConfig) GetEndpoints

func (x *PriorityConfig) GetEndpoints() []*Endpoint

func (*PriorityConfig) GetName

func (x *PriorityConfig) GetName() string

func (*PriorityConfig) GetVersion

func (x *PriorityConfig) GetVersion() string

func (*PriorityConfig) ProtoMessage

func (*PriorityConfig) ProtoMessage()

func (*PriorityConfig) ProtoReflect

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

func (*PriorityConfig) Reset

func (x *PriorityConfig) Reset()

func (*PriorityConfig) String

func (x *PriorityConfig) String() string

func (*PriorityConfig) Validate

func (m *PriorityConfig) Validate() error

Validate checks the field values on PriorityConfig 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 (*PriorityConfig) ValidateAll

func (m *PriorityConfig) ValidateAll() error

ValidateAll checks the field values on PriorityConfig 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 PriorityConfigMultiError, or nil if none found.

type PriorityConfigMultiError

type PriorityConfigMultiError []error

PriorityConfigMultiError is an error wrapping multiple validation errors returned by PriorityConfig.ValidateAll() if the designated constraints aren't met.

func (PriorityConfigMultiError) AllErrors

func (m PriorityConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PriorityConfigMultiError) Error

func (m PriorityConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PriorityConfigValidationError

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

PriorityConfigValidationError is the validation error returned by PriorityConfig.Validate if the designated constraints aren't met.

func (PriorityConfigValidationError) Cause

Cause function returns cause value.

func (PriorityConfigValidationError) Error

Error satisfies the builtin error interface

func (PriorityConfigValidationError) ErrorName

func (e PriorityConfigValidationError) ErrorName() string

ErrorName returns error name.

func (PriorityConfigValidationError) Field

Field function returns field value.

func (PriorityConfigValidationError) Key

Key function returns key value.

func (PriorityConfigValidationError) Reason

Reason function returns reason value.

type Protocol

type Protocol int32
const (
	Protocol_PROTOCOL_UNSPECIFIED Protocol = 0
	Protocol_PROTOCOL_HTTP        Protocol = 1
	Protocol_PROTOCOL_GRPC        Protocol = 2
	Protocol_PROTOCOL_CUSTOM      Protocol = 3
)

func (Protocol) Descriptor

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated

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

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String

func (x Protocol) String() string

func (Protocol) Type

type Retry

type Retry struct {

	// default attempts is 1
	Attempts      uint32       `protobuf:"varint,1,opt,name=attempts,proto3" json:"attempts,omitempty"`
	PerTryTimeout int64        `protobuf:"varint,2,opt,name=per_try_timeout,json=perTryTimeout,proto3" json:"per_try_timeout,omitempty"`
	Conditions    []*Condition `protobuf:"bytes,3,rep,name=conditions,proto3" json:"conditions,omitempty"`
	// primary,secondary
	Priorities []string `protobuf:"bytes,4,rep,name=priorities,proto3" json:"priorities,omitempty"`
	// contains filtered or unexported fields
}

func (*Retry) Descriptor deprecated

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

Deprecated: Use Retry.ProtoReflect.Descriptor instead.

func (*Retry) GetAttempts

func (x *Retry) GetAttempts() uint32

func (*Retry) GetConditions

func (x *Retry) GetConditions() []*Condition

func (*Retry) GetPerTryTimeout

func (x *Retry) GetPerTryTimeout() int64

func (*Retry) GetPriorities

func (x *Retry) GetPriorities() []string

func (*Retry) ProtoMessage

func (*Retry) ProtoMessage()

func (*Retry) ProtoReflect

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

func (*Retry) Reset

func (x *Retry) Reset()

func (*Retry) String

func (x *Retry) String() string

func (*Retry) Validate

func (m *Retry) Validate() error

Validate checks the field values on Retry 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 (*Retry) ValidateAll

func (m *Retry) ValidateAll() error

ValidateAll checks the field values on Retry 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 RetryMultiError, or nil if none found.

type RetryMultiError

type RetryMultiError []error

RetryMultiError is an error wrapping multiple validation errors returned by Retry.ValidateAll() if the designated constraints aren't met.

func (RetryMultiError) AllErrors

func (m RetryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RetryMultiError) Error

func (m RetryMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RetryValidationError

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

RetryValidationError is the validation error returned by Retry.Validate if the designated constraints aren't met.

func (RetryValidationError) Cause

func (e RetryValidationError) Cause() error

Cause function returns cause value.

func (RetryValidationError) Error

func (e RetryValidationError) Error() string

Error satisfies the builtin error interface

func (RetryValidationError) ErrorName

func (e RetryValidationError) ErrorName() string

ErrorName returns error name.

func (RetryValidationError) Field

func (e RetryValidationError) Field() string

Field function returns field value.

func (RetryValidationError) Key

func (e RetryValidationError) Key() bool

Key function returns key value.

func (RetryValidationError) Reason

func (e RetryValidationError) Reason() string

Reason function returns reason value.

type Tracer added in v0.2.7

type Tracer struct {

	// name of trace service
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// endpoint is the endpoint of trace service
	Endpoint string `protobuf:"bytes,3,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// contains filtered or unexported fields
}

Tracer config.

func (*Tracer) Descriptor deprecated added in v0.2.7

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

Deprecated: Use Tracer.ProtoReflect.Descriptor instead.

func (*Tracer) GetEndpoint added in v0.2.7

func (x *Tracer) GetEndpoint() string

func (*Tracer) GetName added in v0.2.7

func (x *Tracer) GetName() string

func (*Tracer) ProtoMessage added in v0.2.7

func (*Tracer) ProtoMessage()

func (*Tracer) ProtoReflect added in v0.2.7

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

func (*Tracer) Reset added in v0.2.7

func (x *Tracer) Reset()

func (*Tracer) String added in v0.2.7

func (x *Tracer) String() string

func (*Tracer) Validate added in v0.2.7

func (m *Tracer) Validate() error

Validate checks the field values on Tracer 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 (*Tracer) ValidateAll added in v0.2.7

func (m *Tracer) ValidateAll() error

ValidateAll checks the field values on Tracer 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 TracerMultiError, or nil if none found.

type TracerMultiError added in v0.2.7

type TracerMultiError []error

TracerMultiError is an error wrapping multiple validation errors returned by Tracer.ValidateAll() if the designated constraints aren't met.

func (TracerMultiError) AllErrors added in v0.2.7

func (m TracerMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TracerMultiError) Error added in v0.2.7

func (m TracerMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TracerValidationError added in v0.2.7

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

TracerValidationError is the validation error returned by Tracer.Validate if the designated constraints aren't met.

func (TracerValidationError) Cause added in v0.2.7

func (e TracerValidationError) Cause() error

Cause function returns cause value.

func (TracerValidationError) Error added in v0.2.7

func (e TracerValidationError) Error() string

Error satisfies the builtin error interface

func (TracerValidationError) ErrorName added in v0.2.7

func (e TracerValidationError) ErrorName() string

ErrorName returns error name.

func (TracerValidationError) Field added in v0.2.7

func (e TracerValidationError) Field() string

Field function returns field value.

func (TracerValidationError) Key added in v0.2.7

func (e TracerValidationError) Key() bool

Key function returns key value.

func (TracerValidationError) Reason added in v0.2.7

func (e TracerValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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