service

package
v0.0.0-...-eb18a9d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(ctx context.Context, boots ...peer.AddrInfo) libp2p.Option

func LogEvents

func LogEvents(rail *Rail) error

func LogListeningAddresses

func LogListeningAddresses(rail *Rail) error

Types

type Action

type Action func(*Rail) error

func AddrInfoChan

func AddrInfoChan(ids chan<- peer.AddrInfo) Action

func ConnectoPinger

func ConnectoPinger(ctx context.Context, ids <-chan peer.AddrInfo) Action

func ExtractIDs

func ExtractIDs(ids chan<- peer.ID) Action

func GossipSub

func GossipSub(ctx context.Context, opts ...pubsub.Option) Action

func Pinger

func Pinger(ctx context.Context, ids <-chan peer.ID) Action

type Mesh

type Mesh func(sub *pubsub.PubSub) error

type PostMeshFn

type PostMeshFn func(...Mesh) StartFn

type PostNodeFn

type PostNodeFn func(...Action) PostMeshFn

func Railing

func Railing(opts ...libp2p.Option) PostNodeFn

type Rail

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

func (*Rail) Start

func (s *Rail) Start(ctx context.Context) (err error)

func (*Rail) Wait

func (s *Rail) Wait() <-chan error

type StartFn

type StartFn func(context.Context) error

Jump to

Keyboard shortcuts

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