aceberg/WatchYourPorts

View on GitHub
internal/web/const-var.go

Summary

Maintainability
A
0 mins
Test Coverage
package web

import (
    "embed"

    "github.com/aceberg/WatchYourPorts/internal/models"
)

var (
    // appConfig - config for Web Gui
    appConfig models.Conf

    allAddrs map[string]models.AddrToScan

    // quitScan - send stop signal to routineScan
    quitScan chan bool

    histAll map[string]models.HistData
)

// templFS - html templates
//
//go:embed templates/*
var templFS embed.FS

// pubFS - public folder
//
//go:embed public/*
var pubFS embed.FS