informer

package
v2.0.0-beta19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "informer"

Variables

This section is empty.

Functions

This section is empty.

Types

type Informer

type Informer interface {
	Workers() []worker.BaseProcess
}

Informer used to get workers from particular plugin or set of plugins

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func (*Plugin) CollectTarget

func (p *Plugin) CollectTarget(name endure.Named, r Informer) error

CollectTarget resettable service.

func (*Plugin) Collects

func (p *Plugin) Collects() []interface{}

Collects declares services to be collected.

func (*Plugin) Init

func (p *Plugin) Init(log logger.Logger) error

func (*Plugin) Name

func (p *Plugin) Name() string

Name of the service.

func (*Plugin) RPC

func (p *Plugin) RPC() interface{}

RPCService returns associated rpc service.

func (*Plugin) Workers

func (p *Plugin) Workers(name string) ([]worker.BaseProcess, error)

Workers provides BaseProcess slice with workers for the requested plugin

type WorkerList

type WorkerList struct {
	// Workers is list of workers.
	Workers []tools.ProcessState `json:"workers"`
}

WorkerList contains list of workers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL