integrations

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WeatherReader

type WeatherReader struct {
	// contains filtered or unexported fields
}

WeatherReader reads weather data from an API and implements the Reader interface.

func NewWeatherReader

func NewWeatherReader(ctx context.Context, cities []config.City, client *http.Client) (*WeatherReader, error)

NewWeatherReader creates a new reader for reading weather data from a list of cities.

func (*WeatherReader) Close

func (r *WeatherReader) Close() error

Close releases any resources associated with the WeatherReader.

func (*WeatherReader) Read

func (r *WeatherReader) Read() (arrow.Record, error)

Read reads the next record of weather data from the API.

func (*WeatherReader) Schema

func (r *WeatherReader) Schema() *arrow.Schema

Schema returns the schema of the records being read from the Weather API.

Jump to

Keyboard shortcuts

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