bloat/model/app.go

20 lines
354 B
Go
Raw Normal View History

2019-12-13 18:08:26 +00:00
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)
}