good progress yay:

- impl http client
- create http client in App()
- generic builder for Service.*
- set Service on app to pass to callbacks later
- impl State
- set State on app to pass to callbacks later
- change panic to log.Fatalln
This commit is contained in:
Sam Lewis
2022-10-11 01:22:23 -04:00
parent 689a6ce4d3
commit 7bcca889f9
13 changed files with 296 additions and 93 deletions
+3 -3
View File
@@ -5,15 +5,15 @@ type entityListener struct {
callback entityListenerCallback
fromState string
toState string
betweenStart hourMinute
betweenEnd hourMinute
betweenStart timeOfDay
betweenEnd timeOfDay
}
type entityListenerCallback func(Service, Data)
type Data struct{}
func (b elBuilder3) OnlyBetween(start hourMinute, end hourMinute) elBuilder3 {
func (b elBuilder3) OnlyBetween(start timeOfDay, end timeOfDay) elBuilder3 {
b.entityListener.betweenStart = start
b.entityListener.betweenEnd = end
return b