(key string, value any)
| 52 | } |
| 53 | |
| 54 | func (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 侧的工具 |