rainbond: github.com/goodrain/rainbond/gateway/cluster Index | Files

package cluster

import "github.com/goodrain/rainbond/gateway/cluster"

Index

Package Files

ipmanager.go node.go

type IPManager Uses

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 Uses

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

CreateIPManager create ip manage

type NodeManager Uses

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

NodeManager node manager

func CreateNodeManager Uses

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

CreateNodeManager create node manager

func (*NodeManager) CheckPortAvailable Uses

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

CheckPortAvailable checks whether the specified port is available

func (*NodeManager) IPManager Uses

func (n *NodeManager) IPManager() IPManager

IPManager ip manager

Package cluster imports 8 packages (graph) and is imported by 3 packages. Updated 2019-09-20. Refresh now. Tools for package owners.