mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00

- Persist segments - Record configurations - Rebuild entire stream playlists - First steps to working towards https://github.com/owncast/owncast/issues/102
15 lines
487 B
Go
15 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
|
|
}
|