service

package
v0.0.0-...-dc485c7 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(result interface{}, err error) (r interface{})

@params

@return

func RegisterHandler

func RegisterHandler(path string, method string, f http.Handler)

func RegisterHandlerFunction

func RegisterHandlerFunction(path string, method string, f func(http.ResponseWriter, *http.Request))

func Router

func Router(port string) *mux.Router

Endpoints router function @params

Port number to bind

@return

func StartServer

func StartServer(port string)

StartWebServer starts a webserver on the specified port. @params

@return

Types

This section is empty.

Jump to

Keyboard shortcuts

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