Documentation ¶
Overview ¶
Package backend implements the backend TSDB server of load balancer app
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTypeAssertion = errors.New("failed type assertion")
)
Custom errors.
Functions ¶
This section is empty.
Types ¶
type TSDBServer ¶
type TSDBServer interface { SetAlive(alive bool) IsAlive() bool URL() *url.URL String() string ActiveConnections() int RetentionPeriod() time.Duration Serve(w http.ResponseWriter, r *http.Request) }
TSDBServer is the interface each backend TSDB server needs to implement.
func New ¶ added in v0.2.0
func New(webURL *url.URL, p *httputil.ReverseProxy, logger log.Logger) TSDBServer
New returns an instance of backend TSDB server.
Click to show internal directories.
Click to hide internal directories.