Skip to content

Commit

Permalink
add ability to set address
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Feb 11, 2019
1 parent 78b7ee9 commit a3ecd36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ func Transport(t transport.Transport) Option {

// 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
func Name(n string) Option {
return func(o *Options) {
Expand Down

0 comments on commit a3ecd36

Please sign in to comment.