router

package
v0.0.0-...-31c1c1e Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router interface {
	// FileRoutes
	FileRoutes() map[string]string

	// DirRoutes
	DirRoutes() map[string]string

	// StaticRoute
	StaticRoute() (string, string)
}
var DefaultRouter Router = NewDummyRouter()

func New

func New(blockedPrefixes []string, routes map[string]string, static string) (Router, error)

func NewDummyRouter

func NewDummyRouter() Router

Jump to

Keyboard shortcuts

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