Tiny launcher for long running processes that should terminate on SIGTERM or SIGINT
import "github.com/byteartis/neolauncher"
ErrLauncherIsNil for when nil is passed to the launcher
var ErrLauncherIsNil = errors.New("launcher implementation is nil")
func Launch
func Launch(ctx context.Context, svc Launcher)
Launch takes in a context and a Launcher implementation. The launcher implementation is expected to be a long running process that will be terminated once either SIGTERM or SIGINT is received.
type Launcher
type Launcher interface {
Launch(context.Context) error
}
Generated by gomarkdoc