Cameradar 3.0.0: Uses ullaakut/nmap, runs faster, removed legacy code (#188)

Unit tests functional and coverage back to 100%

Add more routes to dictionary, add more credentials, add default port 5554, rename cameradar logs ENV variable, improve unit test readability, remove tmp file
This commit is contained in:
Brendan LE GLAUNEC
2019-01-22 21:16:16 +01:00
committed by GitHub
parent 878ca9f032
commit 5849898283
973 changed files with 401790 additions and 1002 deletions
+41
View File
@@ -0,0 +1,41 @@
package wow
import "runtime"
// LogSymbol is a log severity level
type LogSymbol uint
// common log symbos
const (
INFO LogSymbol = iota
SUCCESS
WARNING
ERROR
)
func (s LogSymbol) String() string {
if runtime.GOOS != "windows" {
switch s {
case INFO:
return ""
case SUCCESS:
return "✔"
case WARNING:
return "⚠"
case ERROR:
return "✖"
}
} else {
switch s {
case INFO:
return "i"
case SUCCESS:
return "v"
case WARNING:
return "!!"
case ERROR:
return "x"
}
}
return ""
}