From 8e8b3cc5238693151978f5eefa2b6fac63adc50a Mon Sep 17 00:00:00 2001 From: SayaAndy Date: Sun, 24 Aug 2025 21:03:10 +0700 Subject: feat: add local cache --- internal/client/input/local_unix.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/client/input/local_unix.go') diff --git a/internal/client/input/local_unix.go b/internal/client/input/local_unix.go index e509c8b..21b08a9 100644 --- a/internal/client/input/local_unix.go +++ b/internal/client/input/local_unix.go @@ -99,6 +99,10 @@ func (c *LocalUnixInputClient) ReadMetadata(path string) (*MetadataStruct, error }, nil } +func (c *LocalUnixInputClient) ID(path string) string { + return fmt.Sprintf("local-unix://%s%s", c.path, path) +} + func (c *LocalUnixInputClient) GetReader(path string) (io.ReadCloser, error) { return os.Open(c.path + path) } -- cgit v1.3.1+13