transport

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTransport = LibP2P
View Source
const LibP2P = "libp2p"
View Source
const LibSSB = "ssb"

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapDependencies

type BootstrapDependencies struct {
	Logger log.Logger
}

type Caps

type Caps struct {
	Shs    string `yaml:"shs"`
	Sign   string `yaml:"sign"`
	Invite string `yaml:"invite,omitempty"`
}

type Dependencies

type Dependencies struct {
	Signer ethereum.Signer
	Feeds  []ethereum.Address
	Logger log.Logger
}

type P2P

type P2P struct {
	PrivKeySeed      string   `yaml:"privKeySeed"`
	ListenAddrs      []string `yaml:"listenAddrs"`
	BootstrapAddrs   []string `yaml:"bootstrapAddrs"`
	DirectPeersAddrs []string `yaml:"directPeersAddrs"`
	BlockedAddrs     []string `yaml:"blockedAddrs"`
	DisableDiscovery bool     `yaml:"disableDiscovery"`
}

type Scuttlebutt

type Scuttlebutt struct {
	Caps string `yaml:"caps"`
}

type Transport

type Transport struct {
	Transport string      `yaml:"transport"`
	P2P       P2P         `yaml:"libp2p"`
	SSB       Scuttlebutt `yaml:"ssb"`
}

func (*Transport) Configure

func (*Transport) ConfigureP2PBoostrap

func (c *Transport) ConfigureP2PBoostrap(d BootstrapDependencies) (transport.Transport, error)

Jump to

Keyboard shortcuts

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