router

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: May 11, 2019 License: MIT 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 struct {
	// contains filtered or unexported fields
}

Router routes to some plugin TODO: implement prefix tree based router

func NewRouter

func NewRouter() (*Router, error)

NewRouter ...

func (*Router) AddRoute

func (r *Router) AddRoute(mask string, f source.Plugin) error

AddRoute add plugin for a given path mask

func (*Router) Factory

func (r *Router) Factory(path string) source.Plugin

Plugin returns plugin for given route

Jump to

Keyboard shortcuts

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