mirror of
https://github.com/pushbits/server.git
synced 2025-04-29 18:26:49 +02:00
14 lines
505 B
Go
14 lines
505 B
Go
package database
|
|
|
|
import (
|
|
"github.com/pushbits/server/internal/configuration"
|
|
"github.com/pushbits/server/internal/model"
|
|
)
|
|
|
|
// The Dispatcher interface for constructing and destructing channels.
|
|
type Dispatcher interface {
|
|
DeregisterApplication(a *model.Application, u *model.User) error
|
|
UpdateApplication(a *model.Application, behavior *configuration.RepairBehavior) error
|
|
IsOrphan(a *model.Application, u *model.User) (bool, error)
|
|
RepairApplication(a *model.Application, u *model.User) error
|
|
}
|