experiment

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service provides service layer to work with `experiment` business logic.

func NewService

func NewService(
	tagRepository repositories.TagRepositoryProvider,
	experimentRepository repositories.ExperimentRepositoryProvider,
) *Service

NewService creates new Service instance.

func (Service) DeleteExperiment

func (s Service) DeleteExperiment(
	ctx context.Context, namespaceID uint, namespaceDefaultExperimentID *int32, req *request.DeleteExperimentRequest,
) error

DeleteExperiment deletes existing experiment.

func (Service) GetExperiment

func (s Service) GetExperiment(
	ctx context.Context, namespaceID uint, req *request.GetExperimentRequest,
) (*models.ExperimentExtended, error)

GetExperiment returns requested experiment.

func (Service) GetExperimentActivity

func (s Service) GetExperimentActivity(
	ctx context.Context, namespaceID uint, req *request.GetExperimentActivityRequest, tzOffset int,
) (*models.ExperimentActivity, error)

GetExperimentActivity returns experiment activity.

func (Service) GetExperimentRuns

func (s Service) GetExperimentRuns(
	ctx context.Context, namespaceID uint, req *request.GetExperimentRunsRequest,
) ([]models.Run, error)

GetExperimentRuns returns list of runs related to requested experiment.

func (Service) GetExperiments

func (s Service) GetExperiments(ctx context.Context, namespaceID uint) ([]models.ExperimentExtended, error)

GetExperiments returns the list of experiments.

func (Service) UpdateExperiment

func (s Service) UpdateExperiment(
	ctx context.Context, namespaceID uint, req *request.UpdateExperimentRequest,
) error

UpdateExperiment updates existing experiment.

Jump to

Keyboard shortcuts

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