MCPcopy
hub / github.com/CodisLabs/codis / Client

Struct Client

pkg/models/fs/fsclient.go:23–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21var ErrClosedClient = errors.New("use of closed fs client")
22
23type Client struct {
24 sync.Mutex
25
26 RootDir string
27 DataDir string
28 TempDir string
29 LockFile string
30
31 lockfd *os.File
32 closed bool
33}
34
35func New(dir string) (*Client, error) {
36 fullpath, err := filepath.Abs(dir)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected