Documentation ¶
Index ¶
- type LocalStorage
- func (s *LocalStorage) MasterPlaylistWritten(localFilePath string)
- func (s *LocalStorage) Save(filePath string, retryCount int) (string, error)
- func (s *LocalStorage) SegmentWritten(localFilePath string)
- func (s *LocalStorage) Setup() error
- func (s *LocalStorage) VariantPlaylistWritten(localFilePath string)
- type S3Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStorage ¶
type LocalStorage struct { }
LocalStorage represents an instance of the local storage provider for HLS video.
func (*LocalStorage) MasterPlaylistWritten ¶
func (s *LocalStorage) MasterPlaylistWritten(localFilePath string)
MasterPlaylistWritten is called when the master hls playlist is written.
func (*LocalStorage) Save ¶
func (s *LocalStorage) Save(filePath string, retryCount int) (string, error)
Save will save a local filepath using the storage provider.
func (*LocalStorage) SegmentWritten ¶
func (s *LocalStorage) SegmentWritten(localFilePath string)
SegmentWritten is called when a single segment of video is written.
func (*LocalStorage) Setup ¶
func (s *LocalStorage) Setup() error
Setup configures this storage provider.
func (*LocalStorage) VariantPlaylistWritten ¶
func (s *LocalStorage) VariantPlaylistWritten(localFilePath string)
VariantPlaylistWritten is called when a variant hls playlist is written.
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
S3Storage is the s3 implementation of a storage provider.
func (*S3Storage) MasterPlaylistWritten ¶
MasterPlaylistWritten is called when the master hls playlist is written.
func (*S3Storage) SegmentWritten ¶
SegmentWritten is called when a single segment of video is written.
func (*S3Storage) VariantPlaylistWritten ¶
VariantPlaylistWritten is called when a variant hls playlist is written.