router

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

View Source
const (
	RouterPrefix = "/apinto/"
)

Variables

This section is empty.

Functions

func DeletePath

func DeletePath(id string)

func GetHandler

func GetHandler() *router

func SetPath

func SetPath(id string, path string, handler http.Handler) error

Types

type IRouter

type IRouter interface {
	http.Handler
	Set(id string, path string, handler http.Handler) error
	Delete(id string)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳