Documentation ¶
Index ¶
- Constants
- Variables
- func CreateRouterConfig(strategy string, data []byte) (interface{}, error)
- func RegisterRouter(name string, factory RouterFactory) error
- func RegisterRouterConfig(strategy string, creator ConfigObjectCreator) error
- type Config
- type ConfigObjectCreator
- type Router
- type RouterFactory
Constants ¶
View Source
const (
APP_ID = app.ID(3)
)
Variables ¶
View Source
var (
ErrRouterNotFound = errors.New("Router not found.")
)
Functions ¶
func CreateRouterConfig ¶
func RegisterRouter ¶
func RegisterRouter(name string, factory RouterFactory) error
func RegisterRouterConfig ¶
func RegisterRouterConfig(strategy string, creator ConfigObjectCreator) error
Types ¶
type ConfigObjectCreator ¶
type Router ¶
type Router interface { common.Releasable TakeDetour(v2net.Destination) (string, error) }
Click to show internal directories.
Click to hide internal directories.