httpserver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBindAddress = ":8080"

DefaultBindAddress sets the default bind address for the HTTP server listener

Functions

This section is empty.

Types

type Options

type Options struct {
	BindAddress string
}

Options use to provides Runner creation options

type Server

type Server interface {
	manager.Runnable
	Handle(path string, handler http.Handler)
	HandleFunc(path string, handlerFunc http.HandlerFunc)
}

Server inferface for the http server Allows to register http.Hander and http.HandlerFunc

func New

func New(options Options) Server

New returns new Runner instance

Jump to

Keyboard shortcuts

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