config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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) ID

func (c *Config) ID() instance.ID

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 (c *Config) SetServiceListGetter(_ func() []string)

func (*Config) Start

func (c *Config) Start()

func (*Config) Stop

func (c *Config) Stop()

func (*Config) UnsetDependency

func (c *Config) UnsetDependency(id instance.ID)

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

func (*DependencyConfig) Set added in v1.1.0

func (d *DependencyConfig) Set(section, option string, values ...string) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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