Documentation ¶
Index ¶
- Constants
- func IsExist(f string) bool
- func Register(extenderName string, extender NodeExtender)
- func StartNode(node *node.Node) error
- func StopNode(node *node.Node)
- func WaitNode(node *node.Node)
- type ConsoleNodeManager
- type DefaultNodeManager
- type FullNodeMaker
- type NodeExtender
- type NodeMaker
- type NodeManager
- type RecoverNodeManager
- type SubCmdNodeManager
Constants ¶
View Source
const CountPerDelete = uint64(10000)
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(extenderName string, extender NodeExtender)
Types ¶
type ConsoleNodeManager ¶
type ConsoleNodeManager struct {
// contains filtered or unexported fields
}
func NewConsoleNodeManager ¶
func NewConsoleNodeManager(ctx *cli.Context, maker NodeMaker) (*ConsoleNodeManager, error)
func (*ConsoleNodeManager) Node ¶
func (nodeManager *ConsoleNodeManager) Node() *node.Node
func (*ConsoleNodeManager) Start ¶
func (nodeManager *ConsoleNodeManager) Start() error
func (*ConsoleNodeManager) Stop ¶
func (nodeManager *ConsoleNodeManager) Stop() error
type DefaultNodeManager ¶
type DefaultNodeManager struct {
// contains filtered or unexported fields
}
func NewDefaultNodeManager ¶
func NewDefaultNodeManager(ctx *cli.Context, maker NodeMaker) (*DefaultNodeManager, error)
func (*DefaultNodeManager) Node ¶
func (nodeManager *DefaultNodeManager) Node() *node.Node
func (*DefaultNodeManager) Start ¶
func (nodeManager *DefaultNodeManager) Start() error
func (*DefaultNodeManager) Stop ¶
func (nodeManager *DefaultNodeManager) Stop() error
type FullNodeMaker ¶
type FullNodeMaker struct { }
func (FullNodeMaker) MakeNode ¶
func (maker FullNodeMaker) MakeNode(ctx *cli.Context) (*node.Node, error)
func (FullNodeMaker) MakeNodeConfig ¶
func (maker FullNodeMaker) MakeNodeConfig(ctx *cli.Context) (*node.Config, error)
type NodeExtender ¶
type NodeMaker ¶
type RecoverNodeManager ¶ added in v1.3.0
type RecoverNodeManager struct {
// contains filtered or unexported fields
}
func NewRecoverNodeManager ¶ added in v1.3.0
func NewRecoverNodeManager(ctx *cli.Context, maker NodeMaker) (*RecoverNodeManager, error)
func (*RecoverNodeManager) Node ¶ added in v1.3.0
func (nodeManager *RecoverNodeManager) Node() *node.Node
func (*RecoverNodeManager) Start ¶ added in v1.3.0
func (nodeManager *RecoverNodeManager) Start() error
func (*RecoverNodeManager) Stop ¶ added in v1.3.0
func (nodeManager *RecoverNodeManager) Stop() error
type SubCmdNodeManager ¶
type SubCmdNodeManager struct {
// contains filtered or unexported fields
}
func NewSubCmdNodeManager ¶
func NewSubCmdNodeManager(ctx *cli.Context, maker NodeMaker) (*SubCmdNodeManager, error)
func (*SubCmdNodeManager) Node ¶
func (nodeManager *SubCmdNodeManager) Node() *node.Node
func (*SubCmdNodeManager) Start ¶
func (nodeManager *SubCmdNodeManager) Start() error
func (*SubCmdNodeManager) Stop ¶
func (nodeManager *SubCmdNodeManager) Stop() error
Click to show internal directories.
Click to hide internal directories.