nahs

package module
v0.0.0-...-e4becd7 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MPL-2.0 Imports: 4 Imported by: 0

README

NaHS logo

Network of Autonomous and Heterogeneous Services (NaHS)

Build Status codecov Go Version GoDoc Reference

Modules

  • events: Describes BSPL instance events according to the implementation. As of now there are three events:

    • NewEvent to create an instance of a protocol.

    • UpdateEvent to update an instace comparing it to a future version of it.

    • DropEvent to cancel an instance for any reason.

  • net: Networking components. The main struct is Node. A node has a BSPL reasoner and a LibP2P host, implementing methods and handlers to send BSPL components between network peers. Nodes discover each other either manually or with the libp2p implementation of rendezvous (preferred) using the default bootstrap nodes.

Other folders

  • config: Contains the private key of the main network (which is public, private only limits interaction to NaHS nodes).

  • scripts: Contains a script to generate a private network key.

  • test: Test resources.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node = net.Node

Node of the NaHS network.

func MakeNode

func MakeNode(reasoner bspl.Reasoner, sk crypto.PrivKey, options ...libp2p.Option) *Node

MakeNode creates a node with the specified private key so the node maintains the ID it previously had.

func NewNode

func NewNode(reasoner bspl.Reasoner, options ...libp2p.Option) *Node

NewNode creates a new NaHS node. LibP2P options can be passed to configure the node.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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