router

package
v1.0.0-rc.37 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetApiRouter

func SetApiRouter(router *gin.Engine)

func SetDashboardRouter

func SetDashboardRouter(router *gin.Engine)

func SetPluginRouter

func SetPluginRouter(outer *gin.Engine) gin.HandlerFunc

func SetRelayRouter

func SetRelayRouter(router *gin.Engine)

func SetRouter

func SetRouter(router *gin.Engine, assets WebAssets)

func SetTaskPluginProtocolRouter

func SetTaskPluginProtocolRouter(router *gin.Engine)

func SetTaskRouter

func SetTaskRouter(router *gin.Engine)

SetTaskRouter registers the generic task-plugin API surface.

Gin requires every route sharing a path position to use the same wildcard name, so the first segment is uniformly ":key"; it carries the plugin key on submit routes and the task id on read routes.

func SetVideoRouter

func SetVideoRouter(router *gin.Engine)

func SetWebRouter

func SetWebRouter(router *gin.Engine, assets WebAssets, pluginDispatcher gin.HandlerFunc)

Types

type WebAssets

type WebAssets struct {
	BuildFS   embed.FS
	IndexPage []byte
}

WebAssets holds the embedded dashboard frontend assets.

Jump to

Keyboard shortcuts

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