Skip to content

Tiny launcher for long running processes that should terminate on SIGTERM or SIGINT

License

Notifications You must be signed in to change notification settings

byteartis/neolauncher

Repository files navigation

Tiny launcher for long running processes that should terminate on SIGTERM or SIGINT

neolauncher

import "github.com/byteartis/neolauncher"

Index

Variables

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 interface {
    Launch(context.Context) error
}

Generated by gomarkdoc

About

Tiny launcher for long running processes that should terminate on SIGTERM or SIGINT

Resources

License

Stars

Watchers

Forks

Releases

No releases published