Documentation ¶
Index ¶
- Constants
- type Plugin
- func (p *Plugin) Get(name string) interface{}
- 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]interface{}) error
- func (p *Plugin) RRVersion() string
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop() error
- func (p *Plugin) Unmarshal(out interface{}) error
- func (p *Plugin) UnmarshalKey(name string, out interface{}) error
Constants ¶
View Source
const (
PluginName string = "config"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶ added in v2.7.0
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 ¶ added in v2.7.0
func (*Plugin) Overwrite ¶ added in v2.7.0
Overwrite overwrites existing config with provided values
func (*Plugin) UnmarshalKey ¶ added in v2.7.0
UnmarshalKey reads configuration section into configuration object.
Click to show internal directories.
Click to hide internal directories.