app

package
v0.6.4-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: ISC Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App is a wrapper for all the kaspad services

func New

func New(cfg *config.Config, databaseContext *dbaccess.DatabaseContext, interrupt <-chan struct{}) (*App, error)

New returns a new App instance configured to listen on addr for the kaspa network type specified by dagParams. Use start to begin accepting connections from peers.

func (*App) AddressManager

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

AddressManager returns the AddressManager associated with this App

func (*App) P2PNodeID

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

P2PNodeID returns the network ID associated with this App

func (*App) Start

func (a *App) Start()

Start launches all the kaspad services.

func (*App) Stop

func (a *App) Stop()

Stop gracefully shuts down all the kaspad services.

Directories

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

Jump to

Keyboard shortcuts

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