Registry / utility / thejerf-suture

thejerf-suture

JSON →
library4.0.6+incompatiblegogounverified

Package suture provides Erlang-like supervisor trees for Go, enabling robust service supervision and fault tolerance.

go get github.com/thejerf/suture
INSTALL
IMPORT
SIG · THEJERF-SUTURE
T
thejerf-suture
utilitygov4.0.6+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

suture
github.com/thejerf/suture/v4

Creates a simple supervisor and adds a service that prints a message.

package main import ( "context" "fmt" "github.com/thejerf/suture/v4" ) type helloService struct{} func (h *helloService) Serve(ctx context.Context) error { fmt.Println("Hello from Suture!") return nil } func main() { supervisor := suture.NewSimple("root") supervisor.Add(&helloService{}) supervisor.Serve(context.Background()) }
Debug
Known issues
breakingVersion v3 uses a different API without contexts; v4 rewrites the API to use contexts.
fix
Use github.com/thejerf/suture/v4 for context-based supervision.
affects: >=4.0.0
Upgrade
Version history
4.0.6+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
thejerf-suture — go get thejerf-suture · libregistry