Documentation ¶
Index ¶
- Variables
- func NormaliseGetProjectParamsRequest(req *request.GetProjectParamsRequest) *request.GetProjectParamsRequest
- func ValidateGetProjectsRequest(req *request.GetProjectParamsRequest) error
- type Service
- func (s Service) GetProjectActivity(ctx context.Context, namespaceID uint, tzOffset int) (*models.ProjectActivity, error)
- func (s Service) GetProjectInformation() (string, string, bool)
- func (s Service) GetProjectParams(ctx context.Context, namespaceID uint, req *request.GetProjectParamsRequest) (*models.ProjectParams, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.