project

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

View Source
var SupportedSequences = []string{
	"metric",
	"images",
	"texts",
	"figures",
	"distributions",
	"audios",
}

SupportedSequences list of supported Sequences for `GET /projects/params` request.

Functions

func NormaliseGetProjectParamsRequest

func NormaliseGetProjectParamsRequest(req *request.GetProjectParamsRequest) *request.GetProjectParamsRequest

NormaliseGetProjectParamsRequest normalizes request object for `GET /projects/params` endpoint.

func ValidateGetProjectsRequest

func ValidateGetProjectsRequest(req *request.GetProjectParamsRequest) error

ValidateGetProjectsRequest validates `GET /projects/params` request.

Types

type Service

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

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

func NewService

func NewService(
	tagRepository repositories.TagRepositoryProvider,
	runRepository repositories.RunRepositoryProvider,
	paramRepository repositories.ParamRepositoryProvider,
	metricRepository repositories.MetricRepositoryProvider,
	experimentRepository repositories.ExperimentRepositoryProvider,
	liveUpdatesEnabled bool,
) *Service

NewService creates new Service instance.

func (Service) GetProjectActivity

func (s Service) GetProjectActivity(
	ctx context.Context, namespaceID uint, tzOffset int,
) (*models.ProjectActivity, error)

GetProjectActivity returns project activity.

func (Service) GetProjectInformation

func (s Service) GetProjectInformation() (string, string, bool)

GetProjectInformation returns project information.

func (Service) GetProjectParams

func (s Service) GetProjectParams(
	ctx context.Context, namespaceID uint, req *request.GetProjectParamsRequest,
) (*models.ProjectParams, error)

GetProjectParams returns project params.

Jump to

Keyboard shortcuts

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