config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package config defines the config/config.yml configuration model.

Index

Constants

This section is empty.

Variables

View Source
var DefaultRuntimeConfig []byte

Functions

This section is empty.

Types

type Config

type Config struct {
	Runner    runner.Options `yaml:"runner"`
	Flatstack Flatstack      `yaml:"flatstack"`
	Routes    Routes         `yaml:"routes"`
	Status    Status         `yaml:"status"`
	Env       []string       `yaml:"env"`
}

Config configures phpscript runtimes and HTTP modules.

func New

func New() Config

New returns the default configuration.

type Flatstack

type Flatstack struct {
	Enabled bool `yaml:"enabled"`
}

Flatstack selects the flat bytecode runtime when enabled.

type Routes

type Routes struct {
	Enabled bool `yaml:"enabled"`
}

Routes controls loading of annotated PHP routes by HTTP servers.

type Status

type Status struct {
	Enabled bool           `yaml:"enabled"`
	Options status.Options `yaml:"options"`
}

Status configures the optional server status module.

Jump to

Keyboard shortcuts

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