cluster

package
v5.1.8-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPManager

type IPManager interface {
	//Whether the IP address belongs to the current node
	IPInCurrentHost(net.IP) bool
	Start() error
}

IPManager ip manager Gets all available IP addresses for synchronizing the current node

func CreateIPManager

func CreateIPManager(config option.Config) (IPManager, error)

CreateIPManager create ip manage

type NodeManager

type NodeManager struct {
	// contains filtered or unexported fields
}

NodeManager node manager

func CreateNodeManager

func CreateNodeManager(config option.Config) (*NodeManager, error)

CreateNodeManager create node manager

func (*NodeManager) CheckPortAvailable

func (n *NodeManager) CheckPortAvailable(protocol string, ports ...uint32) bool

CheckPortAvailable checks whether the specified port is available

func (*NodeManager) IPManager

func (n *NodeManager) IPManager() IPManager

IPManager ip manager

Jump to

Keyboard shortcuts

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