mirror of
https://github.com/go-micro/go-micro.git
synced 2025-01-11 17:18:28 +02:00
16 lines
173 B
Go
16 lines
173 B
Go
package registry
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Options struct {
|
|
Timeout time.Duration
|
|
}
|
|
|
|
func Timeout(t time.Duration) Option {
|
|
return func(o *Options) {
|
|
o.Timeout = t
|
|
}
|
|
}
|