Versions in this module Expand all Collapse all v0 v0.9.0 Apr 11, 2023 Changes in this version + func Exists(path string) (bool, error) + func NewHandler(readDir string) proto.FileHandler + func RegisterHandler(s server.Server, readDir string) + type File interface + Close func(sessionId int64) error + Download func(filename, saveFile string) error + DownloadAt func(filename, saveFile string, blockId int) error + GetBlock func(sessionId, blockId int64) ([]byte, error) + Open func(filename string, truncate bool) (int64, error) + Read func(sessionId int64, buf []byte) (int, error) + ReadAt func(sessionId, offset, size int64) ([]byte, error) + Stat func(filename string) (*proto.StatResponse, error) + Upload func(filename, localFile string) error + Write func(sessionId, offset int64, data []byte) error + func New(service string, c client.Client) File