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

Method Read

pkg/backends/protocol.go:60–60  ·  view source on GitHub ↗

Read 读取文件内容 path: 文件路径 offset: 起始行号 (0-based) limit: 读取行数限制 (0表示无限制) 返回: 文件内容(字符串)

(ctx context.Context, path string, offset, limit int)

Source from the content-addressed store, hash-verified

58 // limit: 读取行数限制 (0表示无限制)
59 // 返回: 文件内容(字符串)
60 Read(ctx context.Context, path string, offset, limit int) (string, error)
61
62 // Write 写入文件
63 // path: 文件路径

Callers 4

ReadMethod · 0.65
EditMethod · 0.65
GrepRawMethod · 0.65
ReadMethod · 0.65

Implementers 5

mockBackendpkg/middleware/agent_memory_test.go
FilesystemBackendpkg/backends/filesystem.go
StoreBackendpkg/backends/store_backend.go
CompositeBackendpkg/backends/composite.go
StateBackendpkg/backends/state.go

Calls

no outgoing calls

Tested by

no test coverage detected