transport

package
v0.4.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapDependencies

type BootstrapDependencies struct {
	Context context.Context
	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 {
	Context context.Context
	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 {
	P2P P2P         `json:"libp2p"`
	SSB Scuttlebutt `json:"ssb"`
}

func (*Transport) Configure

func (*Transport) ConfigureP2PBoostrap

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

func (*Transport) ConfigureSSB

func (c *Transport) ConfigureSSB() (transport.Transport, error)

Jump to

Keyboard shortcuts

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