Documentation ¶
Index ¶
- Constants
- func ExpandVal(s string, mapping func(string) string) string
- type Plugin
- func (p *Plugin) Experimental() bool
- func (p *Plugin) Get(name string) any
- func (p *Plugin) GracefulTimeout() time.Duration
- func (p *Plugin) Has(name string) bool
- func (p *Plugin) Init() error
- func (p *Plugin) Name() string
- func (p *Plugin) Overwrite(values map[string]any) error
- func (p *Plugin) RRVersion() string
- func (p *Plugin) Unmarshal(out any) error
- func (p *Plugin) UnmarshalKey(name string, out any) error
Constants ¶
View Source
const (
PluginName string = "config"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct { Path string // Deprecated: Prefix is deprecated and will be removed in the next major version. Prefix string Type string ReadInCfg []byte // user defined Flags in the form of <option>.<key> = <value> // which overwrites initial a config key Flags []string // ExperimentalFeatures enables experimental features ExperimentalFeatures bool // Timeout ... Timeout time.Duration // RRVersion passed from the Endure. Version string // contains filtered or unexported fields }
func (*Plugin) Experimental ¶
Experimental returns true if experimental features are enabled
func (*Plugin) GracefulTimeout ¶
Click to show internal directories.
Click to hide internal directories.