package
0.0.0-20190617050638-84d53aaf3fbf
Repository: https://github.com/medibloc/go-medibloc.git
Documentation: pkg.go.dev

# README

net

# Packages

Package netpb is a generated protocol buffer package.

# Functions

LoadNetworkKeyFromFile load network priv key from file.
LoadOrNewNetworkKey load network priv key from file or create new one.
MarshalNetworkKey marshal network key.
NewBloomFilter returns BloomFilter.
NewBootstrapConfig return new BootstrapConfig.
NewDispatcher create Dispatcher instance.
NewNetService create netService.
NewNode return new Node according to the config.
NewSubscriber return new Subscriber instance.
PeerInfoToProto convert peerinfo to peerinfo for config file.
PeersToProto convert peers to peer list for config.
UnmarshalNetworkKey unmarshal network key.

# Constants

Default Config.
Default Config.
Default Config.
DefaultConnMgrHighWater is the default value for the connection managers values from "ipfs/go-ipfs-config".
DefaultConnMgrHighWater is the default value for the connection managers values from "ipfs/go-ipfs-config".
DefaultConnMgrHighWater is the default value for the connection managers values from "ipfs/go-ipfs-config".
DefaultConnMgrHighWater is the default value for the connection managers values from "ipfs/go-ipfs-config".
DefaultConnMgrHighWater is the default value for the connection managers values from "ipfs/go-ipfs-config".
Default Config.
Network system parameters.
Protocols.
Protocols.
Message Priority.
Message Priority.
Message Priority.
const.
const.
const.
const.
const.
const.
Network system parameters.

# Variables

# Structs

BloomFilter manages bloom filter.
BootstrapConfig is a struct for bootstrapping node.
ChainSyncPeersFilter will filter some peers randomly.
Dispatcher a message dispatcher service.
MedService service for medibloc p2p network.
Node the host can be used as both the client and the server.
RandomPeerFilter will filter a peer randomly.
RecvMessage is a struct for received message.
SendMessage is a struct for sending message.
Subscriber subscriber.

# Interfaces

Message interface for message.
PeerFilterAlgorithm is the algorithm used to filter peers.
Query is interface for send request/response message.
Service net Service interface.

# Type aliases

MessageCallback is a function for handle response message.
MessageWeight float64.