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

19 lines
497 B
Go

package database
import (
"context"
"github.com/fastenhealth/fastenhealth-onprem/backend/pkg/models"
)
//go:generate mockgen -source=interface.go -destination=mock/mock_database.go
type DatabaseRepository interface {
Close() error
GetCurrentUser() models.User
UpsertProfile(context.Context, *models.Profile) error
UpsertOrganziation(context.Context, *models.Organization) error
CreateSource(context.Context, *models.Source) error
GetSources(context.Context) ([]models.Source, error)
}