backend

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: 12 Imported by: 0

Documentation

Overview

Package backend implements the backend TSDB server of load balancer app

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TSDBServer

type TSDBServer interface {
	SetAlive(bool)
	IsAlive() bool
	URL() *url.URL
	String() string
	ActiveConnections() int
	RetentionPeriod() time.Duration
	Serve(http.ResponseWriter, *http.Request)
}

TSDBServer is the interface each backend TSDB server needs to implement

func NewTSDBServer

func NewTSDBServer(webURL *url.URL, p *httputil.ReverseProxy, logger log.Logger) TSDBServer

NewTSDBServer returns an instance of backend TSDB server

Jump to

Keyboard shortcuts

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