serverpool

package
v0.1.0-rc.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package serverpool implements the interface that manages pool of backend servers of load balancer app

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	Backends() []backend.TSDBServer
	Target(time.Duration) backend.TSDBServer
	Add(backend.TSDBServer)
	Size() int
}

Manager is the interface every strategy must implement

func NewManager

func NewManager(strategy string, logger log.Logger) (Manager, error)

NewManager returns a new instance of server pool manager

Jump to

Keyboard shortcuts

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