scraper

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 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 Publisher

type Publisher[T any] interface {
	Subscribe() <-chan T
	Unsubscribe(<-chan T)
}

type Store added in v0.11.0

type Store interface {
	Store(repository.Measurement) error
}

type Writer added in v0.11.0

type Writer struct {
	Store
	SolarEdge Publisher[publisher.SolarEdgeUpdate]
	Tado      Publisher[*tado.Weather]
	Interval  time.Duration
	Logger    *slog.Logger
	// contains filtered or unexported fields
}

func (*Writer) Run added in v0.11.0

func (w *Writer) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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