gitee.com/woood2/luca@v1.0.4/internal/status/hystrix.go (about)

     1  package status
     2  
     3  import (
     4  	"github.com/afex/hystrix-go/hystrix"
     5  	"net"
     6  	"net/http"
     7  	"strconv"
     8  )
     9  
    10  func Hystrix(port int) {
    11  	hystrixStreamHandler := hystrix.NewStreamHandler()
    12  	hystrixStreamHandler.Start()
    13  	http.ListenAndServe(net.JoinHostPort("", strconv.Itoa(port)), hystrixStreamHandler)
    14  }