Imports github.com/gin-contrib/cors github.com/gin-gonic/gin github.com/gorilla/websocket github.com/jeffchao/backoff github.com/nats-io/nats.go github.com/sirupsen/logrus Standard library imports encoding/json errors flag io math/rand net/http os strings sync time