Allow setting of timeout for registry

This commit is contained in:
Asim
2015-12-19 18:28:08 +00:00
parent 539b3d045c
commit d7b3765c71
3 changed files with 34 additions and 4 deletions

View File

@@ -8,9 +8,7 @@ type Registry interface {
Watch() (Watcher, error)
}
type options struct{}
type Option func(*options)
type Option func(*Options)
var (
DefaultRegistry = newConsulRegistry([]string{})