routing

package
v0.0.0-...-3d8c618 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Path    string
	Handler func(http.ResponseWriter, *http.Request)
}

type Manager

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

func NewManager

func NewManager() *Manager

func (*Manager) Add

func (m *Manager) Add(router Router)

func (*Manager) Get

func (m *Manager) Get() *mux.Router

type Router

type Router interface {
	Get() []*Definition
}

func NewDfsRouter

func NewDfsRouter(dfs manager.Dfs) Router

Jump to

Keyboard shortcuts

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