lifecycle_bridge

command
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package main demonstrates how to integrate procio with lifecycle.

This example shows the canonical ObserverBridge pattern (ADR-11): a single struct that satisfies both procio.Observer and lifecycle.Observer, eliminating the need for any adapter wrapper.

This file also acts as a compile-time contract test: if procio.Observer or lifecycle.Observer changes in a breaking way, this file fails to build.

Run: go run ./examples/lifecycle_bridge/

Jump to

Keyboard shortcuts

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