storageProvider.go 325 B

1234567891011
  1. package models
  2. // StorageProvider is how a chunk storage provider should be implemented.
  3. type StorageProvider interface {
  4. Setup() error
  5. Save(filePath string, retryCount int) (string, error)
  6. SegmentWritten(localFilePath string)
  7. VariantPlaylistWritten(localFilePath string)
  8. MasterPlaylistWritten(localFilePath string)
  9. }