Documentation
¶
Index ¶
- Constants
- func AddTopicWithParents(slug, parentSlug string, topicsMap map[string]Topic, ...)
- func LoadTopicsMap(ctx context.Context, serviceAuthToken string, topicClient topicCli.Clienter) (map[string]Topic, error)
- func MapResourceToSearchDataImport(resourceItem upstreamModels.Resource) extractorModels.SearchDataImport
- type DatasetEditionMetadata
- type Document
- type Result
- type Task
- type Topic
- type Tracker
Constants ¶
const (
ReleaseDataType = "release"
)
Variables ¶
This section is empty.
Functions ¶
func AddTopicWithParents ¶ added in v0.4.0
func AddTopicWithParents(slug, parentSlug string, topicsMap map[string]Topic, uniqueTopics map[string]struct{})
AddTopicWithParents adds a topic and its parents to the uniqueTopics map if they don't already exist. It recursively adds parent topics until it reaches the root topic.
func LoadTopicsMap ¶ added in v0.4.0
func LoadTopicsMap(ctx context.Context, serviceAuthToken string, topicClient topicCli.Clienter) (map[string]Topic, error)
LoadTopicsMap is a function to load the topic map in publishing (private) mode. This function talks to the dp-topic-api via its private endpoints to retrieve the root topic and its subtopic ids The data returned by the dp-topic-api is of type *models.PrivateSubtopics which is then mapped to match the *Topic struct
func MapResourceToSearchDataImport ¶ added in v0.4.0
func MapResourceToSearchDataImport(resourceItem upstreamModels.Resource) extractorModels.SearchDataImport
MapResourceToSearchDataImport Performs default mapping of a Resource item to a SearchDataImport struct.
Types ¶
type DatasetEditionMetadata ¶
type DatasetEditionMetadata struct {
// contains filtered or unexported fields
}
DatasetEditionMetadata holds the necessary information for a dataset edition, plus isBasedOn