scheduling

package
v0.0.0-...-85ebd90 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BirthdaySchedule

type BirthdaySchedule struct {
	BirthdayMessageChannel string

	CronExp string

	Logger *log.Entry
	// contains filtered or unexported fields
}

func (*BirthdaySchedule) Init

func (bs *BirthdaySchedule) Init(dbPath []string, logger *log.Entry)

func (*BirthdaySchedule) UpcomingBirthdays

func (bs *BirthdaySchedule) UpcomingBirthdays(c slack.CommandInfo)

type ControllerSchedule

type ControllerSchedule struct {
	Set bool

	Logger *log.Entry
	Sched  map[string]*Schedule
	DbPath []string
	// contains filtered or unexported fields
}

func (*ControllerSchedule) ContGetSchedulingStatus

func (cs *ControllerSchedule) ContGetSchedulingStatus() string

func (*ControllerSchedule) ContRemove

func (cs *ControllerSchedule) ContRemove(command slack.CommandInfo) (err error)

func (*ControllerSchedule) ContSet

func (cs *ControllerSchedule) ContSet(id string, cronSched string, command slack.CommandInfo, newSched bool) (err error)

func (*ControllerSchedule) DeleteOtherPowerMessage

func (cs *ControllerSchedule) DeleteOtherPowerMessage(name string, timestamp string) error

func (*ControllerSchedule) DeletePowerMessage

func (cs *ControllerSchedule) DeletePowerMessage() error

func (*ControllerSchedule) LoadPowerMessagefromDB

func (cs *ControllerSchedule) LoadPowerMessagefromDB() error

func (*ControllerSchedule) LoadSchedsfromDB

func (cs *ControllerSchedule) LoadSchedsfromDB() (records []scheduleRecord, err error)

func (*ControllerSchedule) ModifyPowerMessage

func (cs *ControllerSchedule) ModifyPowerMessage(name string, status string) error

func (*ControllerSchedule) PostPowerMessage

func (cs *ControllerSchedule) PostPowerMessage(channel string, name string, status string) (err error)

type Schedule

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

type ScheduleTracker

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

func CreateScheduleTracker

func CreateScheduleTracker() (st *ScheduleTracker)

func (*ScheduleTracker) Reciever

func (st *ScheduleTracker) Reciever()

Jump to

Keyboard shortcuts

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