mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-23 21:44:41 +02:00
support use of listen options (#2536)
* feat: support use of listen options * style: Adjust the import order of packages.
This commit is contained in:
@@ -304,6 +304,13 @@ func WrapSubscriber(w ...server.SubscriberWrapper) Option {
|
||||
}
|
||||
}
|
||||
|
||||
// Add opt to server option
|
||||
func AddListenOption(option server.Option) Option {
|
||||
return func(o *Options) {
|
||||
o.Server.Init(option)
|
||||
}
|
||||
}
|
||||
|
||||
// Before and Afters
|
||||
|
||||
// BeforeStart run funcs before service starts
|
||||
|
||||
Reference in New Issue
Block a user