Documentation
¶
Overview ¶
Package settings is the registry of who owns each section of osapi's config and its defaults. A DSL definition declares the defaults of the values it owns (command.Config for a process, behavior.Config for a behavior), and package config reads them from here to make each key. It imports nothing of osapi, so a DSL and config both import it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Owner ¶
type Owner struct {
// Prefix is the section, such as controller.
Prefix string
// By names the definition, such as controller start.
By string
// Defaults is a value of the section's type whose fields are the
// defaults of its keys.
Defaults any
}
Owner is the definition that owns a section of the config.