Documentation ¶
Index ¶
- type CantabularClient
- type CantabularMetadataExport
- func (h *CantabularMetadataExport) GetFilterDimensions(ctx context.Context, filterOutput filter.Model) ([]dataset.VersionDimension, error)
- func (h *CantabularMetadataExport) Handle(ctx context.Context, _ int, msg kafka.Message) error
- func (h *CantabularMetadataExport) UpdateFilterOutput(ctx context.Context, e *event.CSVCreated, csvwInfo, txtInfo *downloadInfo) error
- func (h *CantabularMetadataExport) UpdateInstance(ctx context.Context, e *event.CSVCreated, csvwInfo, txtInfo *downloadInfo, ...) error
- type DatasetAPIClient
- type Error
- type FileManager
- type FilterAPIClient
- type Generator
- type PopulationTypesAPIClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CantabularClient ¶ added in v1.11.0
type CantabularClient interface {
GetDimensionsByName(context.Context, cantabular.GetDimensionsByNameRequest) (*cantabular.GetDimensionsResponse, error)
}
type CantabularMetadataExport ¶ added in v1.0.0
type CantabularMetadataExport struct {
// contains filtered or unexported fields
}
CantabularMetadataExport is the event handler for the CantabularMetadataExport event
func NewCantabularMetadataExport ¶ added in v1.0.0
func NewCantabularMetadataExport(cfg config.Config, d DatasetAPIClient, f FilterAPIClient, t PopulationTypesAPIClient, c CantabularClient, fm FileManager, p kafka.IProducer, g Generator) *CantabularMetadataExport
NewCantabularMetadataExport creates a new CantabularMetadataExportHandler
func (*CantabularMetadataExport) GetFilterDimensions ¶ added in v1.11.0
func (h *CantabularMetadataExport) GetFilterDimensions(ctx context.Context, filterOutput filter.Model) ([]dataset.VersionDimension, error)
func (*CantabularMetadataExport) UpdateFilterOutput ¶ added in v1.3.0
func (h *CantabularMetadataExport) UpdateFilterOutput(ctx context.Context, e *event.CSVCreated, csvwInfo, txtInfo *downloadInfo) error
func (*CantabularMetadataExport) UpdateInstance ¶ added in v1.3.0
func (h *CantabularMetadataExport) UpdateInstance(ctx context.Context, e *event.CSVCreated, csvwInfo, txtInfo *downloadInfo, collectionID string) error
type DatasetAPIClient ¶ added in v1.0.0
type DatasetAPIClient interface { GetVersion(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceAuthToken, collectionID, datasetID, edition, version string) (dataset.Version, error) GetVersionMetadataSelection(ctx context.Context, req dataset.GetVersionMetadataSelectionInput) (*dataset.Metadata, error) GetVersionMetadata(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version string) (dataset.Metadata, error) GetVersionDimensions(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version string) (dataset.VersionDimensions, error) GetOptionsInBatches(ctx context.Context, userAuthToken, serviceAuthToken, collectionID, id, edition, version, dimension string, batchSize, maxWorkers int) (dataset.Options, error) PutVersion(ctx context.Context, usrAuthToken, svcAuthToken, collectionID, datasetID, edition, ver string, v dataset.Version) error GetMetadataURL(id, edition, version string) (url string) }
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error is the packages error type
func (Error) Code ¶
Code satisfies the coder interface which is used to recover a HTTP status code from an error
func (Error) LogData ¶
LogData satisfies the dataLogger interface which is used to recover log data from an error
func (Error) Response ¶
Response satisfies the responser interface which is used to specify a response to be sent to the caller in place of the error text for a given error. This is useful when you don't want sensitive information or implementation details being exposed to the caller which could be used to find exploits in our API
type FileManager ¶ added in v1.0.0
type FilterAPIClient ¶ added in v1.3.0
type FilterAPIClient interface { UpdateFilterOutput(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, filterOutputID string, m *filter.Model) error GetOutput(ctx context.Context, userAuthToken, serviceAuthToken, downloadServiceToken, collectionID, filterOutput string) (m filter.Model, err error) }
type PopulationTypesAPIClient ¶ added in v1.10.0
type PopulationTypesAPIClient interface {
GetAreaTypes(ctx context.Context, input population.GetAreaTypesInput) (population.GetAreaTypesResponse, error)
}