router

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP_ID = app.ID(3)
)

Variables

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

Functions

func CreateRouterConfig added in v1.9.1

func CreateRouterConfig(strategy string, data []byte) (interface{}, error)

func RegisterRouter added in v0.14.1

func RegisterRouter(name string, factory RouterFactory) error

func RegisterRouterConfig added in v1.9.1

func RegisterRouterConfig(strategy string, creator ConfigObjectCreator) error

Types

type Config

type Config struct {
	Strategy string
	Settings interface{}
}

type ConfigObjectCreator added in v1.9.1

type ConfigObjectCreator func([]byte) (interface{}, error)

type Router

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

func CreateRouter added in v0.14.1

func CreateRouter(name string, rawConfig interface{}, space app.Space) (Router, error)

type RouterFactory added in v0.14.1

type RouterFactory interface {
	Create(rawConfig interface{}, space app.Space) (Router, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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