embed

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

This 'embed' example demonstrates how to use the loader package to manually construct a loader.Footprint with resource allocations that link three components together - ping, pong and probe.

These components communicate over Kafka pub-sub topics, just like production-ready service executables.

For simplicity, run all components in a single executable:

go run github.com/danielorbach/go-component/examples/embed

To simulate a real deployment, run each component in its own executable:

  1. To run the only Ping component, use the '-ping' flag.
  2. To run the only Pong component, use the '-pong' flag.
  3. To run the only Probe component, use the '-probe' flag.

Jump to

Keyboard shortcuts

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