webserver

package
v0.2.0-dev.30 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebServer

type WebServer struct {
	Config        *common.ConfigurationStruct
	LoggingClient logger.LoggingClient
	// contains filtered or unexported fields
}

WebServer handles the webserver configuration

func (*WebServer) ConfigureStandardRoutes

func (webserver *WebServer) ConfigureStandardRoutes()

ConfigureStandardRoutes loads up some default routes

func (*WebServer) SetupTriggerRoute

func (webserver *WebServer) SetupTriggerRoute(handlerForTrigger func(http.ResponseWriter, *http.Request))

SetupTriggerRoute adds a route to handle trigger pipeline from HTTP request

func (*WebServer) StartHTTPServer

func (webserver *WebServer) StartHTTPServer(errChannel chan error)

StartHTTPServer starts the http server

Jump to

Keyboard shortcuts

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