runner

package
v0.510.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Package runner contains a server that implements the RunnerService and proxies VerbService requests to user code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, config Config, deploymentArtifactProvider oci.DeploymentArtefactProvider, deploymentContextProvider deploymentcontext.DeploymentContextProvider, module *schema.Module) error

Types

type Config

type Config struct {
	Config                []string                `` /* 139-byte string literal not displayed */
	Bind                  *url.URL                `help:"Endpoint the Runner should bind to and advertise." default:"http://127.0.0.1:8892" env:"FTL_BIND"`
	HealthBind            *url.URL                `help:"Endpoint the Runner should bind to for health check" env:"FTL_HEALTH_BIND"`
	Key                   key.Runner              `help:"Runner key (auto)."`
	LeaseEndpoint         *url.URL                `name:"ftl-lease-endpoint" help:"Lease endpoint endpoint." env:"FTL_LEASE_ENDPOINT" default:"http://127.0.0.1:8895"`
	TimelineConfig        timeline.Config         `embed:""`
	DeploymentKeepHistory int                     `help:"Number of deployments to keep history for." default:"3"`
	HeartbeatPeriod       time.Duration           `help:"Minimum period between heartbeats." default:"3s"`
	HeartbeatJitter       time.Duration           `help:"Jitter to add to heartbeat period." default:"2s"`
	Deployment            key.Deployment          `help:"The deployment this runner is for." env:"FTL_DEPLOYMENT"`
	DebugPort             int                     `help:"The port to use for debugging." env:"FTL_DEBUG_PORT"`
	DevEndpoint           optional.Option[string] `help:"An existing endpoint to connect to in development mode" hidden:""`
	DevHotReloadEndpoint  optional.Option[string] `help:"The gRPC enpoint to send runner into to for hot reload." hidden:""`
	LocalRunners          bool                    `help:"Set to true if we are running with local runners" hidden:""`
	DevModeSchemaSequence int64                   `help:"Schema sequence number for dev mode runner. " hidden:""`
	DevModeRunnerSequence int64                   `help:"Runner sequence number for dev mode runner. " hidden:""`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) Call

func (*Service) Close

func (s *Service) Close() error

func (*Service) Ping

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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