Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
type DataSource[T any] struct { Publisher[T] Fetcher Fetcher[T] PollingInterval time.Duration Logger *slog.Logger // contains filtered or unexported fields }
func (*DataSource[T]) GetCurrentAge ¶
func (d *DataSource[T]) GetCurrentAge() time.Time
type Publisher ¶
type Publisher[T any] struct { // contains filtered or unexported fields }
func (*Publisher[T]) Unregister ¶
func (p *Publisher[T]) Unregister(ch chan T)
type SciensanoSources ¶
type SciensanoSources struct { taskmanager.Manager Cases DataSource[sciensano.Cases] Hospitalisations DataSource[sciensano.Hospitalisations] Mortalities DataSource[sciensano.Mortalities] TestResults DataSource[sciensano.TestResults] Vaccinations DataSource[sciensano.Vaccinations] }
func NewSciensanoDatastore ¶
Click to show internal directories.
Click to hide internal directories.