Imports github.com/dgrijalva/jwt-go github.com/eclipse/paho.mqtt.golang github.com/sirupsen/logrus github.com/spf13/viper github.com/stianeikeland/go-rpio Standard library imports encoding/json fmt io/ioutil math/rand os os/signal sync sync/atomic time