Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sundowndev
GitHub Repository: sundowndev/phoneinfoga
Path: blob/master/web/v2/api/handlers/init.go
994 views
1
package handlers
2
3
import (
4
"github.com/sirupsen/logrus"
5
"github.com/sundowndev/phoneinfoga/v2/lib/filter"
6
"github.com/sundowndev/phoneinfoga/v2/lib/remote"
7
"sync"
8
)
9
10
var once sync.Once
11
var RemoteLibrary *remote.Library
12
13
func Init(filterEngine filter.Filter) {
14
once.Do(func() {
15
RemoteLibrary = remote.NewLibrary(filterEngine)
16
remote.InitScanners(RemoteLibrary)
17
logrus.Debug("Scanners and plugins initialized")
18
})
19
}
20
21