webengine

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebEngine

type WebEngine struct {
	// contains filtered or unexported fields
}

func New

func New(config config.WebServerConfig, authEndpoint string, influxChannel chan []byte) *WebEngine

func (*WebEngine) ServeHTTP

func (we *WebEngine) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP is used to allow the router to start accepting requests before the start is started up. This will help with testing.

func (*WebEngine) Start

func (we *WebEngine) Start() <-chan error

Start will start the web server using the configuration provided. It returns a channel that will give the error if there is one

Jump to

Keyboard shortcuts

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