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 ¶
func Start(ctx context.Context, deps Dependencies) (interop.RapidContext, error)
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
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.