cron

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 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 Cron

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

func New

func New(
	cfg *config.Cron,
	loc *time.Location,
	pin gpio.PinIO,
	photoProvider PhotoProvider,
	photoSender PhotoSender,
	measurementsProvider MeasurementsProvider,
) (*Cron, error)

func (*Cron) Stop

func (c *Cron) Stop()

type MeasurementsProvider added in v1.7.0

type MeasurementsProvider interface {
	Measurements() (string, bool)
}

type PhotoProvider

type PhotoProvider interface {
	GetPhoto(ctx context.Context) ([]byte, error)
}

type PhotoSender

type PhotoSender interface {
	SendPhoto(ctx context.Context, photo []byte, caption string) error
}

Jump to

Keyboard shortcuts

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