Documentation
¶
Index ¶
- type FileApi
- func (f *FileApi) Exist(path string) (bool, error)
- func (f *FileApi) ExistLog(fileId string) (bool, error)
- func (f *FileApi) Get(path string) (io.ReadCloser, int64, error)
- func (f *FileApi) GetLog(fileId string) (*LogFile, error)
- func (f *FileApi) RemoveLog(fileId string) error
- func (f *FileApi) Save(path string, stream io.ReadSeeker) error
- func (f *FileApi) SaveLog(log *LogFile) error
- type LogFile
- type LogGroupFile
- type RemoteApi
- func (a *RemoteApi) Exist(path string) (bool, error)
- func (a *RemoteApi) ExistLog(fileId string) (bool, error)
- func (a *RemoteApi) Get(path string) (io.ReadCloser, int64, error)
- func (a *RemoteApi) GetLog(fileId string) (*LogFile, error)
- func (a *RemoteApi) RemoveLog(fileId string) error
- func (a *RemoteApi) Save(path string, data io.ReadSeeker) error
- func (a *RemoteApi) SaveLog(log *LogFile) error
- type StorageApi
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileApi ¶
type FileApi struct {
}
type LogGroupFile ¶
type RemoteApi ¶
type RemoteApi struct {
// contains filtered or unexported fields
}
type StorageApi ¶
type StorageApi interface {
SaveLog(log *LogFile) error
GetLog(fileId string) (*LogFile, error)
ExistLog(fileId string) (bool, error)
RemoveLog(fileId string) error
Save(path string, data io.ReadSeeker) error
Exist(path string) (bool, error)
Get(path string) (io.ReadCloser, int64, error)
}
func NewFileApi ¶
func NewFileApi() (StorageApi, error)
func NewS3Api ¶
func NewS3Api(config *config.StorageConfig) (StorageApi, error)
func NewStorage ¶
func NewStorage(config *config.Config) (StorageApi, error)
Click to show internal directories.
Click to hide internal directories.