router

package
v0.0.0-...-f13fc7a Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteRouter

func DeleteRouter(instanceID string)

func InitRouter

func InitRouter()

func MatchRouter

func MatchRouter(Type, method, url string) *http_router.RouterInfo

func RegisterRouter

func RegisterRouter(instanceID string, apis []*types.Api) error

Types

type PluginRouter

type PluginRouter struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter() *PluginRouter

func (*PluginRouter) Delete

func (r *PluginRouter) Delete(instanceID string)

func (*PluginRouter) Match

func (r *PluginRouter) Match(Type, method, url string) *http_router.RouterInfo

func (*PluginRouter) Register

func (r *PluginRouter) Register(instanceID string, apis []*types.Api) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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