app

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: ISC Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartApp

func StartApp() error

StartApp starts the BTCD app, and blocks until it finishes running

Types

type BTCDApp

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

type ComponentManager

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

ComponentManager is a wrapper for all the BTCD services

func NewComponentManager

func NewComponentManager(cfg *config.Config, db infrastructuredatabase.Database, interrupt chan<- struct{}) (
	*ComponentManager, error)

NewComponentManager returns a new ComponentManager instance. Use Start() to begin all services within this ComponentManager

func (*ComponentManager) AddressManager

func (a *ComponentManager) AddressManager() *addressmanager.AddressManager

AddressManager returns the AddressManager associated with this ComponentManager

func (*ComponentManager) P2PNodeID

func (a *ComponentManager) P2PNodeID() *id.ID

P2PNodeID returns the network ID associated with this ComponentManager

func (*ComponentManager) Start

func (a *ComponentManager) Start()

Start launches all the BTCD services.

func (*ComponentManager) Stop

func (a *ComponentManager) Stop()

Stop gracefully shuts down all the BTCD services.

Directories

Path Synopsis
Package appmessage implements the kaspa appmessage protocol.
Package appmessage implements the kaspa appmessage protocol.
rpc

Jump to

Keyboard shortcuts

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