Versions in this module Expand all Collapse all v0 v0.1.5 Feb 27, 2017 v0.1.3 Feb 17, 2017 Changes in this version + const JoinRetryInterval + const NodeIDFileName + type Node struct + ID string + RaftID uint64 + WasJoin bool + func NewNode(config config.SwanConfig) (*Node, error) + func (n *Node) JoinAsAgent(nodeInfo types.Node) error + func (n *Node) JoinAsManager(nodeInfo types.Node) ([]types.Node, error) + func (n *Node) Start(ctx context.Context) error + func (n *Node) Stop() + type NodeApi struct + func (api *NodeApi) AddNode(request *restful.Request, response *restful.Response) + func (api *NodeApi) GetNodes(request *restful.Request, response *restful.Response) + func (api *NodeApi) Register(container *restful.Container) + func (api *NodeApi) RemoveNode(request *restful.Request, response *restful.Response) + func (api *NodeApi) StopNode(request *restful.Request, response *restful.Response)