module

package
v0.0.0-...-e81be6b Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(options map[string]interface{}, key string) (bool, error)

func GetBoolDefault

func GetBoolDefault(options map[string]interface{}, key string, dflt bool) bool

func GetInt

func GetInt(options map[string]interface{}, key string) (int, error)

func GetIntDefault

func GetIntDefault(options map[string]interface{}, key string, dflt int) int

func GetString

func GetString(options map[string]interface{}, key string) (string, error)

func GetStringArray

func GetStringArray(options map[string]interface{}, key string) ([]string, error)

func GetStringArrayDefault

func GetStringArrayDefault(options map[string]interface{}, key string, dflt []string) []string

func GetStringDefault

func GetStringDefault(options map[string]interface{}, key string, dflt string) string

Types

type Module

type Module interface {
	PrerequisiteModules() []string
	Init(config ModuleConfig) error
	Start() error
	Stop() error
	IsRunning() bool
}

type ModuleConfig

type ModuleConfig map[string]interface{}

type ModuleConfigMap

type ModuleConfigMap map[string]ModuleConfig

type ModuleManager

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

func NewModuleManager

func NewModuleManager() *ModuleManager

func (*ModuleManager) LaunchModules

func (mgr *ModuleManager) LaunchModules(available map[string]Module, modules ModuleConfigMap, skipFailures bool) error

func (*ModuleManager) TerminateModules

func (mgr *ModuleManager) TerminateModules()

Jump to

Keyboard shortcuts

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