summaryrefslogtreecommitdiff
path: root/plugins/informer/interface.go
blob: cd8ab232fe040121e28640e19f2d79a1556a6f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package informer

import (
	"github.com/spiral/roadrunner/v2/pkg/process"
)

// Informer used to get workers from particular plugin or set of plugins
type Informer interface {
	Workers() []process.State
}

// Lister interface used to filter available plugins
type Lister interface {
	// List gets no args, but returns list of the active plugins
	List() []string
}