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

Method GetHandle

internal/message/http.go:20–27  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

18}
19
20func (p *Http) GetHandle(c *gin.Context) {
21 select {
22 case message := <-p.ToSend:
23 common.SuccessResp(c, message)
24 default:
25 common.ErrorStrResp(c, "no message", 404)
26 }
27}
28
29func (p *Http) SendHandle(c *gin.Context) {
30 var req Req

Callers

nothing calls this directly

Calls 2

SuccessRespFunction · 0.92
ErrorStrRespFunction · 0.92

Tested by

no test coverage detected