app.go 396 B

123456789101112131415161718192021
  1. package model
  2. import (
  3. "errors"
  4. )
  5. var (
  6. ErrAppNotFound = errors.New("app not found")
  7. )
  8. type App struct {
  9. InstanceDomain string `json:"instance_domain"`
  10. InstanceURL string `json:"instance_url"`
  11. ClientID string `json:"client_id"`
  12. ClientSecret string `json:"client_secret"`
  13. }
  14. type AppRepo interface {
  15. Add(app App) (err error)
  16. Get(instanceDomain string) (app App, err error)
  17. }