Documentation
¶
Index ¶
- Constants
- func ExpandVal(s string, mapping func(string) string) string
- type Plugin
- 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
Prefix string
Type string
ReadInCfg []byte
// user defined Flags in the form of <option>.<key> = <value>
// which overwrites initial config key
Flags []string
// Timeout ...
Timeout time.Duration
// RRVersion passed from the Endure.
Version string
// contains filtered or unexported fields
}
func (*Plugin) GracefulTimeout ¶
Click to show internal directories.
Click to hide internal directories.