...

Source file src/edge-infra.dev/pkg/lib/runtime/alias.go

Documentation: edge-infra.dev/pkg/lib/runtime

     1  package runtime
     2  
     3  import (
     4  	"edge-infra.dev/pkg/lib/runtime/manager"
     5  	"edge-infra.dev/pkg/lib/runtime/manager/signals"
     6  	"edge-infra.dev/pkg/lib/runtime/subscriber"
     7  )
     8  
     9  type Options manager.Options
    10  
    11  type SubOptions subscriber.Options
    12  
    13  var (
    14  	// NewManager returns a new default Manager for creating Edge apps
    15  	NewManager = manager.New
    16  
    17  	// NewSubscriber returns a subscriber runnabled
    18  	NewSubscriber = subscriber.New
    19  
    20  	// SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned
    21  	// which is closed on one of these signals. If a second signal is caught, the program
    22  	// is terminated with exit code 1.
    23  	SetupSignalHandler = signals.SetupSignalHandler
    24  )
    25  

View as plain text