Files
fn-serverless/api/ifaces/listeners.go
2016-08-09 22:34:28 -07:00

14 lines
379 B
Go

package ifaces
import (
"github.com/iron-io/functions/api/models"
"golang.org/x/net/context"
)
type AppListener interface {
// BeforeAppUpdate called right before storing App in the database
BeforeAppUpdate(ctx context.Context, app *models.App) error
// AfterAppUpdate called after storing App in the database
AfterAppUpdate(ctx context.Context, app *models.App) error
}