mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-06 09:15:12 -06:00
some tweaks/renames, schedule documentation
This commit is contained in:
@@ -21,6 +21,7 @@ type EventListener struct {
|
||||
exceptionRanges []timeRange
|
||||
}
|
||||
|
||||
// TODO: add state object as second arg
|
||||
type EventListenerCallback func(*Service, EventData)
|
||||
|
||||
type EventData struct {
|
||||
@@ -30,7 +31,7 @@ type EventData struct {
|
||||
|
||||
/* Methods */
|
||||
|
||||
func EventListenerBuilder() eventListenerBuilder1 {
|
||||
func NewEventListener() eventListenerBuilder1 {
|
||||
return eventListenerBuilder1{EventListener{
|
||||
lastRan: carbon.Now().StartOfCentury(),
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user