informer

package module
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 5 Imported by: 1

README

informer

RRv2 informer plugin

Documentation

Index

Constants

View Source
const PluginName = "informer"

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

func (*Plugin) CollectJobs

func (p *Plugin) CollectJobs(name endure.Named, j informer.JobsStat)

func (*Plugin) CollectWorkers

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

CollectWorkers obtains plugins with workers inside.

func (*Plugin) Collects

func (p *Plugin) Collects() []any

Collects declares services to be collected.

func (*Plugin) Init

func (p *Plugin) Init() error

func (*Plugin) Jobs

func (p *Plugin) Jobs(name string) []*jobs.State

Jobs provides information about jobs for the registered plugin using jobs

func (*Plugin) Name

func (p *Plugin) Name() string

Name of the service.

func (*Plugin) RPC

func (p *Plugin) RPC() any

RPC returns associated rpc service.

func (*Plugin) Workers

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

Workers provides BaseProcess slice with workers for the requested plugin

type WorkerList

type WorkerList struct {
	// Workers are list of workers.
	Workers []*process.State `json:"workers"`
}

WorkerList contains list of workers.

func (*WorkerList) Len

func (w *WorkerList) Len() int

func (*WorkerList) Less

func (w *WorkerList) Less(i, j int) bool

func (*WorkerList) Swap

func (w *WorkerList) Swap(i, j int)

Jump to

Keyboard shortcuts

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