github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/api/server/stats.go (about)

     1  package server
     2  
     3  import (
     4  	"net/http"
     5  
     6  	"github.com/gin-gonic/gin"
     7  )
     8  
     9  func (s *Server) handleStats(c *gin.Context) {
    10  	c.JSON(http.StatusOK, s.Runner.Stats())
    11  }