ipld-eth-server/vendor/github.com/jackpal/go-nat-pmp/recorder.go
Matt K 293dd2e848 Add vendor dir (#16) (#4)
* Add vendor dir so builds dont require dep

* Pin specific version go-eth version
2018-01-29 13:44:18 -06:00

18 lines
355 B
Go

package natpmp
type callObserver interface {
observeCall(msg []byte, result []byte, err error)
}
// A caller that records the RPC call.
type recorder struct {
child caller
observer callObserver
}
func (n *recorder) call(msg []byte) (result []byte, err error) {
result, err = n.child.call(msg)
n.observer.observeCall(msg, result, err)
return
}