Help us shape the future of Go! Take the 2026 Go Developer Survey

daemon

package
v0.57.14 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConstructOpts

type ConstructOpts struct {
	// LogEntry is the root logger to use.
	// If unset, will use a default logger.
	LogEntry *logrus.Entry
	// ExtraControllerFactories is a set of extra controller factories to
	// make available to the daemon.
	ExtraControllerFactories []func(bus.Bus) controller.Factory
}

ConstructOpts are extra options passed to the daemon constructor.

type Daemon

type Daemon struct {
	// Peer contains the peer private key
	peer.Peer
	// contains filtered or unexported fields
}

Daemon implements the Forge daemon.

func NewDaemon

func NewDaemon(
	ctx context.Context,
	nodePriv crypto.PrivKey,
	opts ConstructOpts,
) (*Daemon, error)

NewDaemon constructs a new daemon.

func (*Daemon) Close

func (d *Daemon) Close()

Close calls all close callbacks.

func (*Daemon) GetControllerBus

func (d *Daemon) GetControllerBus() bus.Bus

GetControllerBus returns the controller bus.

func (*Daemon) GetStaticResolver

func (d *Daemon) GetStaticResolver() *static.Resolver

GetStaticResolver returns the underlying static resolver for controller impl lookups.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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