MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / GetLogByKey

Function GetLogByKey

controller/log.go:84–99  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

82}
83
84func GetLogByKey(c *gin.Context) {
85 key := c.Query("key")
86 logs, err := model.GetLogByKey(key)
87 if err != nil {
88 c.JSON(200, gin.H{
89 "success": false,
90 "message": err.Error(),
91 })
92 return
93 }
94 c.JSON(200, gin.H{
95 "success": true,
96 "message": "",
97 "data": logs,
98 })
99}
100
101func GetLogsStat(c *gin.Context) {
102 logType, _ := strconv.Atoi(c.Query("type"))

Callers

nothing calls this directly

Calls 2

GetLogByKeyFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected