noop.NewRegistry function

This commit is contained in:
Asim Aslam 2020-08-09 16:26:51 +01:00
parent e8ea0f85e9
commit f838c33008

View File

@ -39,3 +39,8 @@ func (n *noopRegistry) Watch(...registry.WatchOption) (registry.Watcher, error)
func (n *noopRegistry) String() string { func (n *noopRegistry) String() string {
return "noop" return "noop"
} }
// NewRegistry returns a new noop registry
func NewRegistry(opts ...registry.Option) registry.Registry {
return new(noopRegistry)
}