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

15
registry/options.go Normal file
View File

@@ -0,0 +1,15 @@
package registry
import (
"time"
)
type Options struct {
Timeout time.Duration
}
func Timeout(t time.Duration) Option {
return func(o *Options) {
o.Timeout = t
}
}