blob: 146d1fdc93e40b1d240afa410a3514bfa0f77148 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package ephemeral
import (
priorityqueue "github.com/spiral/roadrunner/v2/common/priority_queue"
"github.com/spiral/roadrunner/v2/plugins/jobs"
"github.com/spiral/roadrunner/v2/plugins/logger"
)
const (
PluginName string = "ephemeral"
)
type Plugin struct {
log logger.Logger
}
func (p *Plugin) Init(log logger.Logger) error {
p.log = log
return nil
}
func (p *Plugin) Name() string {
return PluginName
}
func (p *Plugin) InitJobBroker(q priorityqueue.Queue) (jobs.Consumer, error) {
return NewJobBroker(q)
}
|