Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpConfig ¶
func DumpConfig()
func MergeLocalConfig ¶
func MergeLocalConfig(configPath string)
func ReadEnvConfig ¶
func ReadEnvConfig(envPrefix string)
func ReadNormalConfig ¶
func ReadNormalConfig(configFolder string)
func ReadPrivate ¶
func ReadPrivate(privateFolder string)
Types ¶
type Component ¶
type Component interface { Start() Stop() // Get the component name Name() string }
type ComponentProvider ¶
type ComponentService ¶
type ComponentService struct { ComponentProvider ComponentProvider // contains filtered or unexported fields }
func (*ComponentService) AddComponent ¶
func (n *ComponentService) AddComponent(component Component)
func (*ComponentService) InitComponents ¶
func (n *ComponentService) InitComponents()
func (*ComponentService) Start ¶
func (n *ComponentService) Start()
func (*ComponentService) Stop ¶
func (n *ComponentService) Stop()
type FolderConfig ¶
func EnsureFolders ¶
func EnsureFolders(config FolderConfig) FolderConfig
func LoadConfigs ¶
func LoadConfigs(folderConfig FolderConfig, envPrefix string) (folderConfigActual FolderConfig)
Click to show internal directories.
Click to hide internal directories.