informer

package module
v6.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 10 Imported by: 0

README

Informer plugin (bundled)

It's used internally to report the worker's status and offer a high-level API for the RoadRunner-PHP packages.

Documentation

Index

Constants

View Source
const PluginName = "informer"

Variables

This section is empty.

Functions

This section is empty.

Types

type Informer

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

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

type JobsStat

type JobsStat interface {
	Named
	// JobsState returns a slice with the attached drivers information
	JobsState(ctx context.Context) ([]*jobs.State, error)
}

JobsStat interface provides statistic for the job plugin

type Named

type Named interface {
	// Name returns the user-friendly name of the plugin
	Name() string
}

type Plugin

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

func (*Plugin) Collects

func (p *Plugin) Collects() []*dep.In

Collects declare 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() any

RPC returns the informer RPC service served over goridge net/rpc.

type WorkerManager

type WorkerManager interface {
	Named
	// RemoveWorker removes worker from the pool.
	RemoveWorker(ctx context.Context) error
	// AddWorker adds worker to the pool.
	AddWorker() error
}

Jump to

Keyboard shortcuts

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