Documentation
¶
Index ¶
- Variables
- type Disk
- 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
- 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
- type Type
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDiskStorage = &Disk{}
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct {
}
func (*Disk) GetProfileDir ¶
func (*Disk) GetProfileDirOld ¶
func (*Disk) GetProfilePath ¶
func (*Disk) GetProfilePathOld ¶
type OSS ¶
type OSS struct {
// contains filtered or unexported fields
}
func (*OSS) GetProfileDir ¶
func (*OSS) GetProfilePath ¶
func (*OSS) GetProfilePathOld ¶
type Storage ¶
type Storage interface {
IsFileExists(path string) (bool, error)
GetProfilePath(workspaceUUID string, profileID string, unixTimeNS int64, ossFilename string) string
GetProfileDir(workspaceUUID string, profileID string, unixTimeNS int64) string
GetProfilePathOld(workspaceUUID string, profileID string, unixTimeNS int64, ossFilename string) string
ReadFile(path string) (io.ReadCloser, error)
}
func GetStorage ¶
Click to show internal directories.
Click to hide internal directories.