nexus

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nexus

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

Nexus coordinates the various subsystems.

func New

func New(gaCnt, gnCnt, xcnt, scnt int) (*Nexus, error)

New returns a new Nexus.

func (*Nexus) GetActiveFlag added in v0.3.0

func (nx *Nexus) GetActiveFlag(sub subsystem.ID) bool

GetActiveFlag returns the active flag of the specified subsystem.

func (*Nexus) GetWorkerCount added in v0.3.0

func (nx *Nexus) GetWorkerCount(sub subsystem.ID) int

GetWorkerCount returns the number of active workers in a subsystem.

func (*Nexus) IsActive

func (nx *Nexus) IsActive() bool

IsActive returns the status of the Nexus' active flag.

func (*Nexus) Start

func (nx *Nexus) Start()

Start the various subsystems.

func (*Nexus) StartOne added in v0.4.0

func (nx *Nexus) StartOne(s subsystem.ID)

StartOne starts an additional worker in one subsystem.

func (*Nexus) Stop

func (nx *Nexus) Stop()

Stop all running subsystems.

func (*Nexus) StopOne added in v0.4.0

func (nx *Nexus) StopOne(s subsystem.ID)

StopOne stops a worker in one subsystem.

Jump to

Keyboard shortcuts

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