MCPcopy Create free account
hub / github.com/astercloud/aster / set

Method set

pkg/tools/bridge/http_server.go:54–62  ·  view source on GitHub ↗
(key string, value any)

Source from the content-addressed store, hash-verified

52}
53
54func (c *schemaCache) set(key string, value any) {
55 c.mu.Lock()
56 defer c.mu.Unlock()
57
58 c.entries[key] = &cacheEntry{
59 data: value,
60 timestamp: time.Now(),
61 }
62}
63
64// HTTPBridgeServer HTTP 桥接服务器
65// 提供 HTTP API 供 Python/Node.js 代码调用 Go 侧的工具

Callers 1

handleToolSchemaMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected