Skip to content

Commit

Permalink
transport: add WithHost helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
jazg committed Feb 12, 2021
1 parent 5a56195 commit 8aaa5d1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ func (opts Options) WithLogger(logger *zap.Logger) Options {
return opts
}

func (opts Options) WithHost(host string) Options {
opts.Host = host
return opts
}

func (opts Options) WithPort(port uint16) Options {
opts.Port = port
return opts
Expand Down

0 comments on commit 8aaa5d1

Please sign in to comment.