From 93b923261cc2fbbb3b5616e90d0c573507d5bdd0 Mon Sep 17 00:00:00 2001 From: Asim Date: Thu, 25 Feb 2016 12:42:31 +0000 Subject: [PATCH] Add ErrNotFound --- registry/registry.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/registry/registry.go b/registry/registry.go index 93284c28..909f8ab3 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -1,5 +1,9 @@ package registry +import ( + "errors" +) + // The registry provides an interface for service discovery // and an abstraction over varying implementations // {consul, etcd, zookeeper, ...} @@ -18,6 +22,8 @@ type RegisterOption func(*RegisterOptions) var ( DefaultRegistry = newConsulRegistry([]string{}) + + ErrNotFound = errors.New("not found") ) func NewRegistry(addrs []string, opt ...Option) Registry {