Add option to control repair behavior

This commit is contained in:
eikendev 2022-12-04 23:41:22 +01:00
parent 38b615a05d
commit 77765e77a9
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
9 changed files with 49 additions and 22 deletions

View file

@ -1,6 +1,7 @@
package api
import (
"github.com/pushbits/server/internal/configuration"
"github.com/pushbits/server/internal/model"
)
@ -28,7 +29,7 @@ type Database interface {
type Dispatcher interface {
RegisterApplication(id uint, name, token, user string) (string, error)
DeregisterApplication(a *model.Application, u *model.User) error
UpdateApplication(a *model.Application) error
UpdateApplication(a *model.Application, behavior *configuration.RepairBehavior) error
}
// The CredentialsManager interface for updating credentials.