diff options
author | Valery Piashchynski <[email protected]> | 2021-09-16 17:12:37 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-09-16 17:12:37 +0300 |
commit | f3491c089b4da77fd8d2bc942a88b6b8d117a8a5 (patch) | |
tree | 32bfffb1f24eeee7b909747cc00a6a6b9fd3ee83 /plugins/informer/interface.go | |
parent | 5d2cd55ab522d4f1e65a833f91146444465a32ac (diff) |
Move plugins to a separate repository
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/informer/interface.go')
-rw-r--r-- | plugins/informer/interface.go | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins/informer/interface.go b/plugins/informer/interface.go deleted file mode 100644 index 9277b85b..00000000 --- a/plugins/informer/interface.go +++ /dev/null @@ -1,34 +0,0 @@ -package informer - -import ( - "context" - - "github.com/spiral/roadrunner/v2/pkg/state/job" - "github.com/spiral/roadrunner/v2/pkg/state/process" -) - -/* -Informer plugin should not receive any other plugin in the Init or via Collects -Because Availabler implementation should present in every plugin -*/ - -// Statistic interfaces ============== - -// Informer used to get workers from particular plugin or set of plugins -type Informer interface { - Workers() []*process.State -} - -// JobsStat interface provide statistic for the jobs plugin -type JobsStat interface { - // JobsState returns slice with the attached drivers information - JobsState(ctx context.Context) ([]*job.State, error) -} - -// Statistic interfaces end ============ - -// Availabler interface should be implemented by every plugin which wish to report to the PHP worker that it available in the RR runtime -type Availabler interface { - // Available method needed to collect all plugins which are available in the runtime. - Available() -} |