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: 28 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

Index

Constants

View Source
const (
	InitTimeoutProperty = "InitTimeoutSeconds"
)
View Source
const RuntimePoolSize = 10_000

Variables

View Source
var ErrorInvalidEntryPoint = errors.New("invalid entrypoint, runtime process spawn failed")

Functions

func NewInitMetrics

func NewInitMetrics(logger servicelogs.Logger) *initMetrics

func NewShutdownMetrics

func NewShutdownMetrics(logger servicelogs.Logger, reason model.AppError) *shutdownMetrics

func Start

Types

type Dependencies

type Dependencies struct {
	InteropServer            interop.Server
	TelemetrySubscriptionAPI telemetry.SubscriptionAPI
	LogsEgressAPI            telemetry.StdLogsEgressAPI
	EventsAPI                interop.EventsAPI
	Supervisor               supvmodel.ProcessSupervisor
	FileUtils                utils.FileUtil

	InvokeRouter    *invoke.LongInvokerRouter
	MetadataService *lmds.Service

	RuntimeAPIAddrPort netip.AddrPort
}

type InvokeRouter

type InvokeRouter interface {
	Invoke(ctx context.Context, initData interop.InitStaticDataProvider, invokeReq interop.InvokeRequest, metrics interop.InvokeMetrics, responseWriter http.ResponseWriter) (err model.AppError, wasResponseSent bool, invokePending bool)
	Reconnect(ctx context.Context, invokeID interop.InvokeID, responseWriter http.ResponseWriter, metrics interop.ReconnectMetrics) interop.ReconnectResult
	AbortRunningInvokes(metrics interop.ShutdownMetrics, err model.AppError)
	GetActiveRuntimeCount() int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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