mirror of
https://github.com/owncast/owncast.git
synced 2024-11-23 13:24:33 +03:00
4ba36c17a3
- Persist segments - Record configurations - Rebuild entire stream playlists - First steps to working towards https://github.com/owncast/owncast/issues/102
14 lines
487 B
Go
14 lines
487 B
Go
package models
|
|
|
|
// StorageProvider is how a chunk storage provider should be implemented.
|
|
type StorageProvider interface {
|
|
Setup() error
|
|
Save(localFilePath, destinationPath string, retryCount int) (string, error)
|
|
SetStreamId(streamID string)
|
|
SegmentWritten(localFilePath string) (string, int, error)
|
|
VariantPlaylistWritten(localFilePath string)
|
|
MasterPlaylistWritten(localFilePath string)
|
|
GetRemoteDestinationPathFromLocalFilePath(localFilePath string) string
|
|
|
|
Cleanup() error
|
|
}
|