bloat/model/app.go

22 lines
396 B
Go
Raw Permalink Normal View History

2019-12-13 18:08:26 +00:00
package model
import (
"errors"
)
2019-12-13 18:08:26 +00:00
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"`
2019-12-13 18:08:26 +00:00
}
2020-01-28 17:51:00 +00:00
type AppRepo interface {
2019-12-13 18:08:26 +00:00
Add(app App) (err error)
Get(instanceDomain string) (app App, err error)
}