mirror of
https://git.freesoftwareextremist.com/bloat
synced 2024-11-14 10:14:12 +00:00
21 lines
396 B
Go
21 lines
396 B
Go
package model
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
ErrAppNotFound = errors.New("app not found")
|
|
)
|
|
|
|
type App struct {
|
|
InstanceDomain string `json:"instance_domain"`
|
|
InstanceURL string `json:"instance_url"`
|
|
ClientID string `json:"client_id"`
|
|
ClientSecret string `json:"client_secret"`
|
|
}
|
|
|
|
type AppRepo interface {
|
|
Add(app App) (err error)
|
|
Get(instanceDomain string) (app App, err error)
|
|
}
|