micro/registry/options.go

16 lines
173 B
Go
Raw Normal View History

2015-12-19 21:28:08 +03:00
package registry
import (
"time"
)
type Options struct {
Timeout time.Duration
}
func Timeout(t time.Duration) Option {
return func(o *Options) {
o.Timeout = t
}
}