http

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(c *cmd.Command, args []string) error

Main for http

func WARN

func WARN(err error)

WARN log warn error

Types

type CarParkServer

type CarParkServer struct {
	*httpserver.Server
}

CarParkServer define

func NewCarParkServer

func NewCarParkServer(srv *httpserver.Server) *CarParkServer

NewCarParkServer create a new CarParkServer

func (*CarParkServer) Nearest

func (srv *CarParkServer) Nearest(ctx context.Context, wr http.ResponseWriter, req *http.Request)

Nearest handler

func (*CarParkServer) Open

func (srv *CarParkServer) Open() error

Open register route

Jump to

Keyboard shortcuts

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