jobs

package
v0.0.0-...-fdf27ca Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Day

type Day struct {
	ScheduleOverride string
	Endpoint         string

	AirtableKey   string
	AirtableBase  string
	AirtableTable string
	AirtableView  string
}

Day sends any alerts for the current day

func (*Day) Name

func (d *Day) Name() string

func (*Day) Run

func (d *Day) Run(ctx context.Context) error

func (*Day) Schedule

func (d *Day) Schedule() string

func (*Day) Timeout

func (d *Day) Timeout() time.Duration

type Sync

type Sync struct {
	ScheduleOverride string
	Endpoint         string
	TimeoutDuration  time.Duration

	AirtableKey   string
	AirtableBase  string
	AirtableTable string
	AirtableView  string

	CardDAVServer   string
	CardDAVUser     string
	CardDAVPassword string

	VCardPhotoSize int
	VCardV3        bool
}

Sync copies the data in airtable into a carddav server for sycning to devices

func (*Sync) Name

func (s *Sync) Name() string

func (*Sync) Run

func (s *Sync) Run(ctx context.Context) error

func (*Sync) Schedule

func (s *Sync) Schedule() string

func (*Sync) Timeout

func (s *Sync) Timeout() time.Duration

type Week

type Week struct {
	ScheduleOverride string
	Endpoint         string

	AirtableKey   string
	AirtableBase  string
	AirtableTable string
	AirtableView  string
}

Week sends a preview of upcoming events for the next two weeks

func (*Week) Name

func (w *Week) Name() string

func (*Week) Run

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

func (*Week) Schedule

func (w *Week) Schedule() string

func (*Week) Timeout

func (w *Week) Timeout() time.Duration

Jump to

Keyboard shortcuts

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