First draft of modifying RunnerListener to CallListener to get it closer to the action (and named better).

This commit is contained in:
Travis Reeder
2017-10-09 18:38:29 -06:00
parent 1237a7bf82
commit d080c23981
10 changed files with 95 additions and 70 deletions

8
api/server/listeners.go Normal file
View File

@@ -0,0 +1,8 @@
package server
import "github.com/fnproject/fn/api/extenders"
// AddCallListener adds a listener that will be fired before and after a function is executed.
func (s *Server) AddCallListener(listener extenders.CallListener) {
s.Agent.AddCallListener(listener)
}