MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / OpenWriter

Method OpenWriter

internal/caches/storage_file.go:469–471  ·  view source on GitHub ↗

OpenWriter 打开缓存文件等待写入

(key string, expiresAt int64, status int, headerSize int, bodySize int64, maxSize int64, isPartial bool)

Source from the content-addressed store, hash-verified

467
468// OpenWriter 打开缓存文件等待写入
469func (this *FileStorage) OpenWriter(key string, expiresAt int64, status int, headerSize int, bodySize int64, maxSize int64, isPartial bool) (Writer, error) {
470 return this.openWriter(key, expiresAt, status, headerSize, bodySize, maxSize, isPartial, false)
471}
472
473// OpenFlushWriter 打开从其他媒介直接刷入的写入器
474func (this *FileStorage) OpenFlushWriter(key string, expiresAt int64, status int, headerSize int, bodySize int64) (Writer, error) {

Callers

nothing calls this directly

Calls 1

openWriterMethod · 0.95

Tested by

no test coverage detected