Documentation
¶
Index ¶
Constants ¶
View Source
const ( OnsSearchIndex = "ons" ZebedeeDataType = "legacy" DatasetDataType = "datasets" )
View Source
const DefaultType = "dataset_landing_page"
View Source
const (
ReleaseDataType = "release"
)
Variables ¶
This section is empty.
Functions ¶
func AddTopicWithParents ¶ added in v1.3.1
func AddTopicWithParents(ctx context.Context, slug, parentSlug string, topicCache *cache.TopicCache, 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.
Types ¶
type ContentPublished ¶ added in v0.24.0
type ContentPublished struct {
Cfg *config.Config
Cache cache.List
ZebedeeCli clients.ZebedeeClient
DatasetCli clients.DatasetClient
ImportProducer kafka.IProducer
DeleteProducer kafka.IProducer
}
ContentPublished struct to hold handle for config with zebedee, datasetAPI client and the producer
type Error ¶ added in v0.24.0
type Error struct {
// contains filtered or unexported fields
}
Error is the handler package's error type. Is not meant to be compared as a type, but information should be extracted via the interfaces it implements with callback functions. Is not guaranteed to remain exported so shouldn't be treated as such.
Click to show internal directories.
Click to hide internal directories.