net

package
v0.0.0-...-c57a2f4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPointerPrefixLength = 14
	KeyCachePrefix             = "/pubkey/"
)

Variables

Functions

This section is empty.

Types

type MRConfig

type MRConfig struct {
	Db        repo.Datastore
	IPFSNode  *core.IpfsNode
	BanManger *net.BanManager
	Service   net.NetworkService
	PrefixLen int
	PushNodes []peer.ID
	Dialer    proxy.Dialer
	SendAck   func(peerId string, pointerID peer.ID) error
	SendError func(peerId string, k *libp2p.PubKey, errorMessage pb.Message) error
}

type MessageRetriever

type MessageRetriever struct {
	DoneChan chan struct{}

	*sync.WaitGroup
	// contains filtered or unexported fields
}

func NewMessageRetriever

func NewMessageRetriever(cfg MRConfig) *MessageRetriever

func (*MessageRetriever) Run

func (m *MessageRetriever) Run()

Jump to

Keyboard shortcuts

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