base

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package base defines base variables that will be used in lb package

Index

Constants

View Source
const CEEMSLoadBalancerAppName = "ceems_lb"

CEEMSLoadBalancerAppName is kingpin app name.

Variables

View Source
var CEEMSLoadBalancerApp = *kingpin.New(
	CEEMSLoadBalancerAppName,
	"CEEMS load balancer for TSDB and Pyroscope servers with access control support.",
)

CEEMSLoadBalancerApp is kingpin CLI app.

View Source
var LBStrategyMap = map[string]LBStrategy{
	"round-robin":      RoundRobin,
	"least-connection": LeastConnection,
}

LBStrategyMap defines the map to translate the value in config to enum.

Functions

This section is empty.

Types

type LBStrategy

type LBStrategy int

LBStrategy is strategy of load balancer server.

const (
	RoundRobin LBStrategy
	LeastConnection
)

LB types enum.

func (LBStrategy) String

func (l LBStrategy) String() string

type LBType

type LBType int

LBType is type of load balancer server.

const (
	PromLB LBType
	PyroLB
)

LB types enum.

func (LBType) String

func (l LBType) String() string

Jump to

Keyboard shortcuts

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