1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 01:05:35 -05:00

Rename errors with Error prefix

This commit is contained in:
v2ray
2016-01-30 12:23:56 +01:00
parent 2f76680fe9
commit f34e253ea3
10 changed files with 31 additions and 37 deletions

View File

@@ -1,15 +1,9 @@
package router
import (
"errors"
v2net "github.com/v2ray/v2ray-core/common/net"
)
var (
RouterNotFound = errors.New("Router not found.")
)
type Router interface {
TakeDetour(v2net.Destination) (string, error)
}
@@ -32,5 +26,5 @@ func CreateRouter(name string, rawConfig interface{}) (Router, error) {
if factory, found := routerCache[name]; found {
return factory.Create(rawConfig)
}
return nil, RouterNotFound
return nil, ErrorRouterNotFound
}