util

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StandardManager

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

StandardManager is our main implementation of PeerManager

func NewPeerManager

func NewPeerManager(ctx context.Context, datastorePath string, port int, debug bool, lowMem bool) (*StandardManager, error)

NewPeerManager creates a new server.PeerManager

func (*StandardManager) Peer

func (m *StandardManager) Peer() *ipfslite.Peer

Peer returns the manager Peer

func (*StandardManager) Stop

func (m *StandardManager) Stop() error

Stop stops the datastore, libp2p host and dht when requested

Jump to

Keyboard shortcuts

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