httpserver

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlMessage

type ControlMessage int
const (
	ControlMessageQuit  ControlMessage = iota
	ControlMessageStart ControlMessage = iota
	ControlMessageReady ControlMessage = iota
	ControlMessageDone  ControlMessage = iota
)

type Server

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

func New

func New(version string, address string, port int, nr newrelic.Application) *Server

*****************************************************************************

*
* Create a new HTTPserver instance
*
*****************************************************************************

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

*****************************************************************************

*
* Pass requests to the handler
*
*****************************************************************************

func (*Server) Start

func (s *Server) Start(controlChan chan ControlMessage) error

*****************************************************************************

*
* Start the HTTP server
*
*****************************************************************************

Jump to

Keyboard shortcuts

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