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
Click to show internal directories.
Click to hide internal directories.