1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-04-17 11:06:19 +02:00

16 lines
173 B
Go
Raw Normal View History

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