dsp

package
v0.0.0-...-d2a3a15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2025 License: EUPL-1.2 Imports: 13 Imported by: 0

Documentation

Overview

Package simple contains a simple Study lister implementation, made for basic testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StudyManager

type StudyManager struct {
	// contains filtered or unexported fields
}

StudyManager talks to the study catalog.

func New

func New(
	ctx context.Context,
	client dspclient.ClientServiceClient,
	studyCatalogBaseUri string,
	redisClient *redis.Client,
) *StudyManager

func (*StudyManager) GetStudy

func (sm *StudyManager) GetStudy(ctx context.Context, studyId uuid.UUID) (types.Study, error)

GetStudy returns the Study with the given ID.

func (*StudyManager) ListStudies

func (sm *StudyManager) ListStudies(ctx context.Context) ([]types.Study, error)

ListStudies returns all studies.

func (*StudyManager) ListStudyFiles

func (sm *StudyManager) ListStudyFiles(ctx context.Context, studyID uuid.UUID) ([]types.ProviderFile, error)

ListStudyFiles returns a list of all files the user has that matches the data wanted by the specific study.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL