functions

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package functions holds the starter handlers for scale-to-zero functions.

Index

Constants

View Source
const DefaultPort = 8080

DefaultPort is the port every starter handler listens on unless PORT says otherwise.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Path    string `json:"path"`
	Content string `json:"content"`
}

File is one file of a starter handler.

type Runtime

type Runtime struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Files []File `json:"files"`
}

Runtime is a language Railpack builds without a Dockerfile.

func Lookup

func Lookup(id string) (Runtime, bool)

Lookup returns the runtime with the given id.

func Runtimes

func Runtimes() []Runtime

Runtimes lists the starter runtimes in a stable order.

Jump to

Keyboard shortcuts

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