mirror of
https://github.com/pushbits/server.git
synced 2025-04-30 02:36:53 +02:00
23 lines
545 B
Go
23 lines
545 B
Go
package mockups
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/pushbits/server/internal/model"
|
|
)
|
|
|
|
// MockDispatcher is a dispatcher used for testing - it does not need any storage interface
|
|
type MockDispatcher struct {
|
|
}
|
|
|
|
func (d *MockDispatcher) RegisterApplication(id uint, name, token, user string) (string, error) {
|
|
return fmt.Sprintf("%d-%s", id, name), nil
|
|
}
|
|
|
|
func (d *MockDispatcher) DeregisterApplication(a *model.Application, u *model.User) error {
|
|
return nil
|
|
}
|
|
|
|
func (d *MockDispatcher) UpdateApplication(a *model.Application) error {
|
|
return nil
|
|
}
|