add ability to set address
This commit is contained in:
parent
78b7ee9078
commit
a3ecd36763
@ -122,6 +122,13 @@ func Transport(t transport.Transport) Option {
|
|||||||
|
|
||||||
// Convenience options
|
// Convenience options
|
||||||
|
|
||||||
|
// Address sets the address of the server
|
||||||
|
func Address(addr string) Option {
|
||||||
|
return func(o *Options) {
|
||||||
|
o.Server.Init(server.Address(addr))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Name of the service
|
// Name of the service
|
||||||
func Name(n string) Option {
|
func Name(n string) Option {
|
||||||
return func(o *Options) {
|
return func(o *Options) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user