Documentation ¶
Index ¶
- Variables
- type Backend
- func (*Backend) Descriptor() ([]byte, []int)deprecated
- func (x *Backend) GetHealthCheck() *HealthCheck
- func (x *Backend) GetTarget() string
- func (x *Backend) GetWeight() int64
- func (*Backend) ProtoMessage()
- func (x *Backend) ProtoReflect() protoreflect.Message
- func (x *Backend) Reset()
- func (x *Backend) String() string
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)deprecated
- func (x *Condition) GetByHeader() *ConditionHeader
- func (x *Condition) GetByStatusCode() string
- func (m *Condition) GetCondition() isCondition_Condition
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (x *Condition) String() string
- type ConditionHeader
- func (*ConditionHeader) Descriptor() ([]byte, []int)deprecated
- func (x *ConditionHeader) GetName() string
- func (x *ConditionHeader) GetValue() string
- func (*ConditionHeader) ProtoMessage()
- func (x *ConditionHeader) ProtoReflect() protoreflect.Message
- func (x *ConditionHeader) Reset()
- func (x *ConditionHeader) String() string
- type Condition_ByHeader
- type Condition_ByStatusCode
- type Endpoint
- func (*Endpoint) Descriptor() ([]byte, []int)deprecated
- func (x *Endpoint) GetBackends() []*Backend
- func (x *Endpoint) GetDescription() string
- func (x *Endpoint) GetHost() string
- func (x *Endpoint) GetMetadata() map[string]string
- func (x *Endpoint) GetMethod() string
- func (x *Endpoint) GetMiddlewares() []*Middleware
- func (x *Endpoint) GetPath() string
- func (x *Endpoint) GetProtocol() Protocol
- func (x *Endpoint) GetRetry() *Retry
- func (x *Endpoint) GetTimeout() *durationpb.Duration
- func (*Endpoint) ProtoMessage()
- func (x *Endpoint) ProtoReflect() protoreflect.Message
- func (x *Endpoint) Reset()
- func (x *Endpoint) String() string
- type Gateway
- func (*Gateway) Descriptor() ([]byte, []int)deprecated
- func (x *Gateway) GetEndpoints() []*Endpoint
- func (x *Gateway) GetHosts() []stringdeprecated
- func (x *Gateway) GetMiddlewares() []*Middleware
- func (x *Gateway) GetName() string
- func (x *Gateway) GetVersion() string
- func (*Gateway) ProtoMessage()
- func (x *Gateway) ProtoReflect() protoreflect.Message
- func (x *Gateway) Reset()
- func (x *Gateway) String() string
- type HealthCheck
- type Middleware
- func (*Middleware) Descriptor() ([]byte, []int)deprecated
- func (x *Middleware) GetName() string
- func (x *Middleware) GetOptions() *anypb.Any
- func (x *Middleware) GetRequired() bool
- func (*Middleware) ProtoMessage()
- func (x *Middleware) ProtoReflect() protoreflect.Message
- func (x *Middleware) Reset()
- func (x *Middleware) String() string
- type PriorityConfig
- func (*PriorityConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PriorityConfig) GetEndpoints() []*Endpoint
- func (x *PriorityConfig) GetName() string
- func (x *PriorityConfig) GetVersion() string
- func (*PriorityConfig) ProtoMessage()
- func (x *PriorityConfig) ProtoReflect() protoreflect.Message
- func (x *PriorityConfig) Reset()
- func (x *PriorityConfig) String() string
- type Protocol
- type Retry
- func (*Retry) Descriptor() ([]byte, []int)deprecated
- func (x *Retry) GetAttempts() uint32
- func (x *Retry) GetConditions() []*Condition
- func (x *Retry) GetPerTryTimeout() *durationpb.Duration
- func (x *Retry) GetPriorities() []string
- func (*Retry) ProtoMessage()
- func (x *Retry) ProtoReflect() protoreflect.Message
- func (x *Retry) Reset()
- func (x *Retry) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Protocol_name = map[int32]string{ 0: "UNSPECIFIED", 1: "HTTP", 2: "GRPC", } Protocol_value = map[string]int32{ "UNSPECIFIED": 0, "HTTP": 1, "GRPC": 2, } )
Enum value maps for Protocol.
View Source
var File_gateway_config_v1_gateway_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"` // contains filtered or unexported fields }
func (*Backend) Descriptor
deprecated
func (*Backend) GetHealthCheck ¶
func (x *Backend) GetHealthCheck() *HealthCheck
func (*Backend) ProtoMessage ¶
func (*Backend) ProtoMessage()
func (*Backend) ProtoReflect ¶
func (x *Backend) ProtoReflect() protoreflect.Message
type Condition ¶
type Condition struct { // Types that are assignable to Condition: // // *Condition_ByStatusCode // *Condition_ByHeader Condition isCondition_Condition `protobuf_oneof:"condition"` // contains filtered or unexported fields }
func (*Condition) Descriptor
deprecated
func (*Condition) GetByHeader ¶
func (x *Condition) GetByHeader() *ConditionHeader
func (*Condition) GetByStatusCode ¶
func (*Condition) GetCondition ¶
func (m *Condition) GetCondition() isCondition_Condition
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶
func (x *Condition) ProtoReflect() protoreflect.Message
type ConditionHeader ¶
type ConditionHeader 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 (*ConditionHeader) Descriptor
deprecated
func (*ConditionHeader) Descriptor() ([]byte, []int)
Deprecated: Use ConditionHeader.ProtoReflect.Descriptor instead.
func (*ConditionHeader) GetName ¶
func (x *ConditionHeader) GetName() string
func (*ConditionHeader) GetValue ¶
func (x *ConditionHeader) GetValue() string
func (*ConditionHeader) ProtoMessage ¶
func (*ConditionHeader) ProtoMessage()
func (*ConditionHeader) ProtoReflect ¶
func (x *ConditionHeader) ProtoReflect() protoreflect.Message
func (*ConditionHeader) Reset ¶
func (x *ConditionHeader) Reset()
func (*ConditionHeader) String ¶
func (x *ConditionHeader) String() string
type Condition_ByHeader ¶
type Condition_ByHeader struct { // {"name": "grpc-status", "value": "14"} ByHeader *ConditionHeader `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 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=gateway.config.v1.Protocol" json:"protocol,omitempty"` Timeout *durationpb.Duration `protobuf:"bytes,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 `` /* 157-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) GetBackends ¶
func (*Endpoint) GetDescription ¶
func (*Endpoint) GetMetadata ¶
func (*Endpoint) GetMiddlewares ¶
func (x *Endpoint) GetMiddlewares() []*Middleware
func (*Endpoint) GetProtocol ¶
func (*Endpoint) GetTimeout ¶
func (x *Endpoint) GetTimeout() *durationpb.Duration
func (*Endpoint) ProtoMessage ¶
func (*Endpoint) ProtoMessage()
func (*Endpoint) ProtoReflect ¶
func (x *Endpoint) ProtoReflect() protoreflect.Message
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 gateway/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"` // contains filtered or unexported fields }
func (*Gateway) Descriptor
deprecated
func (*Gateway) GetEndpoints ¶
func (*Gateway) GetMiddlewares ¶
func (x *Gateway) GetMiddlewares() []*Middleware
func (*Gateway) GetVersion ¶
func (*Gateway) ProtoMessage ¶
func (*Gateway) ProtoMessage()
func (*Gateway) ProtoReflect ¶
func (x *Gateway) ProtoReflect() protoreflect.Message
type HealthCheck ¶
type HealthCheck struct {
// contains filtered or unexported fields
}
func (*HealthCheck) Descriptor
deprecated
func (*HealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.
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
type Middleware ¶
type Middleware struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Options *anypb.Any `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() *anypb.Any
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
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
type Protocol ¶
type Protocol int32
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type Retry ¶
type Retry struct { // default attempts is 1 Attempts uint32 `protobuf:"varint,1,opt,name=attempts,proto3" json:"attempts,omitempty"` PerTryTimeout *durationpb.Duration `protobuf:"bytes,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) GetAttempts ¶
func (*Retry) GetConditions ¶
func (*Retry) GetPerTryTimeout ¶
func (x *Retry) GetPerTryTimeout() *durationpb.Duration
func (*Retry) GetPriorities ¶
func (*Retry) ProtoMessage ¶
func (*Retry) ProtoMessage()
func (*Retry) ProtoReflect ¶
func (x *Retry) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.