Documentation ¶
Index ¶
- Constants
- type Informer
- type JobsStat
- type Plugin
- func (p *Plugin) CollectJobs(name endure.Named, j JobsStat)
- func (p *Plugin) CollectWorkers(name endure.Named, r Informer)
- func (p *Plugin) Collects() []any
- func (p *Plugin) Init() error
- func (p *Plugin) Jobs(name string) []*jobs.State
- func (p *Plugin) Name() string
- func (p *Plugin) RPC() any
- 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 JobsStat ¶
type JobsStat interface { // JobsState returns slice with the attached drivers information JobsState(ctx context.Context) ([]*jobs.State, error) }
JobsStat interface provide statistic for the jobs plugin
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) CollectWorkers ¶
CollectWorkers obtains plugins with workers inside.
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)
Click to show internal directories.
Click to hide internal directories.