communication

package
v0.0.0-...-1173c81 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerGetter

type PeerGetter interface {
	Get(group string, key string) ([]byte, error)
}

PeerGetter is the interface that must be implemented by a peer.

type PeerPicker

type PeerPicker interface {
	// add return  bool
	PickPeer(key string) (peer PeerGetter, ok bool)
}

PeerPicker is the interface that must be implemented to locate the peer that owns a specific key.

Jump to

Keyboard shortcuts

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