gossip

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgIDFunction

func MsgIDFunction(pmsg *pubsub_pb.Message) string

Types

type GossipSub

type GossipSub interface {
	Join(topic string, opts ...pubsub.TopicOpt) (*pubsub.Topic, error)
	BlacklistPeer(id peer.ID)
}

func NewGossipSub

func NewGossipSub(ctx context.Context, h host.Host) (GossipSub, error)

Jump to

Keyboard shortcuts

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