Documentation ¶
Index ¶
- func Init(id instance.ID, logger instance.LoggerFunc, error instance.ErrorFunc, ...) instance.Instance
- type Config
- func (c *Config) Dependencies() instance.Dependencies
- func (c *Config) GetDependentInstance(id instance.ID) instance.DependencyInstance
- func (c *Config) ID() instance.ID
- func (c *Config) OnServiceListChanged()
- func (c *Config) SetDependenciesChangedHandler(_ func())
- func (c *Config) SetDependency(i instance.DependencyInstance)
- func (c *Config) SetServiceListGetter(_ func() []string)
- func (c *Config) Start()
- func (c *Config) Stop()
- func (c *Config) UnsetDependency(id instance.ID)
- type DependencyConfig
- func (d *DependencyConfig) AddSection(section, typ string) error
- func (d *DependencyConfig) Del(section, option string) error
- func (d *DependencyConfig) DelSection(section string) error
- func (d *DependencyConfig) Get(section, option string) ([]string, bool, error)
- func (d *DependencyConfig) GetBool(section, option string) (bool, bool, error)
- func (d *DependencyConfig) GetBoolDefault(section, option string, def bool) (bool, error)
- func (d *DependencyConfig) GetInt(section, option string) (int, bool, error)
- func (d *DependencyConfig) GetIntDefault(section, option string, def int) (int, error)
- func (d *DependencyConfig) GetIntList(section, option string) ([]int, bool, error)
- func (d *DependencyConfig) GetLast(section, option string) (string, bool, error)
- func (d *DependencyConfig) GetSections(secType string) ([]string, bool, error)
- func (d *DependencyConfig) GetStringDefault(section, option string, def string) (string, error)
- func (d DependencyConfig) ID() instance.ID
- func (d *DependencyConfig) Set(section, option string, values ...string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(id instance.ID, logger instance.LoggerFunc, error instance.ErrorFunc, selfkill instance.SelfKillFunc, _ manifest.Configurator) instance.Instance
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Dependencies ¶
func (c *Config) Dependencies() instance.Dependencies
func (*Config) GetDependentInstance ¶
func (c *Config) GetDependentInstance(id instance.ID) instance.DependencyInstance
func (*Config) OnServiceListChanged ¶
func (c *Config) OnServiceListChanged()
func (*Config) SetDependenciesChangedHandler ¶
func (c *Config) SetDependenciesChangedHandler(_ func())
func (*Config) SetDependency ¶
func (c *Config) SetDependency(i instance.DependencyInstance)
func (*Config) SetServiceListGetter ¶
func (*Config) UnsetDependency ¶
type DependencyConfig ¶ added in v1.1.0
type DependencyConfig struct {
// contains filtered or unexported fields
}
func (*DependencyConfig) AddSection ¶ added in v1.1.0
func (d *DependencyConfig) AddSection(section, typ string) error
func (*DependencyConfig) Del ¶ added in v1.1.0
func (d *DependencyConfig) Del(section, option string) error
func (*DependencyConfig) DelSection ¶ added in v1.1.0
func (d *DependencyConfig) DelSection(section string) error
func (*DependencyConfig) Get ¶ added in v1.1.0
func (d *DependencyConfig) Get(section, option string) ([]string, bool, error)
func (*DependencyConfig) GetBool ¶ added in v1.1.0
func (d *DependencyConfig) GetBool(section, option string) (bool, bool, error)
func (*DependencyConfig) GetBoolDefault ¶ added in v1.1.0
func (d *DependencyConfig) GetBoolDefault(section, option string, def bool) (bool, error)
func (*DependencyConfig) GetInt ¶ added in v1.1.0
func (d *DependencyConfig) GetInt(section, option string) (int, bool, error)
func (*DependencyConfig) GetIntDefault ¶ added in v1.1.0
func (d *DependencyConfig) GetIntDefault(section, option string, def int) (int, error)
func (*DependencyConfig) GetIntList ¶ added in v1.1.0
func (d *DependencyConfig) GetIntList(section, option string) ([]int, bool, error)
func (*DependencyConfig) GetLast ¶ added in v1.1.0
func (d *DependencyConfig) GetLast(section, option string) (string, bool, error)
func (*DependencyConfig) GetSections ¶ added in v1.1.0
func (d *DependencyConfig) GetSections(secType string) ([]string, bool, error)
func (*DependencyConfig) GetStringDefault ¶ added in v1.1.0
func (d *DependencyConfig) GetStringDefault(section, option string, def string) (string, error)
func (DependencyConfig) ID ¶ added in v1.1.0
func (d DependencyConfig) ID() instance.ID
Click to show internal directories.
Click to hide internal directories.