# Packages

No description provided by the author
No description provided by the author

# Functions

GetEmptyCensusTopic returns an empty census topic cache in the event when updating the cache of the census topic fails.
GetEmptySubTopic returns an empty topic cache in the event when updating the cache of the topic fails.
GetEmptyTopic returns an empty topic cache in the event when updating the cache of the topic fails.
GetMockCacheList returns a mocked list of cache which contains the census topic cache and navigation cache.
GetMockCensusTopic returns a mocked Cenus topic which contains all the information for the mock census topic.
GetMockRootTopic returns the mocked root topic.
NewNavigationCache create a navigation cache object to be used in the service which will update at every updateInterval If updateInterval is nil, this means that the cache will only be updated once at the start of the service.
GetNewSubTopicsMap creates a new subtopics id map to store subtopic ids with addition to mutex locking.
NewTopicCache create a topic cache object to be used in the service which will update at every updateInterval If updateInterval is nil, this means that the cache will only be updated once at the start of the service.

# Constants

DataTopicCacheKey is used to cache the topics data.
NavigationCacheKey is used to cache the navigation bar data.

# Variables

CensusTopicID is the id of the Census topic stored in mongodb which is accessible by using dp-topic-api.

# Structs

CacheList is a list of caches for the dp-frontend-search-controller.
NavigationCache is a wrapper to dpcache.Cache which has additional fields and methods specifically for caching navigation data.
Subtopic represents the data which is cached for a subtopic to be used by the dp-frontend-search-controller.
Subtopics contains a list of subtopics in map form with addition to mutex locking The subtopicsMap is used to keep a record of subtopics to be later used to generate the subtopics id `query` for a topic and to check if the subtopic id given by a user exists.
Topic represents the data which is cached for a topic to be used by the dp-frontend-search-controller.
TopicCache is a wrapper to dpcache.Cache which has additional fields and methods specifically for caching topics.