MCPcopy
hub / github.com/yusing/godoxy / sharedFileHandle

Struct sharedFileHandle

internal/logging/accesslog/shared_file_handle.go:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17const archiveTimestampLayout = "20060102T150405.000000000Z"
18
19type sharedFileHandle struct {
20 *os.File
21
22 // os.File.Name() may not equal to key of `openedFiles`.
23 // Store it for later delete from `openedFiles`.
24 path string
25
26 refCount *synk.RefCount
27}
28
29var (
30 openedFiles = make(map[string]*sharedFileHandle)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected