daemon

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: Apache-2.0 Imports: 13 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 {
	// contains filtered or unexported fields
}

Daemon implements the Bifrost daemon.

func NewDaemon

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

NewDaemon constructs a new daemon.

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