Files
fn-serverless/api/ifaces/listeners.go
Carlos C d5fb1afda7 Revert "Assert License (#224)"
This reverts commit a61c4dab78.
2016-11-06 09:25:12 -08:00

15 lines
363 B
Go

package ifaces
import (
"context"
"github.com/iron-io/functions/api/models"
)
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
}