aboutsummaryrefslogtreecommitdiff
path: root/model/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/app.go')
-rw-r--r--model/app.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/model/app.go b/model/app.go
new file mode 100644
index 0000000..52ebdf5
--- /dev/null
+++ b/model/app.go
@@ -0,0 +1,19 @@
+package model
+
+import "errors"
+
+var (
+ ErrAppNotFound = errors.New("app not found")
+)
+
+type App struct {
+ InstanceURL string
+ ClientID string
+ ClientSecret string
+}
+
+type AppRepository interface {
+ Add(app App) (err error)
+ Update(instanceURL string, clientID string, clientSecret string) (err error)
+ Get(instanceURL string) (app App, err error)
+}