1
0

stats.go 185 B

12345678910111213141516
  1. package system
  2. import (
  3. "net/http"
  4. "os"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func GetProcessStats(c *gin.Context) {
  8. pid := os.Getpid()
  9. c.JSON(http.StatusOK, gin.H{
  10. "pid": pid,
  11. })
  12. }