transport

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 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 `json:"shs"`
	Sign   string `json:"sign"`
	Invite string `json:"invite,omitempty"`
}

type Dependencies

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

type P2P

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

type Scuttlebutt

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

type Transport

type Transport struct {
	Transport string      `json:"transport"`
	P2P       P2P         `json:"libp2p"`
	SSB       Scuttlebutt `json:"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