# Functions
NewAgent creates a new Agent that receives membership changes from the discovery service.
# Constants
EventTypeAdd indicates that a node has been added.
EventTypeDel indicates that a node has been removed.
NodeTypeExecutor indicates that the node is an executor.
NodeTypeMaster indicates that the node is a master.
# Interfaces
Agent registers receives membership changes of all nodes.