server

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server struct

func NewServer

func NewServer(port int) *Server

NewServer creates the http listener

func (*Server) AddRoute

func (serv *Server) AddRoute(path string, handle http.Handler)

AddRoute ads an handler with path to the muxer

func (*Server) Run

func (serv *Server) Run()

Run the server

Jump to

Keyboard shortcuts

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