webserver

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package webserver contains the web server powering probes, backups and metrics

Index

Constants

This section is empty.

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

func NewLocalWebServer(instance *postgres.Instance) (*Webserver, error)

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

func NewWebServer(instance *postgres.Instance, server *http.Server) *Webserver

NewWebServer creates a Webserver given a postgres.Instance and a http.Server

func (*Webserver) Start

func (ws *Webserver) Start(ctx context.Context) error

Start implements the runnable interface

Directories

Path Synopsis
Package metricserver contains the web server powering metrics
Package metricserver contains the web server powering metrics

Jump to

Keyboard shortcuts

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