public

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateCensusTopic

func UpdateCensusTopic(ctx context.Context, topicClient topicCli.Clienter) func() *cache.Topic

UpdateCensusTopic is a function to update the census topic cache in web (public) mode. This function talks to the dp-topic-api via its public endpoints to retrieve the census topic and its subtopic ids The data returned by the dp-topic-api is of type *models.PublicSubtopics which is then transformed to *cache.Topic in this function for the controller If an error has occurred, this is captured in log.Error and then an empty census topic is returned

func UpdateDataTopicCache added in v0.61.0

func UpdateDataTopicCache(ctx context.Context, topicClient topicCli.Clienter) func() *cache.Topic

UpdateDataTopicCache is a function to update the data topic cache in web (public) mode. This function talks to the dp-topic-api via its public endpoints to retrieve the root data topic and its subtopic ids The data returned by the dp-topic-api is of type *models.Topic which is then transformed to *cache.Topic in this function for the controller If an error has occurred, this is captured in log.Error and then an empty data topic is returned

func UpdateNavigationData added in v0.33.0

func UpdateNavigationData(ctx context.Context, cfg *config.Config, lang string, topicClient topicCli.Clienter) func() *topicModel.Navigation

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL