Removed router watcher code duplication. Small code refactor.

This commit is contained in:
Milos Gajdos
2019-06-13 15:12:07 +01:00
parent 6e669d4611
commit 6a33b7576b
6 changed files with 42 additions and 94 deletions

View File

@@ -1,13 +1,6 @@
// Package router provides an interface for micro network router
package router
import "errors"
var (
// ErrNotImplemented is returned when some functionality has not been implemented
ErrNotImplemented = errors.New("not implemented")
)
// Router is micro network router
type Router interface {
// Init initializes the router with options