mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
fix: pass context to cert and cache
This commit is contained in:
parent
910a2efbd9
commit
0162e10c53
7 changed files with 68 additions and 35 deletions
|
@ -13,15 +13,10 @@ type NginxLogCache struct {
|
|||
|
||||
var (
|
||||
// logCache is the map to store all found log files
|
||||
logCache map[string]*NginxLogCache
|
||||
logCache = make(map[string]*NginxLogCache)
|
||||
cacheMutex sync.RWMutex
|
||||
)
|
||||
|
||||
func init() {
|
||||
// Initialize the cache
|
||||
logCache = make(map[string]*NginxLogCache)
|
||||
}
|
||||
|
||||
// AddLogPath adds a log path to the log cache
|
||||
func AddLogPath(path, logType, name string) {
|
||||
cacheMutex.Lock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue