dagtime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package dagtime provides the main library interface for DAG-Time

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Pool   *pool.Pool
	DAG    *dag.DAG
	Beacon *beacon.DrandBeacon
}

Node represents a DAG-Time node with all its components

func NewNode

func NewNode(ctx context.Context, h host.Host, drandURL string) (*Node, error)

NewNode creates a new DAG-Time node with the given libp2p host and drand URL

func (*Node) Close

func (n *Node) Close() error

Close shuts down the node and all its components

Jump to

Keyboard shortcuts

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