parent
afa6429cbf
commit
3d3c2cee15
|
@ -25,6 +25,7 @@ import (
|
||||||
// Version sets the version. Will be overwritten by drone or when building with the makefile
|
// Version sets the version. Will be overwritten by drone or when building with the makefile
|
||||||
var Version = "0.1"
|
var Version = "0.1"
|
||||||
|
|
||||||
|
// TheSofa holds a fancy ascii art logo
|
||||||
var TheSofa = `
|
var TheSofa = `
|
||||||
___.--------'´´´´´´:´´´´´´'--------.___
|
___.--------'´´´´´´:´´´´´´'--------.___
|
||||||
( | : | )
|
( | : | )
|
||||||
|
|
|
@ -19,6 +19,7 @@ package processing
|
||||||
|
|
||||||
import "os"
|
import "os"
|
||||||
|
|
||||||
|
// SummonTheDaemon starts the daemon which collects metrics
|
||||||
func SummonTheDaemon() {
|
func SummonTheDaemon() {
|
||||||
stop := make(chan bool)
|
stop := make(chan bool)
|
||||||
go RunAirodumpNG(stop)
|
go RunAirodumpNG(stop)
|
||||||
|
|
|
@ -22,6 +22,7 @@ import (
|
||||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// RecordMetrics is the function which puts the active clients in the metrics endpoints
|
||||||
func RecordMetrics() {
|
func RecordMetrics() {
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
package processing
|
package processing
|
||||||
|
|
||||||
|
// ActiveClients is the channel which holds all active clients
|
||||||
var ActiveClients chan int64
|
var ActiveClients chan int64
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user