Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateCensusTopic ¶
func UpdateCensusTopic(ctx context.Context, serviceAuthToken string, topicClient topicCli.Clienter) func() *cache.Topic
UpdateCensusTopic is a function to update the census topic cache in publishing (private) mode. This function talks to the dp-topic-api via its private endpoints to retrieve the census topic and its subtopic ids The data returned by the dp-topic-api is of type *models.PrivateSubtopics which is then transformed 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 UpdateDataTopics ¶ added in v0.57.0
func UpdateDataTopics(ctx context.Context, serviceAuthToken string, topicClient topicCli.Clienter) func() []*cache.Topic
UpdateDataTopics is a function to update the data topic cache 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 transformed in this function for the controller If an error has occurred, this is captured in log.Error and then an empty topic is returned
Types ¶
This section is empty.