routing

package
v0.0.0-...-2f20b05 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: GPL-3.0 Imports: 13 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 NewDosRouter

func NewDosRouter(dos manager.Dos, logger *zap.Logger) Router

func NewHookRouter

func NewHookRouter(hook manager.Hook, logger *zap.Logger) Router

Jump to

Keyboard shortcuts

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