mirror of
https://github.com/pushbits/server.git
synced 2025-05-29 16:56:34 +02:00
Repair channels if necessary
This commit is contained in:
parent
f5560b0c46
commit
2e2326843f
12 changed files with 114 additions and 31 deletions
13
internal/database/interfaces.go
Normal file
13
internal/database/interfaces.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package database
|
||||
|
||||
import (
|
||||
"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) error
|
||||
IsOrphan(a *model.Application, u *model.User) (bool, error)
|
||||
RepairApplication(a *model.Application, u *model.User) error
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue