Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRegisteredAdvisorPlugins ¶ added in v0.2.0
func GetRegisteredAdvisorPlugins() map[string]AdvisorPluginInitFunc
func RegisterAdvisorPlugin ¶ added in v0.2.0
func RegisterAdvisorPlugin(plugin string, f AdvisorPluginInitFunc)
Types ¶
type AdvisorPluginInitFunc ¶ added in v0.2.0
type AdvisorPluginInitFunc func(pluginName string, conf *config.Configuration, extraConf interface{}, emitterPool metricspool.MetricsEmitterPool, metaServer *metaserver.MetaServer, metaCache metacache.MetaCache) (SysAdvisorPlugin, error)
AdvisorPluginInitFunc is used to initialize a particular inter SysAdvisor plugin.
type DummySysAdvisorPlugin ¶
type DummySysAdvisorPlugin struct{}
func (DummySysAdvisorPlugin) Init ¶
func (d DummySysAdvisorPlugin) Init() error
func (DummySysAdvisorPlugin) Name ¶
func (d DummySysAdvisorPlugin) Name() string
func (DummySysAdvisorPlugin) Run ¶
func (d DummySysAdvisorPlugin) Run(_ context.Context)
Click to show internal directories.
Click to hide internal directories.