# Packages

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

# Functions

ErrTopicCacheKeyMissing to generate error message.
GetEmptyCensusTopic returns an empty census topic cache in the event when updating the cache of the census 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.
NewHomepageCache create a homepage 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.
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.
NewSubTopicsMap 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

HomepageCacheKey is used to cache the rendered homepage.
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.
List of possible errors.
No description provided by the author
No description provided by the author

# Structs

HomepageCache is a wrapper to dpcache.Cache which has additional fields and methods specifically for caching homepage data.
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.
SubtopicsIDs 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.