Documentation ¶
Index ¶
- Variables
- func RegisterLoadBalancerServer(s grpc.ServiceRegistrar, srv LoadBalancerServer)
- type AddBackendReq
- func (*AddBackendReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddBackendReq) GetBackend() *Backend
- func (x *AddBackendReq) GetPattern() string
- func (*AddBackendReq) ProtoMessage()
- func (x *AddBackendReq) ProtoReflect() protoreflect.Message
- func (x *AddBackendReq) Reset()
- func (x *AddBackendReq) String() string
- type AddBackendResp
- type AddPoolReq
- func (*AddPoolReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddPoolReq) GetHealthChecks() *HealthChecks
- func (x *AddPoolReq) GetPattern() string
- func (x *AddPoolReq) GetPoolType() PoolType
- func (*AddPoolReq) ProtoMessage()
- func (x *AddPoolReq) ProtoReflect() protoreflect.Message
- func (x *AddPoolReq) Reset()
- func (x *AddPoolReq) String() string
- type AddPoolResp
- type Backend
- type BackendHealth
- func (*BackendHealth) Descriptor() ([]byte, []int)deprecated
- func (x *BackendHealth) GetBackend() *Backend
- func (x *BackendHealth) GetStatus() BackendStatus
- func (*BackendHealth) ProtoMessage()
- func (x *BackendHealth) ProtoReflect() protoreflect.Message
- func (x *BackendHealth) Reset()
- func (x *BackendHealth) String() string
- type BackendStatus
- func (BackendStatus) Descriptor() protoreflect.EnumDescriptor
- func (x BackendStatus) Enum() *BackendStatus
- func (BackendStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x BackendStatus) Number() protoreflect.EnumNumber
- func (x BackendStatus) String() string
- func (BackendStatus) Type() protoreflect.EnumType
- type Backend_IpBackend
- type HealthCheck
- func (*HealthCheck) Descriptor() ([]byte, []int)deprecated
- func (m *HealthCheck) GetHealthCheck() isHealthCheck_HealthCheck
- func (x *HealthCheck) GetStatusCheck() *StatusCheck
- func (*HealthCheck) ProtoMessage()
- func (x *HealthCheck) ProtoReflect() protoreflect.Message
- func (x *HealthCheck) Reset()
- func (x *HealthCheck) String() string
- type HealthCheck_StatusCheck
- type HealthChecks
- func (*HealthChecks) Descriptor() ([]byte, []int)deprecated
- func (x *HealthChecks) GetHealthChecks() []*HealthCheck
- func (x *HealthChecks) GetIntervalSecs() int32
- func (*HealthChecks) ProtoMessage()
- func (x *HealthChecks) ProtoReflect() protoreflect.Message
- func (x *HealthChecks) Reset()
- func (x *HealthChecks) String() string
- type IPBackend
- func (*IPBackend) Descriptor() ([]byte, []int)deprecated
- func (x *IPBackend) GetIp() string
- func (x *IPBackend) GetPort() int32
- func (x *IPBackend) GetUrlPath() string
- func (*IPBackend) ProtoMessage()
- func (x *IPBackend) ProtoReflect() protoreflect.Message
- func (x *IPBackend) Reset()
- func (x *IPBackend) String() string
- type LoadBalancerClient
- type LoadBalancerServer
- type PoolHealth
- func (*PoolHealth) Descriptor() ([]byte, []int)deprecated
- func (x *PoolHealth) GetBackends() []*BackendHealth
- func (x *PoolHealth) GetStatus() PoolStatus
- func (*PoolHealth) ProtoMessage()
- func (x *PoolHealth) ProtoReflect() protoreflect.Message
- func (x *PoolHealth) Reset()
- func (x *PoolHealth) String() string
- type PoolHealthReq
- func (*PoolHealthReq) Descriptor() ([]byte, []int)deprecated
- func (x *PoolHealthReq) GetHealthy() bool
- func (x *PoolHealthReq) GetPattern() string
- func (x *PoolHealthReq) GetSick() bool
- func (*PoolHealthReq) ProtoMessage()
- func (x *PoolHealthReq) ProtoReflect() protoreflect.Message
- func (x *PoolHealthReq) Reset()
- func (x *PoolHealthReq) String() string
- type PoolHealthResp
- type PoolStatus
- type PoolType
- type RemoveBackendReq
- func (*RemoveBackendReq) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveBackendReq) GetBackend() *Backend
- func (x *RemoveBackendReq) GetPattern() string
- func (*RemoveBackendReq) ProtoMessage()
- func (x *RemoveBackendReq) ProtoReflect() protoreflect.Message
- func (x *RemoveBackendReq) Reset()
- func (x *RemoveBackendReq) String() string
- type RemoveBackendResp
- type RemovePoolReq
- type RemovePoolResp
- type StatusCheck
- func (*StatusCheck) Descriptor() ([]byte, []int)deprecated
- func (x *StatusCheck) GetHealthyValues() []string
- func (x *StatusCheck) GetUrlPath() string
- func (*StatusCheck) ProtoMessage()
- func (x *StatusCheck) ProtoReflect() protoreflect.Message
- func (x *StatusCheck) Reset()
- func (x *StatusCheck) String() string
- type UnimplementedLoadBalancerServer
- func (UnimplementedLoadBalancerServer) AddBackend(context.Context, *AddBackendReq) (*AddBackendResp, error)
- func (UnimplementedLoadBalancerServer) AddPool(context.Context, *AddPoolReq) (*AddPoolResp, error)
- func (UnimplementedLoadBalancerServer) PoolHealth(context.Context, *PoolHealthReq) (*PoolHealthResp, error)
- func (UnimplementedLoadBalancerServer) RemoveBackend(context.Context, *RemoveBackendReq) (*RemoveBackendResp, error)
- func (UnimplementedLoadBalancerServer) RemovePool(context.Context, *RemovePoolReq) (*RemovePoolResp, error)
- type UnsafeLoadBalancerServer
Constants ¶
This section is empty.
Variables ¶
var ( PoolType_name = map[int32]string{ 0: "PT_UNKNOWN", 1: "PT_P2C", } PoolType_value = map[string]int32{ "PT_UNKNOWN": 0, "PT_P2C": 1, } )
Enum value maps for PoolType.
var ( PoolStatus_name = map[int32]string{ 0: "PS_UNKNOWN", 1: "PS_FULL", 2: "PS_EMPTY", 3: "PS_DEGRADED", } PoolStatus_value = map[string]int32{ "PS_UNKNOWN": 0, "PS_FULL": 1, "PS_EMPTY": 2, "PS_DEGRADED": 3, } )
Enum value maps for PoolStatus.
var ( BackendStatus_name = map[int32]string{ 0: "BS_UNKNOWN", 1: "BS_HEALTHY", 2: "BS_SICK", } BackendStatus_value = map[string]int32{ "BS_UNKNOWN": 0, "BS_HEALTHY": 1, "BS_SICK": 2, } )
Enum value maps for BackendStatus.
var File_lb_proto protoreflect.FileDescriptor
var LoadBalancer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rollout.lb.LoadBalancer", HandlerType: (*LoadBalancerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddPool", Handler: _LoadBalancer_AddPool_Handler, }, { MethodName: "RemovePool", Handler: _LoadBalancer_RemovePool_Handler, }, { MethodName: "AddBackend", Handler: _LoadBalancer_AddBackend_Handler, }, { MethodName: "RemoveBackend", Handler: _LoadBalancer_RemoveBackend_Handler, }, { MethodName: "PoolHealth", Handler: _LoadBalancer_PoolHealth_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "lb.proto", }
LoadBalancer_ServiceDesc is the grpc.ServiceDesc for LoadBalancer service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLoadBalancerServer ¶
func RegisterLoadBalancerServer(s grpc.ServiceRegistrar, srv LoadBalancerServer)
Types ¶
type AddBackendReq ¶
type AddBackendReq struct { // The pattern to add a backend to. Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` // The backend to add to the pool. Backend *Backend `protobuf:"bytes,2,opt,name=backend,proto3" json:"backend,omitempty"` // contains filtered or unexported fields }
AddBackendReq adds a backend to a pool.
func (*AddBackendReq) Descriptor
deprecated
func (*AddBackendReq) Descriptor() ([]byte, []int)
Deprecated: Use AddBackendReq.ProtoReflect.Descriptor instead.
func (*AddBackendReq) GetBackend ¶
func (x *AddBackendReq) GetBackend() *Backend
func (*AddBackendReq) GetPattern ¶
func (x *AddBackendReq) GetPattern() string
func (*AddBackendReq) ProtoMessage ¶
func (*AddBackendReq) ProtoMessage()
func (*AddBackendReq) ProtoReflect ¶
func (x *AddBackendReq) ProtoReflect() protoreflect.Message
func (*AddBackendReq) Reset ¶
func (x *AddBackendReq) Reset()
func (*AddBackendReq) String ¶
func (x *AddBackendReq) String() string
type AddBackendResp ¶
type AddBackendResp struct {
// contains filtered or unexported fields
}
func (*AddBackendResp) Descriptor
deprecated
func (*AddBackendResp) Descriptor() ([]byte, []int)
Deprecated: Use AddBackendResp.ProtoReflect.Descriptor instead.
func (*AddBackendResp) ProtoMessage ¶
func (*AddBackendResp) ProtoMessage()
func (*AddBackendResp) ProtoReflect ¶
func (x *AddBackendResp) ProtoReflect() protoreflect.Message
func (*AddBackendResp) Reset ¶
func (x *AddBackendResp) Reset()
func (*AddBackendResp) String ¶
func (x *AddBackendResp) String() string
type AddPoolReq ¶
type AddPoolReq struct { // The URL pattern to direct traffic too. Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` // The type of traffic distribution pool to use. PoolType PoolType `protobuf:"varint,2,opt,name=pool_type,json=poolType,proto3,enum=rollout.lb.PoolType" json:"pool_type,omitempty"` // Health checks to against backends. HealthChecks *HealthChecks `protobuf:"bytes,4,opt,name=health_checks,json=healthChecks,proto3" json:"health_checks,omitempty"` // contains filtered or unexported fields }
AddPoolReq requests to create a pool for handling requests.
func (*AddPoolReq) Descriptor
deprecated
func (*AddPoolReq) Descriptor() ([]byte, []int)
Deprecated: Use AddPoolReq.ProtoReflect.Descriptor instead.
func (*AddPoolReq) GetHealthChecks ¶
func (x *AddPoolReq) GetHealthChecks() *HealthChecks
func (*AddPoolReq) GetPattern ¶
func (x *AddPoolReq) GetPattern() string
func (*AddPoolReq) GetPoolType ¶
func (x *AddPoolReq) GetPoolType() PoolType
func (*AddPoolReq) ProtoMessage ¶
func (*AddPoolReq) ProtoMessage()
func (*AddPoolReq) ProtoReflect ¶
func (x *AddPoolReq) ProtoReflect() protoreflect.Message
func (*AddPoolReq) Reset ¶
func (x *AddPoolReq) Reset()
func (*AddPoolReq) String ¶
func (x *AddPoolReq) String() string
type AddPoolResp ¶
type AddPoolResp struct {
// contains filtered or unexported fields
}
AddPoolResp is the response to adding a pool.
func (*AddPoolResp) Descriptor
deprecated
func (*AddPoolResp) Descriptor() ([]byte, []int)
Deprecated: Use AddPoolResp.ProtoReflect.Descriptor instead.
func (*AddPoolResp) ProtoMessage ¶
func (*AddPoolResp) ProtoMessage()
func (*AddPoolResp) ProtoReflect ¶
func (x *AddPoolResp) ProtoReflect() protoreflect.Message
func (*AddPoolResp) Reset ¶
func (x *AddPoolResp) Reset()
func (*AddPoolResp) String ¶
func (x *AddPoolResp) String() string
type Backend ¶
type Backend struct { // Types that are assignable to Backend: // *Backend_IpBackend Backend isBackend_Backend `protobuf_oneof:"backend"` // contains filtered or unexported fields }
func (*Backend) Descriptor
deprecated
func (*Backend) GetBackend ¶
func (m *Backend) GetBackend() isBackend_Backend
func (*Backend) GetIpBackend ¶
func (*Backend) ProtoMessage ¶
func (*Backend) ProtoMessage()
func (*Backend) ProtoReflect ¶
func (x *Backend) ProtoReflect() protoreflect.Message
type BackendHealth ¶
type BackendHealth struct { Backend *Backend `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"` Status BackendStatus `protobuf:"varint,2,opt,name=status,proto3,enum=rollout.lb.BackendStatus" json:"status,omitempty"` // contains filtered or unexported fields }
BackendHealth details the health status of a backend.
func (*BackendHealth) Descriptor
deprecated
func (*BackendHealth) Descriptor() ([]byte, []int)
Deprecated: Use BackendHealth.ProtoReflect.Descriptor instead.
func (*BackendHealth) GetBackend ¶
func (x *BackendHealth) GetBackend() *Backend
func (*BackendHealth) GetStatus ¶
func (x *BackendHealth) GetStatus() BackendStatus
func (*BackendHealth) ProtoMessage ¶
func (*BackendHealth) ProtoMessage()
func (*BackendHealth) ProtoReflect ¶
func (x *BackendHealth) ProtoReflect() protoreflect.Message
func (*BackendHealth) Reset ¶
func (x *BackendHealth) Reset()
func (*BackendHealth) String ¶
func (x *BackendHealth) String() string
type BackendStatus ¶
type BackendStatus int32
BackendStatus details the status of a backend.
const ( // This indicates an error by the developers. BackendStatus_BS_UNKNOWN BackendStatus = 0 // The node is healthy according to its health checks. BackendStatus_BS_HEALTHY BackendStatus = 1 // The node is sick according to its health checks. BackendStatus_BS_SICK BackendStatus = 2 )
func (BackendStatus) Descriptor ¶
func (BackendStatus) Descriptor() protoreflect.EnumDescriptor
func (BackendStatus) Enum ¶
func (x BackendStatus) Enum() *BackendStatus
func (BackendStatus) EnumDescriptor
deprecated
func (BackendStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use BackendStatus.Descriptor instead.
func (BackendStatus) Number ¶
func (x BackendStatus) Number() protoreflect.EnumNumber
func (BackendStatus) String ¶
func (x BackendStatus) String() string
func (BackendStatus) Type ¶
func (BackendStatus) Type() protoreflect.EnumType
type Backend_IpBackend ¶
type Backend_IpBackend struct {
IpBackend *IPBackend `protobuf:"bytes,1,opt,name=ip_backend,json=ipBackend,proto3,oneof"`
}
type HealthCheck ¶
type HealthCheck struct { // Types that are assignable to HealthCheck: // *HealthCheck_StatusCheck HealthCheck isHealthCheck_HealthCheck `protobuf_oneof:"health_check"` // contains filtered or unexported fields }
func (*HealthCheck) Descriptor
deprecated
func (*HealthCheck) Descriptor() ([]byte, []int)
Deprecated: Use HealthCheck.ProtoReflect.Descriptor instead.
func (*HealthCheck) GetHealthCheck ¶
func (m *HealthCheck) GetHealthCheck() isHealthCheck_HealthCheck
func (*HealthCheck) GetStatusCheck ¶
func (x *HealthCheck) GetStatusCheck() *StatusCheck
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 HealthCheck_StatusCheck ¶
type HealthCheck_StatusCheck struct {
StatusCheck *StatusCheck `protobuf:"bytes,1,opt,name=status_check,json=statusCheck,proto3,oneof"`
}
type HealthChecks ¶
type HealthChecks struct { HealthChecks []*HealthCheck `protobuf:"bytes,1,rep,name=health_checks,json=healthChecks,proto3" json:"health_checks,omitempty"` IntervalSecs int32 `protobuf:"varint,2,opt,name=interval_secs,json=intervalSecs,proto3" json:"interval_secs,omitempty"` // contains filtered or unexported fields }
func (*HealthChecks) Descriptor
deprecated
func (*HealthChecks) Descriptor() ([]byte, []int)
Deprecated: Use HealthChecks.ProtoReflect.Descriptor instead.
func (*HealthChecks) GetHealthChecks ¶
func (x *HealthChecks) GetHealthChecks() []*HealthCheck
func (*HealthChecks) GetIntervalSecs ¶
func (x *HealthChecks) GetIntervalSecs() int32
func (*HealthChecks) ProtoMessage ¶
func (*HealthChecks) ProtoMessage()
func (*HealthChecks) ProtoReflect ¶
func (x *HealthChecks) ProtoReflect() protoreflect.Message
func (*HealthChecks) Reset ¶
func (x *HealthChecks) Reset()
func (*HealthChecks) String ¶
func (x *HealthChecks) String() string
type IPBackend ¶
type IPBackend struct { // The IP(v4 or v6) to use as the host. Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // The port number to connect on. Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // The url_path to forward to. Generally this is empty. UrlPath string `protobuf:"bytes,3,opt,name=url_path,json=urlPath,proto3" json:"url_path,omitempty"` // contains filtered or unexported fields }
IPBackend provides a Backend that has its endpoint as an ip:port.
func (*IPBackend) Descriptor
deprecated
func (*IPBackend) GetUrlPath ¶
func (*IPBackend) ProtoMessage ¶
func (*IPBackend) ProtoMessage()
func (*IPBackend) ProtoReflect ¶
func (x *IPBackend) ProtoReflect() protoreflect.Message
type LoadBalancerClient ¶
type LoadBalancerClient interface { AddPool(ctx context.Context, in *AddPoolReq, opts ...grpc.CallOption) (*AddPoolResp, error) RemovePool(ctx context.Context, in *RemovePoolReq, opts ...grpc.CallOption) (*RemovePoolResp, error) AddBackend(ctx context.Context, in *AddBackendReq, opts ...grpc.CallOption) (*AddBackendResp, error) RemoveBackend(ctx context.Context, in *RemoveBackendReq, opts ...grpc.CallOption) (*RemoveBackendResp, error) PoolHealth(ctx context.Context, in *PoolHealthReq, opts ...grpc.CallOption) (*PoolHealthResp, error) }
LoadBalancerClient is the client API for LoadBalancer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLoadBalancerClient ¶
func NewLoadBalancerClient(cc grpc.ClientConnInterface) LoadBalancerClient
type LoadBalancerServer ¶
type LoadBalancerServer interface { AddPool(context.Context, *AddPoolReq) (*AddPoolResp, error) RemovePool(context.Context, *RemovePoolReq) (*RemovePoolResp, error) AddBackend(context.Context, *AddBackendReq) (*AddBackendResp, error) RemoveBackend(context.Context, *RemoveBackendReq) (*RemoveBackendResp, error) PoolHealth(context.Context, *PoolHealthReq) (*PoolHealthResp, error) // contains filtered or unexported methods }
LoadBalancerServer is the server API for LoadBalancer service. All implementations must embed UnimplementedLoadBalancerServer for forward compatibility
type PoolHealth ¶
type PoolHealth struct { // The status of the pool. Status PoolStatus `protobuf:"varint,1,opt,name=status,proto3,enum=rollout.lb.PoolStatus" json:"status,omitempty"` // The pool's backend health status. This can contain all backends // or only sick/healthy backends, depending on the request. Backends []*BackendHealth `protobuf:"bytes,2,rep,name=backends,proto3" json:"backends,omitempty"` // contains filtered or unexported fields }
PoolHealth details the health status of a pool.
func (*PoolHealth) Descriptor
deprecated
func (*PoolHealth) Descriptor() ([]byte, []int)
Deprecated: Use PoolHealth.ProtoReflect.Descriptor instead.
func (*PoolHealth) GetBackends ¶
func (x *PoolHealth) GetBackends() []*BackendHealth
func (*PoolHealth) GetStatus ¶
func (x *PoolHealth) GetStatus() PoolStatus
func (*PoolHealth) ProtoMessage ¶
func (*PoolHealth) ProtoMessage()
func (*PoolHealth) ProtoReflect ¶
func (x *PoolHealth) ProtoReflect() protoreflect.Message
func (*PoolHealth) Reset ¶
func (x *PoolHealth) Reset()
func (*PoolHealth) String ¶
func (x *PoolHealth) String() string
type PoolHealthReq ¶
type PoolHealthReq struct { // Pattern is the pool pattern you are getting health for. Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` // If set to true, will return the backends that are healthy. Healthy bool `protobuf:"varint,3,opt,name=healthy,proto3" json:"healthy,omitempty"` // If set to true, will return backends that are sick. Sick bool `protobuf:"varint,4,opt,name=sick,proto3" json:"sick,omitempty"` // contains filtered or unexported fields }
PoolHealthReq is a request to get the health of a pool.
func (*PoolHealthReq) Descriptor
deprecated
func (*PoolHealthReq) Descriptor() ([]byte, []int)
Deprecated: Use PoolHealthReq.ProtoReflect.Descriptor instead.
func (*PoolHealthReq) GetHealthy ¶
func (x *PoolHealthReq) GetHealthy() bool
func (*PoolHealthReq) GetPattern ¶
func (x *PoolHealthReq) GetPattern() string
func (*PoolHealthReq) GetSick ¶
func (x *PoolHealthReq) GetSick() bool
func (*PoolHealthReq) ProtoMessage ¶
func (*PoolHealthReq) ProtoMessage()
func (*PoolHealthReq) ProtoReflect ¶
func (x *PoolHealthReq) ProtoReflect() protoreflect.Message
func (*PoolHealthReq) Reset ¶
func (x *PoolHealthReq) Reset()
func (*PoolHealthReq) String ¶
func (x *PoolHealthReq) String() string
type PoolHealthResp ¶
type PoolHealthResp struct { Health *PoolHealth `protobuf:"bytes,1,opt,name=health,proto3" json:"health,omitempty"` // contains filtered or unexported fields }
func (*PoolHealthResp) Descriptor
deprecated
func (*PoolHealthResp) Descriptor() ([]byte, []int)
Deprecated: Use PoolHealthResp.ProtoReflect.Descriptor instead.
func (*PoolHealthResp) GetHealth ¶
func (x *PoolHealthResp) GetHealth() *PoolHealth
func (*PoolHealthResp) ProtoMessage ¶
func (*PoolHealthResp) ProtoMessage()
func (*PoolHealthResp) ProtoReflect ¶
func (x *PoolHealthResp) ProtoReflect() protoreflect.Message
func (*PoolHealthResp) Reset ¶
func (x *PoolHealthResp) Reset()
func (*PoolHealthResp) String ¶
func (x *PoolHealthResp) String() string
type PoolStatus ¶
type PoolStatus int32
const ( // This indicates an error by the developers. PoolStatus_PS_UNKNOWN PoolStatus = 0 // The pool has all its configured backends working. PoolStatus_PS_FULL PoolStatus = 1 // The pool has no configured backends. PoolStatus_PS_EMPTY PoolStatus = 2 // The pool has one or more configured backends not working. PoolStatus_PS_DEGRADED PoolStatus = 3 )
func (PoolStatus) Descriptor ¶
func (PoolStatus) Descriptor() protoreflect.EnumDescriptor
func (PoolStatus) Enum ¶
func (x PoolStatus) Enum() *PoolStatus
func (PoolStatus) EnumDescriptor
deprecated
func (PoolStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use PoolStatus.Descriptor instead.
func (PoolStatus) Number ¶
func (x PoolStatus) Number() protoreflect.EnumNumber
func (PoolStatus) String ¶
func (x PoolStatus) String() string
func (PoolStatus) Type ¶
func (PoolStatus) Type() protoreflect.EnumType
type PoolType ¶
type PoolType int32
PoolType indicates what type of pool to use. This influences how the pool distributes its workload.
func (PoolType) Descriptor ¶
func (PoolType) Descriptor() protoreflect.EnumDescriptor
func (PoolType) EnumDescriptor
deprecated
func (PoolType) Number ¶
func (x PoolType) Number() protoreflect.EnumNumber
func (PoolType) Type ¶
func (PoolType) Type() protoreflect.EnumType
type RemoveBackendReq ¶
type RemoveBackendReq struct { // The pool pattern to remove the backend from. Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` // The backend to remove from the pool. Backend *Backend `protobuf:"bytes,2,opt,name=backend,proto3" json:"backend,omitempty"` // contains filtered or unexported fields }
RemoveBackendReq is used to remove a Backend from a Pool.
func (*RemoveBackendReq) Descriptor
deprecated
func (*RemoveBackendReq) Descriptor() ([]byte, []int)
Deprecated: Use RemoveBackendReq.ProtoReflect.Descriptor instead.
func (*RemoveBackendReq) GetBackend ¶
func (x *RemoveBackendReq) GetBackend() *Backend
func (*RemoveBackendReq) GetPattern ¶
func (x *RemoveBackendReq) GetPattern() string
func (*RemoveBackendReq) ProtoMessage ¶
func (*RemoveBackendReq) ProtoMessage()
func (*RemoveBackendReq) ProtoReflect ¶
func (x *RemoveBackendReq) ProtoReflect() protoreflect.Message
func (*RemoveBackendReq) Reset ¶
func (x *RemoveBackendReq) Reset()
func (*RemoveBackendReq) String ¶
func (x *RemoveBackendReq) String() string
type RemoveBackendResp ¶
type RemoveBackendResp struct {
// contains filtered or unexported fields
}
RemoveBackendResp is the response to removing a Backend.
func (*RemoveBackendResp) Descriptor
deprecated
func (*RemoveBackendResp) Descriptor() ([]byte, []int)
Deprecated: Use RemoveBackendResp.ProtoReflect.Descriptor instead.
func (*RemoveBackendResp) ProtoMessage ¶
func (*RemoveBackendResp) ProtoMessage()
func (*RemoveBackendResp) ProtoReflect ¶
func (x *RemoveBackendResp) ProtoReflect() protoreflect.Message
func (*RemoveBackendResp) Reset ¶
func (x *RemoveBackendResp) Reset()
func (*RemoveBackendResp) String ¶
func (x *RemoveBackendResp) String() string
type RemovePoolReq ¶
type RemovePoolReq struct { // Pattern is the pattern to remove. Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"` // contains filtered or unexported fields }
RemovePoolReq is used to remove a pool by its pattern.
func (*RemovePoolReq) Descriptor
deprecated
func (*RemovePoolReq) Descriptor() ([]byte, []int)
Deprecated: Use RemovePoolReq.ProtoReflect.Descriptor instead.
func (*RemovePoolReq) GetPattern ¶
func (x *RemovePoolReq) GetPattern() string
func (*RemovePoolReq) ProtoMessage ¶
func (*RemovePoolReq) ProtoMessage()
func (*RemovePoolReq) ProtoReflect ¶
func (x *RemovePoolReq) ProtoReflect() protoreflect.Message
func (*RemovePoolReq) Reset ¶
func (x *RemovePoolReq) Reset()
func (*RemovePoolReq) String ¶
func (x *RemovePoolReq) String() string
type RemovePoolResp ¶
type RemovePoolResp struct {
// contains filtered or unexported fields
}
RemovePoolResp is the response to removing a pool.
func (*RemovePoolResp) Descriptor
deprecated
func (*RemovePoolResp) Descriptor() ([]byte, []int)
Deprecated: Use RemovePoolResp.ProtoReflect.Descriptor instead.
func (*RemovePoolResp) ProtoMessage ¶
func (*RemovePoolResp) ProtoMessage()
func (*RemovePoolResp) ProtoReflect ¶
func (x *RemovePoolResp) ProtoReflect() protoreflect.Message
func (*RemovePoolResp) Reset ¶
func (x *RemovePoolResp) Reset()
func (*RemovePoolResp) String ¶
func (x *RemovePoolResp) String() string
type StatusCheck ¶
type StatusCheck struct { UrlPath string `protobuf:"bytes,1,opt,name=url_path,json=urlPath,proto3" json:"url_path,omitempty"` HealthyValues []string `protobuf:"bytes,2,rep,name=healthy_values,json=healthyValues,proto3" json:"healthy_values,omitempty"` // contains filtered or unexported fields }
StatusCheck is a check against a URL path. That path must emit in its body one of the healthy_values or it fails.
func (*StatusCheck) Descriptor
deprecated
func (*StatusCheck) Descriptor() ([]byte, []int)
Deprecated: Use StatusCheck.ProtoReflect.Descriptor instead.
func (*StatusCheck) GetHealthyValues ¶
func (x *StatusCheck) GetHealthyValues() []string
func (*StatusCheck) GetUrlPath ¶
func (x *StatusCheck) GetUrlPath() string
func (*StatusCheck) ProtoMessage ¶
func (*StatusCheck) ProtoMessage()
func (*StatusCheck) ProtoReflect ¶
func (x *StatusCheck) ProtoReflect() protoreflect.Message
func (*StatusCheck) Reset ¶
func (x *StatusCheck) Reset()
func (*StatusCheck) String ¶
func (x *StatusCheck) String() string
type UnimplementedLoadBalancerServer ¶
type UnimplementedLoadBalancerServer struct { }
UnimplementedLoadBalancerServer must be embedded to have forward compatible implementations.
func (UnimplementedLoadBalancerServer) AddBackend ¶
func (UnimplementedLoadBalancerServer) AddBackend(context.Context, *AddBackendReq) (*AddBackendResp, error)
func (UnimplementedLoadBalancerServer) AddPool ¶
func (UnimplementedLoadBalancerServer) AddPool(context.Context, *AddPoolReq) (*AddPoolResp, error)
func (UnimplementedLoadBalancerServer) PoolHealth ¶
func (UnimplementedLoadBalancerServer) PoolHealth(context.Context, *PoolHealthReq) (*PoolHealthResp, error)
func (UnimplementedLoadBalancerServer) RemoveBackend ¶
func (UnimplementedLoadBalancerServer) RemoveBackend(context.Context, *RemoveBackendReq) (*RemoveBackendResp, error)
func (UnimplementedLoadBalancerServer) RemovePool ¶
func (UnimplementedLoadBalancerServer) RemovePool(context.Context, *RemovePoolReq) (*RemovePoolResp, error)
type UnsafeLoadBalancerServer ¶
type UnsafeLoadBalancerServer interface {
// contains filtered or unexported methods
}
UnsafeLoadBalancerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LoadBalancerServer will result in compilation errors.