apirouter

package
v0.0.0-...-fa1582b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDoc

func GetDoc(path, method string) string

func RegisterRoutes

func RegisterRoutes(router *mux.Router, path string, ctrl *common.ServerController)

Types

type Route

type Route struct {
	Path        string `json:"path"`
	PathRegexp  string `json:"pathRegex"`
	Method      string `json:"method"`
	Description string `json:"description"`
}

type WalkResponse

type WalkResponse struct {
	Routes []*Route `json:"routes"`
}

Jump to

Keyboard shortcuts

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