2015-12-19 21:28:08 +03:00
|
|
|
package registry
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Options struct {
|
|
|
|
Timeout time.Duration
|
2015-12-31 21:14:40 +03:00
|
|
|
|
|
|
|
// Other options to be used by registry implementations
|
|
|
|
Options map[string]string
|
2015-12-19 21:28:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func Timeout(t time.Duration) Option {
|
|
|
|
return func(o *Options) {
|
|
|
|
o.Timeout = t
|
|
|
|
}
|
|
|
|
}
|