2019-12-13 20:08:26 +02:00
|
|
|
package model
|
|
|
|
|
2019-12-17 22:17:25 +02:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
2019-12-13 20:08:26 +02:00
|
|
|
|
|
|
|
var (
|
|
|
|
ErrAppNotFound = errors.New("app not found")
|
|
|
|
)
|
|
|
|
|
|
|
|
type App struct {
|
2019-12-21 11:56:18 +02:00
|
|
|
InstanceDomain string `json:"instance_domain"`
|
|
|
|
InstanceURL string `json:"instance_url"`
|
|
|
|
ClientID string `json:"client_id"`
|
|
|
|
ClientSecret string `json:"client_secret"`
|
2019-12-13 20:08:26 +02:00
|
|
|
}
|
|
|
|
|
2020-01-28 19:51:00 +02:00
|
|
|
type AppRepo interface {
|
2019-12-13 20:08:26 +02:00
|
|
|
Add(app App) (err error)
|
2019-12-17 22:17:25 +02:00
|
|
|
Get(instanceDomain string) (app App, err error)
|
|
|
|
}
|