fasten-onprem/backend/pkg/database/interface.go

18 lines
419 B
Go
Raw Normal View History

2022-08-25 19:26:29 -06:00
package database
import (
"context"
"github.com/fastenhealth/fastenhealth-onprem/backend/pkg/models"
)
type DatabaseRepository interface {
Close() error
GetCurrentUser() models.User
2022-08-25 19:26:29 -06:00
UpsertProfile(context.Context, *models.Profile) error
UpsertOrganziation(context.Context, *models.Organization) error
CreateSource(context.Context, *models.Source) error
GetSources(context.Context) ([]models.Source, error)
2022-08-25 19:26:29 -06:00
}