mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Configuration used throughout the app
This commit is contained in:
committed by
Chris Cummer
parent
45d88c6700
commit
c3f1d7ee36
@@ -6,10 +6,13 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/gdamore/tcell"
|
||||
"github.com/olebedev/config"
|
||||
"github.com/rivo/tview"
|
||||
"github.com/senorprogrammer/wtf/wtf"
|
||||
)
|
||||
|
||||
var Config *config.Config
|
||||
|
||||
type Widget struct {
|
||||
wtf.BaseWidget
|
||||
View *tview.TextView
|
||||
@@ -20,7 +23,7 @@ func NewWidget() *Widget {
|
||||
BaseWidget: wtf.BaseWidget{
|
||||
Name: "Security",
|
||||
RefreshedAt: time.Now(),
|
||||
RefreshInt: 3600,
|
||||
RefreshInt: Config.UInt("wtf.security.refreshInterval", 3600),
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user