MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / GetDriverInfo

Function GetDriverInfo

server/handles/driver.go:19–28  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

17}
18
19func 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}

Callers

nothing calls this directly

Calls 3

GetDriverInfoMapFunction · 0.92
ErrorStrRespFunction · 0.92
SuccessRespFunction · 0.92

Tested by

no test coverage detected