Files
fn-serverless/api/ifaces/listeners.go
C Cirello 3ca137a01c Upgrade to Go 1.7 (#128)
* Upgrade to stdlib context package
* Modernized syntax
2016-10-06 20:10:00 +02: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
}