File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 6
6
"strconv"
7
7
"strings"
8
8
"time"
9
+ _ "time/tzdata" // Required for IANA timezone support
9
10
)
10
11
11
12
var (
@@ -52,7 +53,7 @@ func GetDefaultConfig() *Config {
52
53
}
53
54
54
55
// IsEnabled returns whether maintenance is enabled or not
55
- func (c Config ) IsEnabled () bool {
56
+ func (c * Config ) IsEnabled () bool {
56
57
if c .Enabled == nil {
57
58
return true
58
59
}
@@ -101,7 +102,7 @@ func (c *Config) ValidateAndSetDefaults() error {
101
102
}
102
103
103
104
// IsUnderMaintenance checks whether the endpoints that Gatus monitors are within the configured maintenance window
104
- func (c Config ) IsUnderMaintenance () bool {
105
+ func (c * Config ) IsUnderMaintenance () bool {
105
106
if ! c .IsEnabled () {
106
107
return false
107
108
}
@@ -127,7 +128,7 @@ func (c Config) IsUnderMaintenance() bool {
127
128
return now .After (startOfMaintenancePeriod ) && now .Before (endOfMaintenancePeriod )
128
129
}
129
130
130
- func (c Config ) hasDay (day string ) bool {
131
+ func (c * Config ) hasDay (day string ) bool {
131
132
for _ , d := range c .Every {
132
133
if d == day {
133
134
return true
You can’t perform that action at this time.
0 commit comments