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

Struct StateBackend

pkg/backends/state.go:24–27  ·  view source on GitHub ↗

StateBackend 内存临时存储后端 数据存储在内存 map 中,生命周期与 Agent 会话一致 适用于临时文件、中间结果等短期存储需求

Source from the content-addressed store, hash-verified

22// 数据存储在内存 map 中,生命周期与 Agent 会话一致
23// 适用于临时文件、中间结果等短期存储需求
24type StateBackend struct {
25 mu sync.RWMutex
26 files map[string]*FileData
27}
28
29// NewStateBackend 创建 StateBackend 实例
30func NewStateBackend() *StateBackend {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected