service

package
v0.0.0-...-6d33778 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheck

func HealthCheck(w http.ResponseWriter, r *http.Request)

func NewRouter

func NewRouter() *mux.Router

func RegistryCheck

func RegistryCheck(w http.ResponseWriter, r *http.Request)

func StartWebServer

func StartWebServer()

Types

type Route

type Route struct {
	Name        string           // 方法名称
	Method      string           // 路径
	Pattern     string           // 路由适配
	HandlerFunc http.HandlerFunc // 调用方法
}

type Routies

type Routies = []Route

Jump to

Keyboard shortcuts

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