informer

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "informer"

Variables

This section is empty.

Functions

This section is empty.

Types

type Availabler added in v2.2.0

type Availabler interface {
	// Available method needed to collect all plugins which are available in the runtime.
	Available()
}

Availabler interface should be implemented by every plugin which wish to report to the PHP worker that it available in the RR runtime

type Informer

type Informer interface {
	Workers() []process.State
}

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

type Plugin

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

func (*Plugin) CollectPlugins added in v2.2.0

func (p *Plugin) CollectPlugins(name endure.Named, l Availabler)

CollectPlugins collects all RR plugins

func (*Plugin) CollectWorkers added in v2.2.0

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

CollectWorkers obtains plugins with workers inside.

func (*Plugin) Collects

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

Collects declares services to be collected.

func (*Plugin) Init

func (p *Plugin) Init() error

func (*Plugin) Name

func (p *Plugin) Name() string

Name of the service.

func (*Plugin) RPC

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

RPC returns associated rpc service.

func (*Plugin) Workers

func (p *Plugin) Workers(name string) ([]process.State, error)

Workers provides BaseProcess slice with workers for the requested plugin

type WorkerList

type WorkerList struct {
	// Workers is list of workers.
	Workers []process.State `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