Documentation ¶
Overview ¶
Package local @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package local @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package local @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package local @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Package local @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License
Index ¶
- type OssLocal
- func (c *OssLocal) CheckFileExist(file string) (bool, error)
- func (c *OssLocal) CloseFile(f http.File)
- func (c *OssLocal) GenerateHash(file string) error
- func (c *OssLocal) GetHash(file []byte, hash string) []byte
- func (c *OssLocal) GetLocalFileByInfo(ctx context.Context, fileSystem http.FileSystem, ...) (u *em.UploadInfo, err error)
- func (c *OssLocal) SaveFile(ctx context.Context, localFilePath string, data []byte) error
- func (c *OssLocal) SaveFileByInfo(ctx context.Context, data []byte, fileSystem http.FileSystem, ...) (u *em.UploadInfo, err error)
- func (c *OssLocal) TouchFile(file string, hash string, bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OssLocal ¶
type OssLocal struct{}
func (*OssLocal) CheckFileExist ¶
CheckFileExist 检查文件是否存在
func (*OssLocal) GenerateHash ¶
GenerateHash 生成文件hash
func (*OssLocal) GetLocalFileByInfo ¶
func (c *OssLocal) GetLocalFileByInfo(ctx context.Context, fileSystem http.FileSystem, filePath, localFilePath string) (u *em.UploadInfo, err error)
GetLocalFileByInfo 获取文件信息 filePath 文件存储位置 localFilePath 文件路径
func (*OssLocal) SaveFileByInfo ¶
func (c *OssLocal) SaveFileByInfo(ctx context.Context, data []byte, fileSystem http.FileSystem, filePath, localFilePath string) (u *em.UploadInfo, err error)
SaveFileByInfo 保存文件