Documentation ¶
Index ¶
- Constants
- type Availabler
- type Informer
- type JobsStat
- type Plugin
- func (p *Plugin) CollectJobs(name endure.Named, j JobsStat)
- func (p *Plugin) CollectPlugins(name endure.Named, l Availabler)
- func (p *Plugin) CollectWorkers(name endure.Named, r Informer)
- func (p *Plugin) Collects() []interface{}
- func (p *Plugin) Init(log logger.Logger) error
- func (p *Plugin) Jobs(name string) []*job.State
- func (p *Plugin) Name() string
- func (p *Plugin) RPC() interface{}
- func (p *Plugin) Workers(name string) []*process.State
- type WorkerList
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 JobsStat ¶ added in v2.4.0
type JobsStat interface { // JobsState returns slice with the attached drivers information JobsState(ctx context.Context) ([]*job.State, error) }
JobsStat interface provide statistic for the jobs plugin
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) CollectJobs ¶ added in v2.4.0
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
CollectWorkers obtains plugins with workers inside.
func (*Plugin) Collects ¶
func (p *Plugin) Collects() []interface{}
Collects declares services to be collected.
type WorkerList ¶
type WorkerList struct { // Workers are list of workers. Workers []*process.State `json:"workers"` }
WorkerList contains list of workers.
func (*WorkerList) Len ¶ added in v2.4.0
func (w *WorkerList) Len() int
func (*WorkerList) Less ¶ added in v2.4.0
func (w *WorkerList) Less(i, j int) bool
func (*WorkerList) Swap ¶ added in v2.4.0
func (w *WorkerList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.