readers

package
v0.0.0-...-3b72d5c Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource interface {
	Read() (*Record, error)
}

DataSource in charge of fetching the data from its source

func NewCsvReader

func NewCsvReader() (DataSource, error)

type Factory

type Factory interface {
	NewReader() (DataSource, error)
}

func NewReaderFactory

func NewReaderFactory() Factory

type Record

type Record struct {
	Date         time.Time
	Cases        int
	PositiveRate float64
	CountryCode  string
	CountryName  string
}

Jump to

Keyboard shortcuts

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