mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
Add ErrNotFound
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
package registry
|
package registry
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
)
|
||||||
|
|
||||||
// The registry provides an interface for service discovery
|
// The registry provides an interface for service discovery
|
||||||
// and an abstraction over varying implementations
|
// and an abstraction over varying implementations
|
||||||
// {consul, etcd, zookeeper, ...}
|
// {consul, etcd, zookeeper, ...}
|
||||||
@@ -18,6 +22,8 @@ type RegisterOption func(*RegisterOptions)
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
DefaultRegistry = newConsulRegistry([]string{})
|
DefaultRegistry = newConsulRegistry([]string{})
|
||||||
|
|
||||||
|
ErrNotFound = errors.New("not found")
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewRegistry(addrs []string, opt ...Option) Registry {
|
func NewRegistry(addrs []string, opt ...Option) Registry {
|
||||||
|
Reference in New Issue
Block a user