router

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RouterNotFound = errors.New("Router not found.")
)

Functions

func RegisterRouter added in v0.14.1

func RegisterRouter(name string, factory RouterFactory) error

Types

type Config

type Config interface {
	Strategy() string
	Settings() interface{}
}

type Router

type Router interface {
	TakeDetour(v2net.Destination) (string, error)
}

func CreateRouter added in v0.14.1

func CreateRouter(name string, rawConfig interface{}) (Router, error)

type RouterFactory added in v0.14.1

type RouterFactory interface {
	Create(rawConfig interface{}) (Router, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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