container

package
v2025.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 39 Imported by: 0

Documentation

Overview

Package container provides Endure dependency injection container configuration and plugin registration for the RoadRunner application server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLogLevel

func ParseLogLevel(s string) (slog.Leveler, error)

func Plugins

func Plugins() []any

Plugins return active plugins for the endured container. Feel free to add or remove any plugins.

Types

type Config

type Config struct {
	GracePeriod time.Duration `mapstructure:"grace_period"`
	LogLevel    string        `mapstructure:"log_level"`
	WatchdogSec int           `mapstructure:"watchdog_sec"`
	PrintGraph  bool          `mapstructure:"print_graph"`
}

Config defines endure container configuration.

func NewConfig

func NewConfig(cfgFile string) (*Config, error)

NewConfig creates endure container configuration.

Jump to

Keyboard shortcuts

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