mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
15 lines
363 B
Go
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
|
|
}
|