specters

package
v0.0.0-...-95c1484 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBoostrapPeers

func DefaultBoostrapPeers() (peers []peer.AddrInfo, err error)

DefaultBoostrapPeers returns the default bootstrap peers for Specters

Types

type Config

type Config struct {
	Debug bool
	Repo  string
}

Config specifies service settings.

type Specters

type Specters struct {
	IPFSNode ipfs.Node
	DB       db.DB
	Specter  *specter.Specter
}

Specters is a specters manager

func Init

func Init(ctx context.Context, config Config) (*Specters, error)

Init initializes IPFS, OrbitDB and own Specter user

func (*Specters) Close

func (s *Specters) Close()

Close closes all connections of the Specters manager

Jump to

Keyboard shortcuts

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