app

package
v0.0.0-...-86f3bae Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidFormat = errors.New("invalid birthday format")

Functions

func CreateDisplayImage

func CreateDisplayImage() image.Image

Types

type Birthday

type Birthday struct {
	Filename string
	FilePath string
	Name     string
	Day      int
	Month    int
}

func NewBirthday

func NewBirthday(filePath string) (Birthday, error)

func (Birthday) GetNextDate

func (b Birthday) GetNextDate(refDate time.Time) time.Time

type BirthdayReminder

type BirthdayReminder struct {
	Display display.UpdateChannel
	Led     led.UpdateChannel
}

func (*BirthdayReminder) Activate

func (a *BirthdayReminder) Activate()

func (BirthdayReminder) Deactivate

func (a BirthdayReminder) Deactivate()

func (BirthdayReminder) Dispose

func (a BirthdayReminder) Dispose()

func (BirthdayReminder) HandleEvent

func (a BirthdayReminder) HandleEvent(event keys.Event) bool

func (BirthdayReminder) Init

func (a BirthdayReminder) Init()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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