MCPcopy Create free account
hub / github.com/chanify/chanify / luaCheckContext

Function luaCheckContext

core/webhook.go:95–102  ·  view source on GitHub ↗
(l *lua.LState)

Source from the content-addressed store, hash-verified

93}
94
95func luaCheckContext(l *lua.LState) *gin.Context {
96 ud := l.CheckUserData(1)
97 if v, ok := ud.Value.(*gin.Context); ok {
98 return v
99 }
100 l.ArgError(1, "http context expected")
101 return nil
102}
103
104func luaContextGetRequest(l *lua.LState) int {
105 ctx := luaCheckContext(l)

Callers 7

luaContextGetRequestFunction · 0.85
luaContextSendFunction · 0.85
luaContextGetTokenFunction · 0.85
luaContextGetUrlFunction · 0.85
luaContextGetBodyFunction · 0.85
luaContextGetQueryFunction · 0.85
luaContextGetHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected