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 Server ¶ added in v0.5.1
type Server interface { SetAlive(alive bool) IsAlive() bool URL() *url.URL String() string ActiveConnections() int RetentionPeriod() time.Duration Serve(w http.ResponseWriter, r *http.Request) }
Server is the interface each backend server (TSDB/Pyroscope) needs to implement.
func NewPyroscope ¶ added in v0.5.1
NewPyroscope returns an instance of backend Pyroscope server.
Click to show internal directories.
Click to hide internal directories.