Skip to content

Commit

Permalink
Removed unneeded .taskfiles directory, added comments explaining week…
Browse files Browse the repository at this point in the history
…days field in struct
  • Loading branch information
jm20122012 committed Jul 3, 2024
1 parent bb9ebdb commit 2a3dedd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 44 deletions.
39 changes: 0 additions & 39 deletions .taskfiles/migrate-tasks.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .taskfiles/sqlc-tasks.yml

This file was deleted.

3 changes: 3 additions & 0 deletions controller/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ type Zone struct {
Schedule []ScheduleItem `json:"schedule"`
}

// Weekdays is a uint8 where each bit represents a day of the week
// starting with Sunday at the LSB. The MSB is not used. For example,
// 0 0 1 0 1 0 1 0 means that Monday, Wednesday, and Friday are enabled
type ScheduleItem struct {
StartTime string `json:"startTime"`
DurationMinutes int `json:"durationMinutes"`
Expand Down

0 comments on commit 2a3dedd

Please sign in to comment.