Skip to content

Commit

Permalink
add WrapCall option at top level
Browse files Browse the repository at this point in the history
  • Loading branch information
Asim Aslam committed Dec 6, 2016
1 parent bee9f03 commit e102599
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 @@ -161,6 +161,13 @@ func WrapClient(w ...client.Wrapper) Option {
}
}

// WrapCall is a convenience method for wrapping a Client CallFunc
func WrapCall(w ...client.CallWrapper) Option {
return func(o *Options) {
o.Client.Init(client.WrapCall(w...))
}
}

// WrapHandler adds a handler Wrapper to a list of options passed into the server
func WrapHandler(w ...server.HandlerWrapper) Option {
return func(o *Options) {
Expand Down

0 comments on commit e102599

Please sign in to comment.