Versions in this module Expand all Collapse all v1 v1.1.21 Sep 5, 2024 Changes in this version + var DefaultDiskStorage = &Disk + type Disk struct + func (d *Disk) GetProfileDir(workspaceUUID string, profileID string, unixTimeNS int64) string + func (d *Disk) GetProfileDirOld(workspaceUUID string, profileID string, unixTimeNS int64) string + func (d *Disk) GetProfilePath(workspaceUUID string, profileID string, unixTimeNS int64, ossFilename string) string + func (d *Disk) GetProfilePathOld(workspaceUUID string, profileID string, unixTimeNS int64, ossFilename string) string + func (d *Disk) IsFileExists(path string) (bool, error) + func (d *Disk) ReadFile(path string) (io.ReadCloser, error) + type OSS struct + func InitOSS() (*OSS, error) + func (o *OSS) GetProfileDir(workspaceUUID string, profileID string, unixTimeNS int64) string + func (o *OSS) GetProfilePath(workspaceUUID string, profileID string, unixTimeNS int64, ossFilename string) string + func (o *OSS) GetProfilePathOld(workspaceUUID string, profileID string, unixTimeNS int64, ossFilename string) string + func (o *OSS) IsFileExists(path string) (bool, error) + func (o *OSS) ReadFile(path string) (io.ReadCloser, error) + type Storage interface + GetProfileDir func(workspaceUUID string, profileID string, unixTimeNS int64) string + GetProfilePath func(workspaceUUID string, profileID string, unixTimeNS int64, ossFilename string) string + GetProfilePathOld func(workspaceUUID string, profileID string, unixTimeNS int64, ossFilename string) string + IsFileExists func(path string) (bool, error) + ReadFile func(path string) (io.ReadCloser, error) + func GetStorage(typ Type) (Storage, error) + type Type string + const AliOSS + const LocalDisk