Documentation
¶
Overview ¶
Package worker synchronizes data between API and DB.
It queries the API at a specified interval and merges the results into the DB.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocTransformer ¶
type DocTransformer[T any] interface { Transform(data transform.APIData, errFunc func(error)) *db.DocsProvider[T] }
DocTransformer provides a means of converting API data into structs ready for passing to the MongoDB driver.
Click to show internal directories.
Click to hide internal directories.