server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetURLParams

func GetURLParams(request *http.Request) map[string]string

GetURLParams returns request params from given HTTP request

Types

type HTTPServer

type HTTPServer struct {
	Port int
}

HTTPServer server configuration

func (HTTPServer) AddHandler

func (server HTTPServer) AddHandler(method, path string, h apiHandler)

AddHandler adds a http handler

func (HTTPServer) Init

func (server HTTPServer) Init()

Init starts http server

func (HTTPServer) ServeStatic

func (server HTTPServer) ServeStatic()

ServeStatic turns on serving Radish panel static files

Jump to

Keyboard shortcuts

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