Documentation ¶
Index ¶
- Constants
- type Plugin
- func (p *Plugin) Collects() []interface{}
- func (p *Plugin) GetAll() []string
- func (p *Plugin) Init(log logger.Logger) error
- func (p *Plugin) Name() string
- func (p *Plugin) RPC() interface{}
- func (p *Plugin) RegisterTarget(name endure.Named, r Resettable) error
- func (p *Plugin) Reset(name string) error
- func (p *Plugin) ResetAll() error
- func (p *Plugin) ResetByName(plugin string) error
- type Resettable
- type Resetter
Constants ¶
View Source
const PluginName = "resetter"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Collects ¶
func (p *Plugin) Collects() []interface{}
Collects declares services to be collected.
func (*Plugin) RegisterTarget ¶
func (p *Plugin) RegisterTarget(name endure.Named, r Resettable) error
RegisterTarget resettable service.
func (*Plugin) ResetByName ¶
type Resettable ¶
type Resettable interface { // Reset reload all plugins Reset() error }
If plugin implements Resettable interface, than it state can be resetted without reload in runtime via RPC/HTTP
Click to show internal directories.
Click to hide internal directories.