Documentation
¶
Index ¶
Constants ¶
View Source
const ( TypeCmd = "cmd" // TypeRouteProvider is a plugin type for route providers. // The returned plugin must implement the RouteProvider interface. TypeRouteProvider = "route-provider" )
Variables ¶
View Source
var Graph = registry.Graph
View Source
var Register = registry.Register
Functions ¶
This section is empty.
Types ¶
type CmdHandler ¶ added in v0.21.0
type CmdHandlerFunc ¶ added in v0.21.0
type InitContext ¶
type InitContext = plugin.InitContext
type Registration ¶
type Registration = plugin.Registration
type RouteProvider ¶ added in v0.21.0
type RouteProvider interface {
Routes(ctx context.Context, spec *dalec.Spec) ([]frontend.Route, error)
}
RouteProvider is implemented by plugins that supply flat routes for the Router.
type RouteProviderFunc ¶ added in v0.21.0
RouteProviderFunc is a convenience adapter for RouteProvider.
Click to show internal directories.
Click to hide internal directories.