-
Notifications
You must be signed in to change notification settings - Fork 29
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 #20 from fzipi/fix-nginx-time-comparision
Fix nginx time comparision
- Loading branch information
Showing
9 changed files
with
122 additions
and
20 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
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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
package config | ||
|
||
import ( | ||
"time" | ||
) | ||
|
||
// FTWConfig is being exported to be used across the app | ||
var FTWConfig *FTWConfiguration | ||
|
||
// FTWConfiguration FTW global Configuration | ||
type FTWConfiguration struct { | ||
LogFile string `yaml:"logfile"` | ||
LogType FTWLogType `yaml:"logtype"` | ||
LogFile string | ||
LogType FTWLogType | ||
} | ||
|
||
// FTWLogType log readers must implement this one | ||
// TimeTruncate is a string that represents a golang time, e.g. 'time.Microsecond', 'time.Second', etc. | ||
// It will be used when comparing times to match logs | ||
type FTWLogType struct { | ||
Name string `yaml:"name"` | ||
TimeRegex string `yaml:"timeregex"` | ||
TimeFormat string `yaml:"timeformat"` | ||
Name string | ||
TimeRegex string | ||
TimeFormat string | ||
TimeTruncate time.Duration | ||
} |
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
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