supervise

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustRun

func MustRun(ctx context.Context, svc Service)

func Serve

func Serve(ctx context.Context, services ...Service) error

Types

type Named

type Named interface {
	Name() string
}

type Service

type Service interface {
	Serve(context.Context) error
}

type ServiceFunc

type ServiceFunc func(context.Context) error

func (ServiceFunc) Serve

func (sf ServiceFunc) Serve(ctx context.Context) error

Jump to

Keyboard shortcuts

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