rapid

package
v0.0.0-...-bef5c4b Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package rapid implements synchronous even dispatch loop.

Package rapid implements synchronous even dispatch loop.

Index

Constants

View Source
const (
	RuntimeDomain  = "runtime"
	OperatorDomain = "operator"
)

Variables

This section is empty.

Functions

func Start

Start pings Supervisor, and starts the Runtime API server. It allows the caller to configure: - Supervisor implementation: performs container construction & process management - Telemetry API and Logs API implementation: handling /logs and /telemetry of Runtime API - Events API implementation: handles platform log events emitted by Rapid (e.g. RuntimeDone, InitStart) - Logs Egress implementation: handling stdout/stderr logs from extension & runtime processes (TODO: remove & unify with Supervisor) - Tracer implementation: handling trace segments generate by platform (TODO: remove & unify with Events API) - InteropServer implementation: legacy interface for sending internal protocol messages, today only RuntimeReady remains (TODO: move RuntimeReady outside Core) - Feature flags:

  • StandaloneMode: indicates if being called by Rapid Core's standalone HTTP frontend (TODO: remove after unifying error reporting)
  • InitCachingEnabled: indicates if handlers must run Init Caching specific logic
  • TelemetryAPIEnabled: indicates if /telemetry and /logs endpoint HTTP handlers must be mounted

- Contexts & Data:

  • ctx is used to gracefully terminate Runtime API HTTP Server on exit

Types

type Sandbox

type Sandbox struct {
	EnableTelemetryAPI       bool
	StandaloneMode           bool
	InteropServer            interop.Server
	Tracer                   telemetry.Tracer
	LogsSubscriptionAPI      telemetry.SubscriptionAPI
	TelemetrySubscriptionAPI telemetry.SubscriptionAPI
	LogsEgressAPI            telemetry.StdLogsEgressAPI
	RuntimeStdoutWriter      io.Writer
	RuntimeStderrWriter      io.Writer
	Handler                  string
	EventsAPI                interop.EventsAPI
	InitCachingEnabled       bool
	Supervisor               supvmodel.ProcessSupervisor
	RuntimeFsRootPath        string // path to the root of the domain within the root mnt namespace. Reqired to find extensions
	RuntimeAPIHost           string
	RuntimeAPIPort           int
}

Jump to

Keyboard shortcuts

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