diff options
author | Valery Piashchynski <[email protected]> | 2020-11-05 15:45:18 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-05 15:45:18 +0300 |
commit | bca69d968ef76a6260956bc169cb07996fbb7724 (patch) | |
tree | bcca677f40d0dd19da5095bfe8dc5c6bacf64566 /plugins/logger/tests | |
parent | 3a0a0190ed130e72ebc150bbb3e3c1582f22dd16 (diff) |
App test
Diffstat (limited to 'plugins/logger/tests')
-rw-r--r-- | plugins/logger/tests/plugin1.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/logger/tests/plugin1.go b/plugins/logger/tests/plugin1.go index ca8701d2..c4ca1371 100644 --- a/plugins/logger/tests/plugin1.go +++ b/plugins/logger/tests/plugin1.go @@ -1 +1,26 @@ package tests + +import ( + "github.com/spiral/roadrunner/v2/plugins/config" + "github.com/spiral/roadrunner/v2/plugins/logger" +) + +type Plugin1 struct { + config config.Configurer + log *logger.ZapLogger +} + +func (p1 *Plugin1) Init(cfg config.Configurer, log *logger.ZapLogger) error { + p1.config = cfg + p1.log = log + return nil +} + +func (p1 *Plugin1) Serve() chan error { + errCh := make(chan error, 1) + return errCh +} + +func (p1 *Plugin1) Stop() error { + return nil +} |