Imports github.com/mitchellh/mapstructure github.com/eclipse/paho.mqtt.golang Standard library imports encoding/json fmt io io/ioutil log math/rand net/http regexp strconv time