This repository has been archived by the owner on Oct 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from rebuy-de/improve-statuschecker-options
Improve statuschecker options
- Loading branch information
Showing
12 changed files
with
213 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package prestopsleep | ||
|
||
type Options struct { | ||
Seconds int `yaml:"seconds"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package statuschecker | ||
|
||
import "time" | ||
|
||
type Options struct { | ||
TargetURLRegex string `yaml:"targetUrlRegex"` | ||
ContextRegex string `yaml:"contextRegex"` | ||
|
||
InitialDelay time.Duration `yaml:"initialDelay"` | ||
PullInterval time.Duration `yaml:"pullInterval"` | ||
NotificationInterval time.Duration `yaml:"notificationInterval"` | ||
} | ||
|
||
var DefaultOptions = Options{ | ||
TargetURLRegex: `.*`, | ||
ContextRegex: `.*`, | ||
|
||
InitialDelay: 20 * time.Second, | ||
PullInterval: 10 * time.Second, | ||
NotificationInterval: 3 * time.Minute, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.