Documentation ¶
Index ¶
- type FileApi
- type LogFile
- type LogGroupFile
- type RemoteApi
- func (a *RemoteApi) Exist(path 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 LogGroupFile ¶
type StorageApi ¶
type StorageApi interface { SaveLog(log *LogFile) error GetLog(fileId string) (*LogFile, error) RemoveLog(fileId string) 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.