blob: 4871a8a7fc0ab73eed968cc33e020d5c3b0a08a2 (
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
29
30
31
32
33
34
35
36
37
38
39
|
package grpc
import (
"github.com/spiral/errors"
"github.com/spiral/roadrunner/v2/plugins/config"
"github.com/spiral/roadrunner/v2/plugins/logger"
)
const (
name string = "grpc"
)
type Plugin struct {
cfg config.Configurer
log logger.Logger
}
func (p *Plugin) Init(cfg config.Configurer, log logger.Logger) error {
const op = errors.Op("grpc_plugin_init")
return nil
}
func (p *Plugin) Serve() chan error {
const op = errors.Op("grpc_plugin_serve")
errCh := make(chan error, 1)
return errCh
}
func (p *Plugin) Stop() error {
return nil
}
func (p *Plugin) Available() {}
func (p *Plugin) Name() string {
return name
}
|