package
1.0.0-rc.3
Repository: https://github.com/iotaledger/hive.go.git
Documentation: pkg.go.dev

# Functions

BackgroundWorker adds a new background worker to the default daemon instance.
ContextStopped returns a context that is done when the deamon is stopped.
DebugLogger allows to pass a logger to the daemon to issue log messages for debugging purposes.
GetRunningBackgroundWorkers gets the running background workers of the default daemon instance.
IsRunning checks whether the default daemon instance is running.
IsStopped checks whether the default daemon instance was stopped.
New creates a new daemon instance.
Run runs the default daemon instance and then waits for the daemon to shutdown.
Shutdown signals all background worker of the default daemon instance to shut down.
ShutdownAndWait signals all background worker of the default daemon instance to shut down and then waits for their termination.
Start starts the default daemon instance.

# Variables

Errors for the daemon package.
Errors for the daemon package.
Errors for the daemon package.

# Structs

OrderedDaemon is an orchestrator for background workers.

# Interfaces

Daemon specifies an interface to run background go routines.

# Type aliases

WorkerFunc is the function to run a worker accepting its context.