Documentation ¶
Overview ¶
Package webserver contains the web server powering probes, backups and metrics
Index ¶
Constants ¶
View Source
const ( // DefaultReadTimeout is the default value to be used by the webservers DefaultReadTimeout = 20 * time.Second // DefaultReadHeaderTimeout is the default value to be used by the webservers DefaultReadHeaderTimeout = 3 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Webserver ¶
type Webserver struct {
// contains filtered or unexported fields
}
Webserver contains a server that interacts with postgres instance
func NewLocalWebServer ¶
NewLocalWebServer returns a webserver that allows connection only from localhost
func NewRemoteWebServer ¶
func NewRemoteWebServer( instance *postgres.Instance, cancelFunc context.CancelFunc, exitedConditions concurrency.MultipleExecuted, ) (*Webserver, error)
NewRemoteWebServer returns a webserver that allows connection from external clients
func NewWebServer ¶
NewWebServer creates a Webserver given a postgres.Instance and a http.Server
Directories ¶
Path | Synopsis |
---|---|
Package metricserver contains the web server powering metrics
|
Package metricserver contains the web server powering metrics |
Click to show internal directories.
Click to hide internal directories.