(c *gin.Context)
| 17 | } |
| 18 | |
| 19 | func GetDriverInfo(c *gin.Context) { |
| 20 | driverName := c.Query("driver") |
| 21 | infoMap := op.GetDriverInfoMap() |
| 22 | items, ok := infoMap[driverName] |
| 23 | if !ok { |
| 24 | common.ErrorStrResp(c, fmt.Sprintf("driver [%s] not found", driverName), 404) |
| 25 | return |
| 26 | } |
| 27 | common.SuccessResp(c, items) |
| 28 | } |
nothing calls this directly
no test coverage detected