handlers

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Overview

Package handlers is a generated GoMock package.

Index

Constants

View Source
const (
	Uk              = "K02000001"
	GreatBritain    = "K03000001"
	EnglandAndWales = "K04000001"
	England         = "E92000001"
	NorthernIreland = "N92000002"
	Scotland        = "S92000003"
	Wales           = "W92000004"
)

codes for geography nodes that need to be flattened in a single layer

View Source
const MaxNumOptionsOnPage = 20

MaxNumOptionsOnPage is the maximum number of options that will be presented on a screen. If more options need to be presented, then the hierarchy will be used, if possible.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientError

type ClientError interface {
	Error() string
	Code() int
}

ClientError implements error interface with additional code method

type DatasetClient

type DatasetClient interface {
	Checker(ctx context.Context, check *health.CheckState) error
	Get(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID string) (m dataset.DatasetDetails, err error)
	GetVersion(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, datasetID, edition, version string) (m dataset.Version, err error)
	GetVersionDimensions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version string) (m dataset.VersionDimensions, err error)
	GetOptions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID, edition, version, dimension string, q *dataset.QueryParams) (m dataset.Options, err error)
	GetOptionsInBatches(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version, dimension string, batchSize, maxWorkers int) (m dataset.Options, err error)
	GetOptionsBatchProcess(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version, dimension string, optionIDs *[]string, processBatch dataset.OptionsBatchProcessor, batchSize, maxWorkers int) (err error)
	GetVersionMetadata(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID, edition, version string) (m dataset.Metadata, err error)
	GetEdition(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID, edition string) (m dataset.Edition, err error)
}

DatasetClient is an interface with methods required for a dataset client

type Filter

type Filter struct {
	RenderClient       RenderClient
	FilterClient       FilterClient
	DatasetClient      DatasetClient
	ZebedeeClient      ZebedeeClient
	HierarchyClient    HierarchyClient
	SearchClient       SearchClient
	SearchAPIAuthToken string

	EnableDatasetPreview bool
	APIRouterVersion     string
	BatchSize            int
	BatchMaxWorkers      int
	// contains filtered or unexported fields
}

Filter represents the handlers for Filtering

func NewFilter

func NewFilter(rc RenderClient, fc FilterClient, dc DatasetClient, hc HierarchyClient,
	sc SearchClient, zc ZebedeeClient, apiRouterVersion string, cfg *config.Config) *Filter

NewFilter creates a new instance of Filter

func (*Filter) AddList

func (f *Filter) AddList() http.HandlerFunc

AddList sets a list of values, removing any existing value.

func (*Filter) Age

func (f *Filter) Age() http.HandlerFunc

Age is a handler which will create age values on a filter job

func (*Filter) DimensionAddAll

func (f *Filter) DimensionAddAll() http.HandlerFunc

DimensionAddAll will add all dimension values to a basket

func (*Filter) DimensionRemoveAll

func (f *Filter) DimensionRemoveAll() http.HandlerFunc

DimensionRemoveAll removes all options on a particular dimensions

func (*Filter) DimensionRemoveOne

func (f *Filter) DimensionRemoveOne() http.HandlerFunc

DimensionRemoveOne removes an individual option on a dimensions

func (*Filter) DimensionSelector

func (f *Filter) DimensionSelector() http.HandlerFunc

DimensionSelector controls the render of the range selector template using data from Dataset API and Filter API

func (*Filter) FilterOverview

func (f *Filter) FilterOverview() http.HandlerFunc

FilterOverview controls the render of the filter overview template Contains stubbed data for now - page to be populated by the API

func (*Filter) FilterOverviewClearAll

func (f *Filter) FilterOverviewClearAll() http.HandlerFunc

FilterOverviewClearAll removes all selected options for all dimensions

func (*Filter) GetAllDimensionOptionsJSON

func (f *Filter) GetAllDimensionOptionsJSON() http.HandlerFunc

GetAllDimensionOptionsJSON will return a list of all options from the dataset api

func (*Filter) GetFilterJob

func (f *Filter) GetFilterJob() http.HandlerFunc

GetFilterJob returns the filter output json to the client to form preview for AJAX request

func (*Filter) GetSelectedDimensionOptionsJSON

func (f *Filter) GetSelectedDimensionOptionsJSON() http.HandlerFunc

GetSelectedDimensionOptionsJSON will return a list of selected options from the filter api with corresponding label

func (*Filter) Hierarchy

func (f *Filter) Hierarchy() http.HandlerFunc

Hierarchy controls the creation of a hierarchy page

func (*Filter) HierarchyUpdate

func (f *Filter) HierarchyUpdate() http.HandlerFunc

HierarchyUpdate controls the updating of a hierarchy job

func (*Filter) OutputPage

func (f *Filter) OutputPage() http.HandlerFunc

OutputPage controls the rendering of the preview and download page TODO: refactor to reduce complexity

func (*Filter) Search

func (f *Filter) Search() http.HandlerFunc

Search handles a users search, calling various APIs to form a search results hierarchy page

func (*Filter) SearchUpdate

func (f *Filter) SearchUpdate() http.HandlerFunc

SearchUpdate will update a dimension based on selected search results

func (Filter) Submit

func (f Filter) Submit() http.HandlerFunc

Submit handles the submitting of a filter job through the filter API

func (*Filter) Time

func (f *Filter) Time() http.HandlerFunc

Time specifically handles the data for the time dimension page

func (*Filter) UpdateAge

func (f *Filter) UpdateAge() http.HandlerFunc

UpdateAge is a handler which will update age values on a filter job

func (*Filter) UpdateTime

func (f *Filter) UpdateTime() http.HandlerFunc

UpdateTime will update the time filter based on the radio selected filters by the user

func (*Filter) UseLatest

func (f *Filter) UseLatest() http.HandlerFunc

UseLatest will create a new filter job for the same dataset with the latest version in that edition

type FilterClient

type FilterClient interface {
	Checker(ctx context.Context, check *health.CheckState) error
	GetDimensions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID string, q *filter.QueryParams) (dims filter.Dimensions, eTag string, err error)
	GetDimensionOptions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, q *filter.QueryParams) (opts filter.DimensionOptions, eTag string, err error)
	GetDimensionOptionsInBatches(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, batchSize, maxWorkers int) (opts filter.DimensionOptions, eTag string, err error)
	GetDimensionOptionsBatchProcess(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, processBatch filter.DimensionOptionsBatchProcessor, batchSize, maxWorkers int, checkETag bool) (eTag string, err error)
	GetJobState(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterID string) (f filter.Model, eTag string, err error)
	GetOutput(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterOutputID string) (f filter.Model, err error)
	GetDimension(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string) (dim filter.Dimension, eTag string, err error)
	AddDimensionValue(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name, value, ifMatch string) (eTag string, err error)
	RemoveDimensionValue(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name, value, ifMatch string) (eTag string, err error)
	RemoveDimension(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name, ifMatch string) (eTag string, err error)
	AddDimension(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, name, ifMatch string) (eTag string, err error)
	SetDimensionValues(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, options []string, ifMatch string) (eTag string, err error)
	PatchDimensionValues(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, addValues, removeValues []string, batchSize int, ifMatch string) (latestETag string, err error)
	UpdateBlueprint(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID string, m filter.Model, doSubmit bool, ifMatch string) (filter.Model, string, error)
	CreateBlueprint(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, datasetID, edition, version string, names []string) (filterID, eTag string, err error)
	GetPreview(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterOutputID string) (p filter.Preview, err error)
}

FilterClient contains the methods expected for a filter client

type FilterModelDimensions

type FilterModelDimensions []filter.ModelDimension

FilterModelDimensions represents a list of dimensions

func (FilterModelDimensions) Len

func (d FilterModelDimensions) Len() int

func (FilterModelDimensions) Less

func (d FilterModelDimensions) Less(i, j int) bool

func (FilterModelDimensions) Swap

func (d FilterModelDimensions) Swap(i, j int)

type HierarchyClient

type HierarchyClient interface {
	Checker(ctx context.Context, check *health.CheckState) error
	GetRoot(ctx context.Context, instanceID, name string) (hierarchy.Model, error)
	GetChild(ctx context.Context, instanceID, name, code string) (hierarchy.Model, error)
}

HierarchyClient contains methods expected for a hierarchy client

type MockClientError added in v1.30.0

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

MockClientError is a mock of ClientError interface.

func NewMockClientError added in v1.30.0

func NewMockClientError(ctrl *gomock.Controller) *MockClientError

NewMockClientError creates a new mock instance.

func (*MockClientError) Code added in v1.30.0

func (m *MockClientError) Code() int

Code mocks base method.

func (*MockClientError) EXPECT added in v1.30.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClientError) Error added in v1.30.0

func (m *MockClientError) Error() string

Error mocks base method.

type MockClientErrorMockRecorder added in v1.30.0

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

MockClientErrorMockRecorder is the mock recorder for MockClientError.

func (*MockClientErrorMockRecorder) Code added in v1.30.0

Code indicates an expected call of Code.

func (*MockClientErrorMockRecorder) Error added in v1.30.0

Error indicates an expected call of Error.

type MockDatasetClient

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

MockDatasetClient is a mock of DatasetClient interface.

func NewMockDatasetClient

func NewMockDatasetClient(ctrl *gomock.Controller) *MockDatasetClient

NewMockDatasetClient creates a new mock instance.

func (*MockDatasetClient) Checker added in v1.18.0

func (m *MockDatasetClient) Checker(ctx context.Context, check *healthcheck.CheckState) error

Checker mocks base method.

func (*MockDatasetClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDatasetClient) Get

func (m *MockDatasetClient) Get(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID string) (dataset.DatasetDetails, error)

Get mocks base method.

func (*MockDatasetClient) GetEdition added in v1.29.0

func (m *MockDatasetClient) GetEdition(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID, edition string) (dataset.Edition, error)

GetEdition mocks base method.

func (*MockDatasetClient) GetOptions

func (m *MockDatasetClient) GetOptions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID, edition, version, dimension string, q *dataset.QueryParams) (dataset.Options, error)

GetOptions mocks base method.

func (*MockDatasetClient) GetOptionsBatchProcess added in v1.30.0

func (m *MockDatasetClient) GetOptionsBatchProcess(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version, dimension string, optionIDs *[]string, processBatch dataset.OptionsBatchProcessor, batchSize, maxWorkers int) error

GetOptionsBatchProcess mocks base method.

func (*MockDatasetClient) GetOptionsInBatches added in v1.30.0

func (m *MockDatasetClient) GetOptionsInBatches(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version, dimension string, batchSize, maxWorkers int) (dataset.Options, error)

GetOptionsInBatches mocks base method.

func (*MockDatasetClient) GetVersion

func (m *MockDatasetClient) GetVersion(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, datasetID, edition, version string) (dataset.Version, error)

GetVersion mocks base method.

func (*MockDatasetClient) GetVersionDimensions added in v1.22.0

func (m *MockDatasetClient) GetVersionDimensions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version string) (dataset.VersionDimensions, error)

GetVersionDimensions mocks base method.

func (*MockDatasetClient) GetVersionMetadata

func (m *MockDatasetClient) GetVersionMetadata(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, datasetID, edition, version string) (dataset.Metadata, error)

GetVersionMetadata mocks base method.

type MockDatasetClientMockRecorder

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

MockDatasetClientMockRecorder is the mock recorder for MockDatasetClient.

func (*MockDatasetClientMockRecorder) Checker added in v1.18.0

func (mr *MockDatasetClientMockRecorder) Checker(ctx, check interface{}) *gomock.Call

Checker indicates an expected call of Checker.

func (*MockDatasetClientMockRecorder) Get

func (mr *MockDatasetClientMockRecorder) Get(ctx, userAuthToken, serviceAuthToken, collectionID, datasetID interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockDatasetClientMockRecorder) GetEdition added in v1.29.0

func (mr *MockDatasetClientMockRecorder) GetEdition(ctx, userAuthToken, serviceAuthToken, collectionID, datasetID, edition interface{}) *gomock.Call

GetEdition indicates an expected call of GetEdition.

func (*MockDatasetClientMockRecorder) GetOptions

func (mr *MockDatasetClientMockRecorder) GetOptions(ctx, userAuthToken, serviceAuthToken, collectionID, datasetID, edition, version, dimension, q interface{}) *gomock.Call

GetOptions indicates an expected call of GetOptions.

func (*MockDatasetClientMockRecorder) GetOptionsBatchProcess added in v1.30.0

func (mr *MockDatasetClientMockRecorder) GetOptionsBatchProcess(ctx, userAuthToken, serviceAuthToken, collectionID, id, edition, version, dimension, optionIDs, processBatch, batchSize, maxWorkers interface{}) *gomock.Call

GetOptionsBatchProcess indicates an expected call of GetOptionsBatchProcess.

func (*MockDatasetClientMockRecorder) GetOptionsInBatches added in v1.30.0

func (mr *MockDatasetClientMockRecorder) GetOptionsInBatches(ctx, userAuthToken, serviceAuthToken, collectionID, id, edition, version, dimension, batchSize, maxWorkers interface{}) *gomock.Call

GetOptionsInBatches indicates an expected call of GetOptionsInBatches.

func (*MockDatasetClientMockRecorder) GetVersion

func (mr *MockDatasetClientMockRecorder) GetVersion(ctx, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, datasetID, edition, version interface{}) *gomock.Call

GetVersion indicates an expected call of GetVersion.

func (*MockDatasetClientMockRecorder) GetVersionDimensions added in v1.22.0

func (mr *MockDatasetClientMockRecorder) GetVersionDimensions(ctx, userAuthToken, serviceAuthToken, collectionID, id, edition, version interface{}) *gomock.Call

GetVersionDimensions indicates an expected call of GetVersionDimensions.

func (*MockDatasetClientMockRecorder) GetVersionMetadata

func (mr *MockDatasetClientMockRecorder) GetVersionMetadata(ctx, userAuthToken, serviceAuthToken, collectionID, datasetID, edition, version interface{}) *gomock.Call

GetVersionMetadata indicates an expected call of GetVersionMetadata.

type MockFilterClient

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

MockFilterClient is a mock of FilterClient interface.

func NewMockFilterClient

func NewMockFilterClient(ctrl *gomock.Controller) *MockFilterClient

NewMockFilterClient creates a new mock instance.

func (*MockFilterClient) AddDimension

func (m *MockFilterClient) AddDimension(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, name, ifMatch string) (string, error)

AddDimension mocks base method.

func (*MockFilterClient) AddDimensionValue

func (m *MockFilterClient) AddDimensionValue(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name, value, ifMatch string) (string, error)

AddDimensionValue mocks base method.

func (*MockFilterClient) Checker added in v1.18.0

func (m *MockFilterClient) Checker(ctx context.Context, check *healthcheck.CheckState) error

Checker mocks base method.

func (*MockFilterClient) CreateBlueprint

func (m *MockFilterClient) CreateBlueprint(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, datasetID, edition, version string, names []string) (string, string, error)

CreateBlueprint mocks base method.

func (*MockFilterClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFilterClient) GetDimension

func (m *MockFilterClient) GetDimension(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string) (filter.Dimension, string, error)

GetDimension mocks base method.

func (*MockFilterClient) GetDimensionOptions

func (m *MockFilterClient) GetDimensionOptions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, q *filter.QueryParams) (filter.DimensionOptions, string, error)

GetDimensionOptions mocks base method.

func (*MockFilterClient) GetDimensionOptionsBatchProcess added in v1.30.0

func (m *MockFilterClient) GetDimensionOptionsBatchProcess(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, processBatch filter.DimensionOptionsBatchProcessor, batchSize, maxWorkers int, checkETag bool) (string, error)

GetDimensionOptionsBatchProcess mocks base method.

func (*MockFilterClient) GetDimensionOptionsInBatches added in v1.30.0

func (m *MockFilterClient) GetDimensionOptionsInBatches(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, batchSize, maxWorkers int) (filter.DimensionOptions, string, error)

GetDimensionOptionsInBatches mocks base method.

func (*MockFilterClient) GetDimensions

func (m *MockFilterClient) GetDimensions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID string, q *filter.QueryParams) (filter.Dimensions, string, error)

GetDimensions mocks base method.

func (*MockFilterClient) GetJobState

func (m *MockFilterClient) GetJobState(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterID string) (filter.Model, string, error)

GetJobState mocks base method.

func (*MockFilterClient) GetOutput

func (m *MockFilterClient) GetOutput(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterOutputID string) (filter.Model, error)

GetOutput mocks base method.

func (*MockFilterClient) GetPreview

func (m *MockFilterClient) GetPreview(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterOutputID string) (filter.Preview, error)

GetPreview mocks base method.

func (*MockFilterClient) PatchDimensionValues added in v1.30.0

func (m *MockFilterClient) PatchDimensionValues(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, addValues, removeValues []string, batchSize int, ifMatch string) (string, error)

PatchDimensionValues mocks base method.

func (*MockFilterClient) RemoveDimension

func (m *MockFilterClient) RemoveDimension(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name, ifMatch string) (string, error)

RemoveDimension mocks base method.

func (*MockFilterClient) RemoveDimensionValue

func (m *MockFilterClient) RemoveDimensionValue(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name, value, ifMatch string) (string, error)

RemoveDimensionValue mocks base method.

func (*MockFilterClient) SetDimensionValues added in v1.30.0

func (m *MockFilterClient) SetDimensionValues(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, filterID, name string, options []string, ifMatch string) (string, error)

SetDimensionValues mocks base method.

func (*MockFilterClient) UpdateBlueprint

func (m_2 *MockFilterClient) UpdateBlueprint(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID string, m filter.Model, doSubmit bool, ifMatch string) (filter.Model, string, error)

UpdateBlueprint mocks base method.

type MockFilterClientMockRecorder

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

MockFilterClientMockRecorder is the mock recorder for MockFilterClient.

func (*MockFilterClientMockRecorder) AddDimension

func (mr *MockFilterClientMockRecorder) AddDimension(ctx, userAuthToken, serviceAuthToken, collectionID, id, name, ifMatch interface{}) *gomock.Call

AddDimension indicates an expected call of AddDimension.

func (*MockFilterClientMockRecorder) AddDimensionValue

func (mr *MockFilterClientMockRecorder) AddDimensionValue(ctx, userAuthToken, serviceAuthToken, collectionID, filterID, name, value, ifMatch interface{}) *gomock.Call

AddDimensionValue indicates an expected call of AddDimensionValue.

func (*MockFilterClientMockRecorder) Checker added in v1.18.0

func (mr *MockFilterClientMockRecorder) Checker(ctx, check interface{}) *gomock.Call

Checker indicates an expected call of Checker.

func (*MockFilterClientMockRecorder) CreateBlueprint

func (mr *MockFilterClientMockRecorder) CreateBlueprint(ctx, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, datasetID, edition, version, names interface{}) *gomock.Call

CreateBlueprint indicates an expected call of CreateBlueprint.

func (*MockFilterClientMockRecorder) GetDimension

func (mr *MockFilterClientMockRecorder) GetDimension(ctx, userAuthToken, serviceAuthToken, collectionID, filterID, name interface{}) *gomock.Call

GetDimension indicates an expected call of GetDimension.

func (*MockFilterClientMockRecorder) GetDimensionOptions

func (mr *MockFilterClientMockRecorder) GetDimensionOptions(ctx, userAuthToken, serviceAuthToken, collectionID, filterID, name, q interface{}) *gomock.Call

GetDimensionOptions indicates an expected call of GetDimensionOptions.

func (*MockFilterClientMockRecorder) GetDimensionOptionsBatchProcess added in v1.30.0

func (mr *MockFilterClientMockRecorder) GetDimensionOptionsBatchProcess(ctx, userAuthToken, serviceAuthToken, collectionID, filterID, name, processBatch, batchSize, maxWorkers, checkETag interface{}) *gomock.Call

GetDimensionOptionsBatchProcess indicates an expected call of GetDimensionOptionsBatchProcess.

func (*MockFilterClientMockRecorder) GetDimensionOptionsInBatches added in v1.30.0

func (mr *MockFilterClientMockRecorder) GetDimensionOptionsInBatches(ctx, userAuthToken, serviceAuthToken, collectionID, filterID, name, batchSize, maxWorkers interface{}) *gomock.Call

GetDimensionOptionsInBatches indicates an expected call of GetDimensionOptionsInBatches.

func (*MockFilterClientMockRecorder) GetDimensions

func (mr *MockFilterClientMockRecorder) GetDimensions(ctx, userAuthToken, serviceAuthToken, collectionID, filterID, q interface{}) *gomock.Call

GetDimensions indicates an expected call of GetDimensions.

func (*MockFilterClientMockRecorder) GetJobState

func (mr *MockFilterClientMockRecorder) GetJobState(ctx, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterID interface{}) *gomock.Call

GetJobState indicates an expected call of GetJobState.

func (*MockFilterClientMockRecorder) GetOutput

func (mr *MockFilterClientMockRecorder) GetOutput(ctx, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterOutputID interface{}) *gomock.Call

GetOutput indicates an expected call of GetOutput.

func (*MockFilterClientMockRecorder) GetPreview

func (mr *MockFilterClientMockRecorder) GetPreview(ctx, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterOutputID interface{}) *gomock.Call

GetPreview indicates an expected call of GetPreview.

func (*MockFilterClientMockRecorder) PatchDimensionValues added in v1.30.0

func (mr *MockFilterClientMockRecorder) PatchDimensionValues(ctx, userAuthToken, serviceAuthToken, collectionID, filterID, name, addValues, removeValues, batchSize, ifMatch interface{}) *gomock.Call

PatchDimensionValues indicates an expected call of PatchDimensionValues.

func (*MockFilterClientMockRecorder) RemoveDimension

func (mr *MockFilterClientMockRecorder) RemoveDimension(ctx, userAuthToken, serviceAuthToken, collectionID, filterID, name, ifMatch interface{}) *gomock.Call

RemoveDimension indicates an expected call of RemoveDimension.

func (*MockFilterClientMockRecorder) RemoveDimensionValue

func (mr *MockFilterClientMockRecorder) RemoveDimensionValue(ctx, userAuthToken, serviceAuthToken, collectionID, filterID, name, value, ifMatch interface{}) *gomock.Call

RemoveDimensionValue indicates an expected call of RemoveDimensionValue.

func (*MockFilterClientMockRecorder) SetDimensionValues added in v1.30.0

func (mr *MockFilterClientMockRecorder) SetDimensionValues(ctx, userAuthToken, serviceAuthToken, collectionID, filterID, name, options, ifMatch interface{}) *gomock.Call

SetDimensionValues indicates an expected call of SetDimensionValues.

func (*MockFilterClientMockRecorder) UpdateBlueprint

func (mr *MockFilterClientMockRecorder) UpdateBlueprint(ctx, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, m, doSubmit, ifMatch interface{}) *gomock.Call

UpdateBlueprint indicates an expected call of UpdateBlueprint.

type MockHierarchyClient

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

MockHierarchyClient is a mock of HierarchyClient interface.

func NewMockHierarchyClient

func NewMockHierarchyClient(ctrl *gomock.Controller) *MockHierarchyClient

NewMockHierarchyClient creates a new mock instance.

func (*MockHierarchyClient) Checker added in v1.18.0

Checker mocks base method.

func (*MockHierarchyClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHierarchyClient) GetChild

func (m *MockHierarchyClient) GetChild(ctx context.Context, instanceID, name, code string) (hierarchy.Model, error)

GetChild mocks base method.

func (*MockHierarchyClient) GetRoot

func (m *MockHierarchyClient) GetRoot(ctx context.Context, instanceID, name string) (hierarchy.Model, error)

GetRoot mocks base method.

type MockHierarchyClientMockRecorder

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

MockHierarchyClientMockRecorder is the mock recorder for MockHierarchyClient.

func (*MockHierarchyClientMockRecorder) Checker added in v1.18.0

func (mr *MockHierarchyClientMockRecorder) Checker(ctx, check interface{}) *gomock.Call

Checker indicates an expected call of Checker.

func (*MockHierarchyClientMockRecorder) GetChild

func (mr *MockHierarchyClientMockRecorder) GetChild(ctx, instanceID, name, code interface{}) *gomock.Call

GetChild indicates an expected call of GetChild.

func (*MockHierarchyClientMockRecorder) GetRoot

func (mr *MockHierarchyClientMockRecorder) GetRoot(ctx, instanceID, name interface{}) *gomock.Call

GetRoot indicates an expected call of GetRoot.

type MockRenderClient added in v1.39.0

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

MockRenderClient is a mock of RenderClient interface.

func NewMockRenderClient added in v1.39.0

func NewMockRenderClient(ctrl *gomock.Controller) *MockRenderClient

NewMockRenderClient creates a new mock instance.

func (*MockRenderClient) BuildPage added in v1.39.0

func (m *MockRenderClient) BuildPage(w io.Writer, pageModel interface{}, templateName string)

BuildPage mocks base method.

func (*MockRenderClient) EXPECT added in v1.39.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRenderClient) NewBasePageModel added in v1.39.0

func (m *MockRenderClient) NewBasePageModel() model.Page

NewBasePageModel mocks base method.

type MockRenderClientMockRecorder added in v1.39.0

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

MockRenderClientMockRecorder is the mock recorder for MockRenderClient.

func (*MockRenderClientMockRecorder) BuildPage added in v1.39.0

func (mr *MockRenderClientMockRecorder) BuildPage(w, pageModel, templateName interface{}) *gomock.Call

BuildPage indicates an expected call of BuildPage.

func (*MockRenderClientMockRecorder) NewBasePageModel added in v1.39.0

func (mr *MockRenderClientMockRecorder) NewBasePageModel() *gomock.Call

NewBasePageModel indicates an expected call of NewBasePageModel.

type MockSearchClient

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

MockSearchClient is a mock of SearchClient interface.

func NewMockSearchClient

func NewMockSearchClient(ctrl *gomock.Controller) *MockSearchClient

NewMockSearchClient creates a new mock instance.

func (*MockSearchClient) Checker added in v1.18.0

func (m *MockSearchClient) Checker(ctx context.Context, check *healthcheck.CheckState) error

Checker mocks base method.

func (*MockSearchClient) Dimension

func (m *MockSearchClient) Dimension(ctx context.Context, datasetID, edition, version, name, query string, params ...search.Config) (*search.Model, error)

Dimension mocks base method.

func (*MockSearchClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockSearchClientMockRecorder

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

MockSearchClientMockRecorder is the mock recorder for MockSearchClient.

func (*MockSearchClientMockRecorder) Checker added in v1.18.0

func (mr *MockSearchClientMockRecorder) Checker(ctx, check interface{}) *gomock.Call

Checker indicates an expected call of Checker.

func (*MockSearchClientMockRecorder) Dimension

func (mr *MockSearchClientMockRecorder) Dimension(ctx, datasetID, edition, version, name, query interface{}, params ...interface{}) *gomock.Call

Dimension indicates an expected call of Dimension.

type MockZebedeeClient added in v1.37.0

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

MockZebedeeClient is a mock of ZebedeeClient interface.

func NewMockZebedeeClient added in v1.37.0

func NewMockZebedeeClient(ctrl *gomock.Controller) *MockZebedeeClient

NewMockZebedeeClient creates a new mock instance.

func (*MockZebedeeClient) EXPECT added in v1.37.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockZebedeeClient) GetHomepageContent added in v1.37.0

func (m *MockZebedeeClient) GetHomepageContent(ctx context.Context, userAccessToken, collectionID, lang, path string) (zebedee.HomepageContent, error)

GetHomepageContent mocks base method.

type MockZebedeeClientMockRecorder added in v1.37.0

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

MockZebedeeClientMockRecorder is the mock recorder for MockZebedeeClient.

func (*MockZebedeeClientMockRecorder) GetHomepageContent added in v1.37.0

func (mr *MockZebedeeClientMockRecorder) GetHomepageContent(ctx, userAccessToken, collectionID, lang, path interface{}) *gomock.Call

GetHomepageContent indicates an expected call of GetHomepageContent.

type RenderClient added in v1.39.0

type RenderClient interface {
	BuildPage(w io.Writer, pageModel interface{}, templateName string)
	NewBasePageModel() model.Page
}

RenderClient is an interface with methods for rendering a template

type SearchClient

type SearchClient interface {
	Checker(ctx context.Context, check *health.CheckState) error
	Dimension(ctx context.Context, datasetID, edition, version, name, query string, params ...search.Config) (m *search.Model, err error)
}

SearchClient contains methods expected for a search client

type ZebedeeClient added in v1.37.0

type ZebedeeClient interface {
	GetHomepageContent(ctx context.Context, userAccessToken, collectionID, lang, path string) (m zebedee.HomepageContent, err error)
}

Jump to

Keyboard shortcuts

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