Print monitor features

This commit is contained in:
Matej Kramny
2017-02-04 22:15:24 -08:00
parent a2d8128109
commit edfd4a51e6
4 changed files with 43 additions and 43 deletions

View File

@@ -64,3 +64,11 @@ func getHostname() string {
func getMs() int64 {
return time.Now().UnixNano() / int64(time.Millisecond)
}
func GetMonitorType(t string) string {
if len(t) == 0 {
return "http"
}
return t
}