debug

package
v2.0.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package debug is the chok v2 introspection module: /componentz renders the assembled component topology straight from Descriptor data (single source of truth, SPEC axiom 5) plus a bounded history of lifecycle events from the bus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() kernel.Component

Module returns the debug component for chok.Use.

Types

type Options

type Options struct {
	Enabled bool   `mapstructure:"enabled" default:"false"`
	Path    string `mapstructure:"path"    default:"/componentz" reload:"restart"`
	// EventHistory bounds the retained lifecycle event lines.
	EventHistory int `mapstructure:"event_history" default:"64" reload:"restart"`
}

Options is the "debug" yaml section. Disabled by default — enable in development/staging; the endpoint exposes topology and timing.

func (*Options) Validate

func (o *Options) Validate() error

Validate implements conf.Validatable.

Jump to

Keyboard shortcuts

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