nodem

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNode

func CreateNode(nodeID, ip string) client.HostNode

CreateNode

Types

type NodeManager

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

NodeManager

func NewNodeManager

func NewNodeManager(ctx context.Context, conf *option.Conf) (*NodeManager, error)

NewNodeManager

func (*NodeManager) AddAPIManager

func (n *NodeManager) AddAPIManager(apim *api.Manager) error

AddAPIManager

func (*NodeManager) CheckNodeHealthy

func (n *NodeManager) CheckNodeHealthy() (bool, error)

CheckNodeHealthy check current node is healthy. only healthy can control other service start

func (*NodeManager) GetCurrentNode

func (n *NodeManager) GetCurrentNode() *client.HostNode

GetCurrentNode

func (*NodeManager) GetMonitorManager

func (n *NodeManager) GetMonitorManager() monitor.Manager

GetMonitorManager

func (*NodeManager) InitStart

func (n *NodeManager) InitStart() error

InitStart - init start is first start module. it would not depend on etcd

func (*NodeManager) Start

func (n *NodeManager) Start(errchan chan error) error

Start

func (*NodeManager) StartService

func (n *NodeManager) StartService(serviceName string) error

StartService

func (*NodeManager) Stop

func (n *NodeManager) Stop()

Stop

func (*NodeManager) StopService

func (n *NodeManager) StopService(serviceName string) error

StopService

func (*NodeManager) UpdateConfig

func (n *NodeManager) UpdateConfig() error

UpdateConfig

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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