MCPcopy Index your code
hub / github.com/aiprodcoder/MIXAPI / SetContextKey

Function SetContextKey

common/gin.go:49–51  ·  view source on GitHub ↗
(c *gin.Context, key constant.ContextKey, value any)

Source from the content-addressed store, hash-verified

47}
48
49func SetContextKey(c *gin.Context, key constant.ContextKey, value any) {
50 c.Set(string(key), value)
51}
52
53func GetContextKey(c *gin.Context, key constant.ContextKey) (any, bool) {
54 return c.Get(string(key))

Callers 5

DistributeFunction · 0.92
getModelRequestFunction · 0.92
PlaygroundFunction · 0.92
WriteContextMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected