runner

package
v0.397.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 37 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) 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:8893" env:"FTL_RUNNER_BIND"`
	Key                   model.RunnerKey          `help:"Runner key (auto)."`
	ControllerEndpoint    *url.URL                 `name:"ftl-endpoint" help:"Controller endpoint." env:"FTL_ENDPOINT" default:"http://127.0.0.1:8892"`
	ControllerPublicKey   *identity.PublicKey      `name:"ftl-public-key" help:"Controller public key in Base64. Temporarily optional." env:"FTL_CONTROLLER_PUBLIC_KEY"`
	TemplateDir           string                   `help:"Template directory to copy into each deployment, if any." type:"existingdir"`
	DeploymentDir         string                   `help:"Directory to store deployments in." default:"${deploymentdir}"`
	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            string                   `help:"The deployment this runner is for." env:"FTL_DEPLOYMENT"`
	DebugPort             int                      `help:"The port to use for debugging." env:"FTL_DEBUG_PORT"`
	Registry              artefacts.RegistryConfig `embed:"" prefix:"oci-"`
	ObservabilityConfig   ftlobservability.Config  `embed:"" prefix:"o11y-"`
}

type Service

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

func (*Service) Call

func (*Service) Close added in v0.361.0

func (s *Service) Close() error

func (*Service) Ping

func (*Service) ServeHTTP added in v0.278.0

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