svcgroup

package
v0.0.0-...-bc5d075 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	// contains filtered or unexported fields
}

Group is a group of services.

func New

func New(bgCtx context.Context) Group

func (*Group) Always

func (g *Group) Always(fn func(context.Context) error)

Always runs fn in a loop, restarting it if it returns an error.

func (*Group) Shutdown

func (g *Group) Shutdown()

Shutdown cancles the background context and waits for all services to finish.

Jump to

Keyboard shortcuts

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