examples/

directory
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0

README

Examples

Several working examples of go-supervisor usage.

http

Basic HTTP server with graceful shutdown and configuration reloading.

custom_middleware

HTTP server with middleware that transforms responses.

composite

Multiple dynamic services managed as a single unit, using Generics.

httpcluster

Similar to composite, but designed specifically for running several httpserver instances, with a channel-based config "siphon" for dynamic updates.

Running

go run ./examples/<name>

Directories

Path Synopsis
Package main demonstrates a JSON API server using go-supervisor with proper middleware layering and separation of concerns.
Package main demonstrates a JSON API server using go-supervisor with proper middleware layering and separation of concerns.

Jump to

Keyboard shortcuts

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