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

15 lines
369 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
CreateProviderCredentials(ctx context.Context, providerCreds *models.ProviderCredential) error
2022-08-27 20:34:48 -06:00
GetProviderCredentials(ctx context.Context) ([]models.ProviderCredential, error)
2022-08-25 19:26:29 -06:00
}