plugins

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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 CmdHandler interface {
	HandleCmd(ctx context.Context, args []string)
}

type CmdHandlerFunc added in v0.21.0

type CmdHandlerFunc func(ctx context.Context, args []string)

func (CmdHandlerFunc) HandleCmd added in v0.21.0

func (f CmdHandlerFunc) HandleCmd(ctx context.Context, args []string)

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

type RouteProviderFunc func(ctx context.Context, spec *dalec.Spec) ([]frontend.Route, error)

RouteProviderFunc is a convenience adapter for RouteProvider.

func (RouteProviderFunc) Routes added in v0.21.0

func (f RouteProviderFunc) Routes(ctx context.Context, spec *dalec.Spec) ([]frontend.Route, error)

type Type

type Type = plugin.Type

Jump to

Keyboard shortcuts

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