supervisor

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertTruef

func AssertTruef(b bool, format string, args ...interface{})

AssertTruef is AssertTrue with extra info.

func Logger

func Logger() *logger.Logger

Logger returns the package logger so a process can attach a log publisher to it alongside its own loggers.

Types

type RoutineSupervisor

type RoutineSupervisor struct {
	Name string
	// contains filtered or unexported fields
}

func (*RoutineSupervisor) Done

func (rs *RoutineSupervisor) Done()

func (*RoutineSupervisor) HasBeenClosed

func (rs *RoutineSupervisor) HasBeenClosed() <-chan struct{}

func (*RoutineSupervisor) SetReady

func (rs *RoutineSupervisor) SetReady()

func (*RoutineSupervisor) SignalClose

func (rs *RoutineSupervisor) SignalClose()

func (*RoutineSupervisor) SignalCloseAndWait

func (rs *RoutineSupervisor) SignalCloseAndWait()

func (*RoutineSupervisor) WaitClose

func (rs *RoutineSupervisor) WaitClose()

func (*RoutineSupervisor) WaitReady

func (rs *RoutineSupervisor) WaitReady()

type Supervisor

type Supervisor struct {
	sync.RWMutex
	Routines map[string]*RoutineSupervisor
	Ready    bool
}

func NewSupervisor

func NewSupervisor() *Supervisor

func (*Supervisor) Get

func (s *Supervisor) Get(name string) *RoutineSupervisor

func (*Supervisor) Register

func (s *Supervisor) Register(name string) *RoutineSupervisor

func (*Supervisor) SetAllReady

func (s *Supervisor) SetAllReady()

func (*Supervisor) SignalAllClose

func (s *Supervisor) SignalAllClose()

func (*Supervisor) WaitAllClose

func (s *Supervisor) WaitAllClose()

func (*Supervisor) WaitAllReady

func (s *Supervisor) WaitAllReady()

Jump to

Keyboard shortcuts

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