internal

package
v0.0.0-...-2dd9a29 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module interface {
	ModuleConstruct() // for module
	ModuleDestruct()  // for module
	ModuleLock() ModuleCore
	ModuleUnlock()
}

type ModuleCanAfterRestart

type ModuleCanAfterRestart interface {
	AfterRestart()
}

type ModuleCanAfterRun

type ModuleCanAfterRun interface {
	ModuleAfterRun(string) // for run
}

type ModuleCanBeforeRun

type ModuleCanBeforeRun interface {
	ModuleBeforeRun(string) // for run
}

type ModuleCanRestart

type ModuleCanRestart interface {
	ModuleRestart() bool // for module
}

type ModuleCanShutdown

type ModuleCanShutdown interface {
	ModuleShutdown() // for run
}

type ModuleCore

type ModuleCore interface {
	Lock()
	Unlock()
}

type SingleInstModuleCore

type SingleInstModuleCore struct {
	sync.RWMutex
}

type SingleInstModules

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

func GetSingleInst

func GetSingleInst() *SingleInstModules

func (*SingleInstModules) Construct

func (single *SingleInstModules) Construct()

func (*SingleInstModules) Destruct

func (single *SingleInstModules) Destruct()

func (*SingleInstModules) GetModuleName

func (single *SingleInstModules) GetModuleName(module Module) string

func (*SingleInstModules) Register

func (single *SingleInstModules) Register(module Module) bool

func (*SingleInstModules) RestartModule

func (single *SingleInstModules) RestartModule(module Module)

func (*SingleInstModules) Run

func (single *SingleInstModules) Run(isTest bool)

func (*SingleInstModules) Shutdown

func (single *SingleInstModules) Shutdown()

Jump to

Keyboard shortcuts

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