package
0.0.0-20241112080837-97b903613cec
Repository: https://github.com/deepin-community/docker.io.git
Documentation: pkg.go.dev

# Functions

DefaultConfig returns a NetworkDB config with default values.
New creates a new instance of NetworkDB using the Config passed by the caller.

# Constants

BulkSync message is used to bulksync the whole networkdb state with a peer node during startup of this node or with a random peer node periodically thereafter.
Compound message type is used to form a compound message which is a pack of many message of above types, packed into a single compound message.
No description provided by the author
NetworkEvent message type is used to communicate network attachments on the node.
NodeEvent message type is used to communicate node join/leave events in the cluster.
PushPull message type is used to syncup all network attachments on a peer node either during startup of this node or with a random peer node periodically thereafter.
TableEvent message type is used to communicate any table CRUD event that happened on the node.
No description provided by the author
Join event is generated when this node joins a network.
Leave event is generated when this node leaves a network.
No description provided by the author
Join event is generated when this node joins the cluster.
Leave event is generated when this node leaves the cluster.
NodeTable represents table event for node join and leave.
Create signifies that this table entry was just created.
Delete signifies that this table entry was just updated.
No description provided by the author
Update signifies that this table entry was just updated.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

BulkSync message payload definition.
Compound message payload definition.
No description provided by the author
Config represents the configuration of the networkdb instance and can be passed by the caller.
GossipMessage is a basic message header used by all messages types.
NetworkDB instance drives the networkdb cluster and acts the broker for cluster-scoped and network-scoped gossip and watches.
NetworkEntry for push pull of networks.
NetworkEvent message payload definition.
NetworkPushpull message payload definition.
NodeAddr represents the value carried for node event in NodeTable.
NodeEvent message payload definition.
PeerClusterInfo represents the peer (gossip cluster) nodes.
PeerInfo represents the peer (gossip cluster) nodes of a network.
TableElem elem.
TableEvent message payload definition.

# Interfaces

No description provided by the author

# Type aliases

CreateEvent generates a table entry create event to the watchers.
DeleteEvent generates a table entry delete event to the watchers.
MessageType enum defines all the core message types that networkdb uses to communicate to peers.
No description provided by the author
No description provided by the author
No description provided by the author
UpdateEvent generates a table entry update event to the watchers.