Documentation ¶
Index ¶
- type ConfigurationService
- type ExperimentHistoryService
- func (_m *ExperimentHistoryService) CreateExperimentHistory(_a0 *models.Experiment) (*models.ExperimentHistory, error)
- func (_m *ExperimentHistoryService) GetDBRecord(experimentId models.ID, version int64) (*models.ExperimentHistory, error)
- func (_m *ExperimentHistoryService) GetExperimentHistory(experimentId int64, version int64) (*models.ExperimentHistory, error)
- func (_m *ExperimentHistoryService) ListExperimentHistory(experimentId int64, params services.ListExperimentHistoryParams) ([]*models.ExperimentHistory, *pagination.Paging, error)
- type ExperimentService
- func (_m *ExperimentService) CreateExperiment(settings models.Settings, expData services.CreateExperimentRequestBody) (*models.Experiment, error)
- func (_m *ExperimentService) DisableExperiment(projectId int64, experimentId int64) error
- func (_m *ExperimentService) EnableExperiment(settings models.Settings, experimentId int64) error
- func (_m *ExperimentService) GetDBRecord(projectId models.ID, experimentId models.ID) (*models.Experiment, error)
- func (_m *ExperimentService) GetExperiment(projectId int64, experimentId int64) (*models.Experiment, error)
- func (_m *ExperimentService) ListAllExperiments(projectId models.ID, params services.ListExperimentsParams) ([]*models.Experiment, error)
- func (_m *ExperimentService) ListExperiments(projectId int64, params services.ListExperimentsParams) ([]*models.Experiment, *pagination.Paging, error)
- func (_m *ExperimentService) RunCustomValidation(experiment models.Experiment, settings models.Settings, ...) error
- func (_m *ExperimentService) UpdateExperiment(settings models.Settings, experimentId int64, ...) (*models.Experiment, error)
- func (_m *ExperimentService) ValidatePairwiseExperimentOrthogonality(projectId int64, experiments []*models.Experiment, segmenters []string) error
- func (_m *ExperimentService) ValidateProjectExperimentSegmentersExist(projectId int64, experiments []*models.Experiment, segmenters []string) error
- type MLPService
- type MessageQueueService
- func (_m *MessageQueueService) PublishExperimentMessage(updateType string, experiment *pubsub.Experiment) error
- func (_m *MessageQueueService) PublishProjectSegmenterMessage(updateType string, segmenter *segmenters.SegmenterConfiguration, ...) error
- func (_m *MessageQueueService) PublishProjectSettingsMessage(updateType string, settings *pubsub.ProjectSettings) error
- type ProjectSettingsService
- func (_m *ProjectSettingsService) CreateProjectSettings(projectId int64, settings services.CreateProjectSettingsRequestBody) (*models.Settings, error)
- func (_m *ProjectSettingsService) GetDBRecord(projectId models.ID) (*models.Settings, error)
- func (_m *ProjectSettingsService) GetExperimentVariables(projectId int64) (*[]string, error)
- func (_m *ProjectSettingsService) GetProjectSettings(projectId int64) (*models.Settings, error)
- func (_m *ProjectSettingsService) ListProjects() (*[]models.Project, error)
- func (_m *ProjectSettingsService) UpdateProjectSettings(projectId int64, settings services.UpdateProjectSettingsRequestBody) (*models.Settings, error)
- type SegmentHistoryService
- func (_m *SegmentHistoryService) CreateSegmentHistory(_a0 *models.Segment) (*models.SegmentHistory, error)
- func (_m *SegmentHistoryService) DeleteSegmentHistory(segmentId int64) error
- func (_m *SegmentHistoryService) GetDBRecord(segmentId models.ID, version int64) (*models.SegmentHistory, error)
- func (_m *SegmentHistoryService) GetSegmentHistory(segmentId int64, version int64) (*models.SegmentHistory, error)
- func (_m *SegmentHistoryService) ListSegmentHistory(segmentId int64, params services.ListSegmentHistoryParams) ([]*models.SegmentHistory, *pagination.Paging, error)
- type SegmentService
- func (_m *SegmentService) CreateSegment(settings models.Settings, segmentData services.CreateSegmentRequestBody) (*models.Segment, error)
- func (_m *SegmentService) DeleteSegment(projectId int64, segmentId int64) error
- func (_m *SegmentService) GetDBRecord(projectId models.ID, segmentId models.ID) (*models.Segment, error)
- func (_m *SegmentService) GetSegment(projectId int64, segmentId int64) (*models.Segment, error)
- func (_m *SegmentService) ListSegments(projectId int64, params services.ListSegmentsParams) ([]*models.Segment, *pagination.Paging, error)
- func (_m *SegmentService) UpdateSegment(settings models.Settings, segmentId int64, ...) (*models.Segment, error)
- type SegmenterService
- func (_m *SegmenterService) CreateCustomSegmenter(projectId int64, customSegmenterData services.CreateCustomSegmenterRequestBody) (*models.CustomSegmenter, error)
- func (_m *SegmenterService) DeleteCustomSegmenter(projectId int64, name string) error
- func (_m *SegmenterService) GetCustomSegmenter(projectId int64, name string) (*models.CustomSegmenter, error)
- func (_m *SegmenterService) GetDBRecord(projectId models.ID, name string) (*models.CustomSegmenter, error)
- func (_m *SegmenterService) GetFormattedSegmenters(projectId int64, expSegment models.ExperimentSegmentRaw) (map[string]*[]interface{}, error)
- func (_m *SegmenterService) GetSegmenter(projectId int64, name string) (*schema.Segmenter, error)
- func (_m *SegmenterService) GetSegmenterConfigurations(projectId int64, segmenterNames []string) ([]*segmenters.SegmenterConfiguration, error)
- func (_m *SegmenterService) GetSegmenterTypes(projectId int64) (map[string]schema.SegmenterType, error)
- func (_m *SegmenterService) ListGlobalSegmenters() ([]*schema.Segmenter, error)
- func (_m *SegmenterService) ListSegmenters(projectId int64, params services.ListSegmentersParams) ([]*schema.Segmenter, error)
- func (_m *SegmenterService) UpdateCustomSegmenter(projectId int64, name string, ...) (*models.CustomSegmenter, error)
- func (_m *SegmenterService) ValidateExperimentSegment(projectId int64, userSegmenters []string, ...) error
- func (_m *SegmenterService) ValidateExperimentVariables(projectId int64, projectSegmenters models.ProjectSegmenters) error
- func (_m *SegmenterService) ValidatePrereqSegmenters(projectId int64, _a1 []string) error
- func (_m *SegmenterService) ValidateRequiredSegmenters(projectId int64, _a1 []string) error
- func (_m *SegmenterService) ValidateSegmentOrthogonality(projectId int64, userSegmenters []string, ...) error
- type TreatmentHistoryService
- func (_m *TreatmentHistoryService) CreateTreatmentHistory(_a0 *models.Treatment) (*models.TreatmentHistory, error)
- func (_m *TreatmentHistoryService) DeleteTreatmentHistory(treatmentId int64) error
- func (_m *TreatmentHistoryService) GetDBRecord(treatmentId models.ID, version int64) (*models.TreatmentHistory, error)
- func (_m *TreatmentHistoryService) GetTreatmentHistory(treatmentId int64, version int64) (*models.TreatmentHistory, error)
- func (_m *TreatmentHistoryService) ListTreatmentHistory(treatmentId int64, params services.ListTreatmentHistoryParams) ([]*models.TreatmentHistory, *pagination.Paging, error)
- type TreatmentService
- func (_m *TreatmentService) CreateTreatment(settings models.Settings, treatmentData services.CreateTreatmentRequestBody) (*models.Treatment, error)
- func (_m *TreatmentService) DeleteTreatment(projectId int64, treatmentId int64) error
- func (_m *TreatmentService) GetDBRecord(projectId models.ID, treatmentId models.ID) (*models.Treatment, error)
- func (_m *TreatmentService) GetTreatment(projectId int64, treatmentId int64) (*models.Treatment, error)
- func (_m *TreatmentService) ListTreatments(projectId int64, params services.ListTreatmentsParams) ([]*models.Treatment, *pagination.Paging, error)
- func (_m *TreatmentService) RunCustomValidation(treatmentConfig map[string]interface{}, settings models.Settings, ...) error
- func (_m *TreatmentService) UpdateTreatment(settings models.Settings, treatmentId int64, ...) (*models.Treatment, error)
- type ValidationService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationService ¶
ConfigurationService is an autogenerated mock type for the ConfigurationService type
func NewConfigurationService ¶
func NewConfigurationService(t mockConstructorTestingTNewConfigurationService) *ConfigurationService
NewConfigurationService creates a new instance of ConfigurationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ConfigurationService) GetTreatmentServiceConfig ¶
func (_m *ConfigurationService) GetTreatmentServiceConfig() schema.TreatmentServiceConfig
GetTreatmentServiceConfig provides a mock function with given fields:
type ExperimentHistoryService ¶
ExperimentHistoryService is an autogenerated mock type for the ExperimentHistoryService type
func (*ExperimentHistoryService) CreateExperimentHistory ¶
func (_m *ExperimentHistoryService) CreateExperimentHistory(_a0 *models.Experiment) (*models.ExperimentHistory, error)
CreateExperimentHistory provides a mock function with given fields: _a0
func (*ExperimentHistoryService) GetDBRecord ¶
func (_m *ExperimentHistoryService) GetDBRecord(experimentId models.ID, version int64) (*models.ExperimentHistory, error)
GetDBRecord provides a mock function with given fields: experimentId, version
func (*ExperimentHistoryService) GetExperimentHistory ¶
func (_m *ExperimentHistoryService) GetExperimentHistory(experimentId int64, version int64) (*models.ExperimentHistory, error)
GetExperimentHistory provides a mock function with given fields: experimentId, version
func (*ExperimentHistoryService) ListExperimentHistory ¶
func (_m *ExperimentHistoryService) ListExperimentHistory(experimentId int64, params services.ListExperimentHistoryParams) ([]*models.ExperimentHistory, *pagination.Paging, error)
ListExperimentHistory provides a mock function with given fields: experimentId, params
type ExperimentService ¶
ExperimentService is an autogenerated mock type for the ExperimentService type
func NewExperimentService ¶
func NewExperimentService(t mockConstructorTestingTNewExperimentService) *ExperimentService
NewExperimentService creates a new instance of ExperimentService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExperimentService) CreateExperiment ¶
func (_m *ExperimentService) CreateExperiment(settings models.Settings, expData services.CreateExperimentRequestBody) (*models.Experiment, error)
CreateExperiment provides a mock function with given fields: settings, expData
func (*ExperimentService) DisableExperiment ¶
func (_m *ExperimentService) DisableExperiment(projectId int64, experimentId int64) error
DisableExperiment provides a mock function with given fields: projectId, experimentId
func (*ExperimentService) EnableExperiment ¶
func (_m *ExperimentService) EnableExperiment(settings models.Settings, experimentId int64) error
EnableExperiment provides a mock function with given fields: settings, experimentId
func (*ExperimentService) GetDBRecord ¶
func (_m *ExperimentService) GetDBRecord(projectId models.ID, experimentId models.ID) (*models.Experiment, error)
GetDBRecord provides a mock function with given fields: projectId, experimentId
func (*ExperimentService) GetExperiment ¶
func (_m *ExperimentService) GetExperiment(projectId int64, experimentId int64) (*models.Experiment, error)
GetExperiment provides a mock function with given fields: projectId, experimentId
func (*ExperimentService) ListAllExperiments ¶
func (_m *ExperimentService) ListAllExperiments(projectId models.ID, params services.ListExperimentsParams) ([]*models.Experiment, error)
ListAllExperiments provides a mock function with given fields: projectId, params
func (*ExperimentService) ListExperiments ¶
func (_m *ExperimentService) ListExperiments(projectId int64, params services.ListExperimentsParams) ([]*models.Experiment, *pagination.Paging, error)
ListExperiments provides a mock function with given fields: projectId, params
func (*ExperimentService) RunCustomValidation ¶
func (_m *ExperimentService) RunCustomValidation(experiment models.Experiment, settings models.Settings, context services.ValidationContext, operationType services.OperationType) error
RunCustomValidation provides a mock function with given fields: experiment, settings, context, operationType
func (*ExperimentService) UpdateExperiment ¶
func (_m *ExperimentService) UpdateExperiment(settings models.Settings, experimentId int64, expData services.UpdateExperimentRequestBody) (*models.Experiment, error)
UpdateExperiment provides a mock function with given fields: settings, experimentId, expData
func (*ExperimentService) ValidatePairwiseExperimentOrthogonality ¶
func (_m *ExperimentService) ValidatePairwiseExperimentOrthogonality(projectId int64, experiments []*models.Experiment, segmenters []string) error
ValidatePairwiseExperimentOrthogonality provides a mock function with given fields: projectId, experiments, segmenters
func (*ExperimentService) ValidateProjectExperimentSegmentersExist ¶
func (_m *ExperimentService) ValidateProjectExperimentSegmentersExist(projectId int64, experiments []*models.Experiment, segmenters []string) error
ValidateProjectExperimentSegmentersExist provides a mock function with given fields: projectId, experiments, segmenters
type MLPService ¶
MLPService is an autogenerated mock type for the MLPService type
func (*MLPService) GetProject ¶
func (_m *MLPService) GetProject(id int64) (*client.Project, error)
GetProject provides a mock function with given fields: id
type MessageQueueService ¶
MessageQueueService is an autogenerated mock type for the MessageQueueService type
func NewMessageQueueService ¶
func NewMessageQueueService(t mockConstructorTestingTNewMessageQueueService) *MessageQueueService
NewMessageQueueService creates a new instance of MessageQueueService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MessageQueueService) PublishExperimentMessage ¶
func (_m *MessageQueueService) PublishExperimentMessage(updateType string, experiment *pubsub.Experiment) error
PublishExperimentMessage provides a mock function with given fields: updateType, experiment
func (*MessageQueueService) PublishProjectSegmenterMessage ¶
func (_m *MessageQueueService) PublishProjectSegmenterMessage(updateType string, segmenter *segmenters.SegmenterConfiguration, projectId int64) error
PublishProjectSegmenterMessage provides a mock function with given fields: updateType, segmenter, projectId
func (*MessageQueueService) PublishProjectSettingsMessage ¶
func (_m *MessageQueueService) PublishProjectSettingsMessage(updateType string, settings *pubsub.ProjectSettings) error
PublishProjectSettingsMessage provides a mock function with given fields: updateType, settings
type ProjectSettingsService ¶
ProjectSettingsService is an autogenerated mock type for the ProjectSettingsService type
func (*ProjectSettingsService) CreateProjectSettings ¶
func (_m *ProjectSettingsService) CreateProjectSettings(projectId int64, settings services.CreateProjectSettingsRequestBody) (*models.Settings, error)
CreateProjectSettings provides a mock function with given fields: projectId, settings
func (*ProjectSettingsService) GetDBRecord ¶
GetDBRecord provides a mock function with given fields: projectId
func (*ProjectSettingsService) GetExperimentVariables ¶
func (_m *ProjectSettingsService) GetExperimentVariables(projectId int64) (*[]string, error)
GetExperimentVariables provides a mock function with given fields: projectId
func (*ProjectSettingsService) GetProjectSettings ¶
func (_m *ProjectSettingsService) GetProjectSettings(projectId int64) (*models.Settings, error)
GetProjectSettings provides a mock function with given fields: projectId
func (*ProjectSettingsService) ListProjects ¶
func (_m *ProjectSettingsService) ListProjects() (*[]models.Project, error)
ListProjects provides a mock function with given fields:
func (*ProjectSettingsService) UpdateProjectSettings ¶
func (_m *ProjectSettingsService) UpdateProjectSettings(projectId int64, settings services.UpdateProjectSettingsRequestBody) (*models.Settings, error)
UpdateProjectSettings provides a mock function with given fields: projectId, settings
type SegmentHistoryService ¶
SegmentHistoryService is an autogenerated mock type for the SegmentHistoryService type
func (*SegmentHistoryService) CreateSegmentHistory ¶
func (_m *SegmentHistoryService) CreateSegmentHistory(_a0 *models.Segment) (*models.SegmentHistory, error)
CreateSegmentHistory provides a mock function with given fields: _a0
func (*SegmentHistoryService) DeleteSegmentHistory ¶
func (_m *SegmentHistoryService) DeleteSegmentHistory(segmentId int64) error
DeleteSegmentHistory provides a mock function with given fields: segmentId
func (*SegmentHistoryService) GetDBRecord ¶
func (_m *SegmentHistoryService) GetDBRecord(segmentId models.ID, version int64) (*models.SegmentHistory, error)
GetDBRecord provides a mock function with given fields: segmentId, version
func (*SegmentHistoryService) GetSegmentHistory ¶
func (_m *SegmentHistoryService) GetSegmentHistory(segmentId int64, version int64) (*models.SegmentHistory, error)
GetSegmentHistory provides a mock function with given fields: segmentId, version
func (*SegmentHistoryService) ListSegmentHistory ¶
func (_m *SegmentHistoryService) ListSegmentHistory(segmentId int64, params services.ListSegmentHistoryParams) ([]*models.SegmentHistory, *pagination.Paging, error)
ListSegmentHistory provides a mock function with given fields: segmentId, params
type SegmentService ¶
SegmentService is an autogenerated mock type for the SegmentService type
func (*SegmentService) CreateSegment ¶
func (_m *SegmentService) CreateSegment(settings models.Settings, segmentData services.CreateSegmentRequestBody) (*models.Segment, error)
CreateSegment provides a mock function with given fields: settings, segmentData
func (*SegmentService) DeleteSegment ¶
func (_m *SegmentService) DeleteSegment(projectId int64, segmentId int64) error
DeleteSegment provides a mock function with given fields: projectId, segmentId
func (*SegmentService) GetDBRecord ¶
func (_m *SegmentService) GetDBRecord(projectId models.ID, segmentId models.ID) (*models.Segment, error)
GetDBRecord provides a mock function with given fields: projectId, segmentId
func (*SegmentService) GetSegment ¶
GetSegment provides a mock function with given fields: projectId, segmentId
func (*SegmentService) ListSegments ¶
func (_m *SegmentService) ListSegments(projectId int64, params services.ListSegmentsParams) ([]*models.Segment, *pagination.Paging, error)
ListSegments provides a mock function with given fields: projectId, params
func (*SegmentService) UpdateSegment ¶
func (_m *SegmentService) UpdateSegment(settings models.Settings, segmentId int64, segmentData services.UpdateSegmentRequestBody) (*models.Segment, error)
UpdateSegment provides a mock function with given fields: settings, segmentId, segmentData
type SegmenterService ¶
SegmenterService is an autogenerated mock type for the SegmenterService type
func (*SegmenterService) CreateCustomSegmenter ¶
func (_m *SegmenterService) CreateCustomSegmenter(projectId int64, customSegmenterData services.CreateCustomSegmenterRequestBody) (*models.CustomSegmenter, error)
CreateCustomSegmenter provides a mock function with given fields: projectId, customSegmenterData
func (*SegmenterService) DeleteCustomSegmenter ¶
func (_m *SegmenterService) DeleteCustomSegmenter(projectId int64, name string) error
DeleteCustomSegmenter provides a mock function with given fields: projectId, name
func (*SegmenterService) GetCustomSegmenter ¶
func (_m *SegmenterService) GetCustomSegmenter(projectId int64, name string) (*models.CustomSegmenter, error)
GetCustomSegmenter provides a mock function with given fields: projectId, name
func (*SegmenterService) GetDBRecord ¶
func (_m *SegmenterService) GetDBRecord(projectId models.ID, name string) (*models.CustomSegmenter, error)
GetDBRecord provides a mock function with given fields: projectId, name
func (*SegmenterService) GetFormattedSegmenters ¶
func (_m *SegmenterService) GetFormattedSegmenters(projectId int64, expSegment models.ExperimentSegmentRaw) (map[string]*[]interface{}, error)
GetFormattedSegmenters provides a mock function with given fields: projectId, expSegment
func (*SegmenterService) GetSegmenter ¶
GetSegmenter provides a mock function with given fields: projectId, name
func (*SegmenterService) GetSegmenterConfigurations ¶
func (_m *SegmenterService) GetSegmenterConfigurations(projectId int64, segmenterNames []string) ([]*segmenters.SegmenterConfiguration, error)
GetSegmenterConfigurations provides a mock function with given fields: projectId, segmenterNames
func (*SegmenterService) GetSegmenterTypes ¶
func (_m *SegmenterService) GetSegmenterTypes(projectId int64) (map[string]schema.SegmenterType, error)
GetSegmenterTypes provides a mock function with given fields: projectId
func (*SegmenterService) ListGlobalSegmenters ¶
func (_m *SegmenterService) ListGlobalSegmenters() ([]*schema.Segmenter, error)
ListGlobalSegmenters provides a mock function with given fields:
func (*SegmenterService) ListSegmenters ¶
func (_m *SegmenterService) ListSegmenters(projectId int64, params services.ListSegmentersParams) ([]*schema.Segmenter, error)
ListSegmenters provides a mock function with given fields: projectId, params
func (*SegmenterService) UpdateCustomSegmenter ¶
func (_m *SegmenterService) UpdateCustomSegmenter(projectId int64, name string, customSegmenterData services.UpdateCustomSegmenterRequestBody) (*models.CustomSegmenter, error)
UpdateCustomSegmenter provides a mock function with given fields: projectId, name, customSegmenterData
func (*SegmenterService) ValidateExperimentSegment ¶
func (_m *SegmenterService) ValidateExperimentSegment(projectId int64, userSegmenters []string, expSegment models.ExperimentSegmentRaw) error
ValidateExperimentSegment provides a mock function with given fields: projectId, userSegmenters, expSegment
func (*SegmenterService) ValidateExperimentVariables ¶
func (_m *SegmenterService) ValidateExperimentVariables(projectId int64, projectSegmenters models.ProjectSegmenters) error
ValidateExperimentVariables provides a mock function with given fields: projectId, projectSegmenters
func (*SegmenterService) ValidatePrereqSegmenters ¶
func (_m *SegmenterService) ValidatePrereqSegmenters(projectId int64, _a1 []string) error
ValidatePrereqSegmenters provides a mock function with given fields: projectId, _a1
func (*SegmenterService) ValidateRequiredSegmenters ¶
func (_m *SegmenterService) ValidateRequiredSegmenters(projectId int64, _a1 []string) error
ValidateRequiredSegmenters provides a mock function with given fields: projectId, _a1
func (*SegmenterService) ValidateSegmentOrthogonality ¶
func (_m *SegmenterService) ValidateSegmentOrthogonality(projectId int64, userSegmenters []string, expSegment models.ExperimentSegmentRaw, allExps []models.Experiment) error
ValidateSegmentOrthogonality provides a mock function with given fields: projectId, userSegmenters, expSegment, allExps
type TreatmentHistoryService ¶
TreatmentHistoryService is an autogenerated mock type for the TreatmentHistoryService type
func (*TreatmentHistoryService) CreateTreatmentHistory ¶
func (_m *TreatmentHistoryService) CreateTreatmentHistory(_a0 *models.Treatment) (*models.TreatmentHistory, error)
CreateTreatmentHistory provides a mock function with given fields: _a0
func (*TreatmentHistoryService) DeleteTreatmentHistory ¶
func (_m *TreatmentHistoryService) DeleteTreatmentHistory(treatmentId int64) error
DeleteTreatmentHistory provides a mock function with given fields: treatmentId
func (*TreatmentHistoryService) GetDBRecord ¶
func (_m *TreatmentHistoryService) GetDBRecord(treatmentId models.ID, version int64) (*models.TreatmentHistory, error)
GetDBRecord provides a mock function with given fields: treatmentId, version
func (*TreatmentHistoryService) GetTreatmentHistory ¶
func (_m *TreatmentHistoryService) GetTreatmentHistory(treatmentId int64, version int64) (*models.TreatmentHistory, error)
GetTreatmentHistory provides a mock function with given fields: treatmentId, version
func (*TreatmentHistoryService) ListTreatmentHistory ¶
func (_m *TreatmentHistoryService) ListTreatmentHistory(treatmentId int64, params services.ListTreatmentHistoryParams) ([]*models.TreatmentHistory, *pagination.Paging, error)
ListTreatmentHistory provides a mock function with given fields: treatmentId, params
type TreatmentService ¶
TreatmentService is an autogenerated mock type for the TreatmentService type
func (*TreatmentService) CreateTreatment ¶
func (_m *TreatmentService) CreateTreatment(settings models.Settings, treatmentData services.CreateTreatmentRequestBody) (*models.Treatment, error)
CreateTreatment provides a mock function with given fields: settings, treatmentData
func (*TreatmentService) DeleteTreatment ¶
func (_m *TreatmentService) DeleteTreatment(projectId int64, treatmentId int64) error
DeleteTreatment provides a mock function with given fields: projectId, treatmentId
func (*TreatmentService) GetDBRecord ¶
func (_m *TreatmentService) GetDBRecord(projectId models.ID, treatmentId models.ID) (*models.Treatment, error)
GetDBRecord provides a mock function with given fields: projectId, treatmentId
func (*TreatmentService) GetTreatment ¶
func (_m *TreatmentService) GetTreatment(projectId int64, treatmentId int64) (*models.Treatment, error)
GetTreatment provides a mock function with given fields: projectId, treatmentId
func (*TreatmentService) ListTreatments ¶
func (_m *TreatmentService) ListTreatments(projectId int64, params services.ListTreatmentsParams) ([]*models.Treatment, *pagination.Paging, error)
ListTreatments provides a mock function with given fields: projectId, params
func (*TreatmentService) RunCustomValidation ¶
func (_m *TreatmentService) RunCustomValidation(treatmentConfig map[string]interface{}, settings models.Settings, context services.ValidationContext, operationType services.OperationType) error
RunCustomValidation provides a mock function with given fields: treatmentConfig, settings, context, operationType
func (*TreatmentService) UpdateTreatment ¶
func (_m *TreatmentService) UpdateTreatment(settings models.Settings, treatmentId int64, treatmentData services.UpdateTreatmentRequestBody) (*models.Treatment, error)
UpdateTreatment provides a mock function with given fields: settings, treatmentId, treatmentData
type ValidationService ¶
ValidationService is an autogenerated mock type for the ValidationService type
func (*ValidationService) Validate ¶
func (_m *ValidationService) Validate(data interface{}) error
Validate provides a mock function with given fields: data
func (*ValidationService) ValidateEntityWithExternalUrl ¶
func (_m *ValidationService) ValidateEntityWithExternalUrl(operation services.OperationType, entityType services.EntityType, data interface{}, context services.ValidationContext, validationUrl *string) error
ValidateEntityWithExternalUrl provides a mock function with given fields: operation, entityType, data, context, validationUrl
func (*ValidationService) ValidateWithExternalUrl ¶
func (_m *ValidationService) ValidateWithExternalUrl(reqBody []byte, validationUrl *string) error
ValidateWithExternalUrl provides a mock function with given fields: reqBody, validationUrl