app

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string, options Options) error

Run handles the RTCBench CLI, serving the API and bundled app when no config is given It reads <data>/rtcbench.yml and stops on context cancellation or an interrupt

Types

type Options

type Options struct {
	Examples fs.FS
	// Deployments supplies optional deployment support for plugins
	Deployments []deployment.Plugin
	Version     string
	// Web serves a frontend built and embedded by the caller
	Web fs.FS
	// Plugins supplies plugin.yml manifests for the plugins compiled into the binary
	Plugins fs.FS
	// Register adds plugins and scenarios to each new client, including API runs
	// It may be called concurrently, so register factories rather than shared instances
	Register func(*core.Client)
}

Jump to

Keyboard shortcuts

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